
:root {
  --bg: #04101d;
  --bg-soft: #0b1d33;
  --bg-deep: #020912;
  --surface: rgba(9, 23, 41, 0.68);
  --surface-2: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #f6f8fc;
  --muted: #b7c7da;
  --blue: #88b8ff;
  --blue-strong: #346bd6;
  --white: #ffffff;
  --radius: 30px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(70, 127, 255, 0.22), transparent 26%),
    radial-gradient(circle at 10% 14%, rgba(136, 184, 255, 0.14), transparent 16%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 28%, var(--bg-soft) 68%, var(--bg) 100%);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 20%, transparent 80%, rgba(255,255,255,0.02));
  mix-blend-mode: soft-light;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: radial-gradient(circle, rgba(255,255,255,0.8) 0.65px, transparent 0.8px);
  background-size: 18px 18px;
}

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 120;
  background: linear-gradient(90deg, #ffffff, #9bc7ff, #4f87ec);
  box-shadow: 0 0 24px rgba(136, 184, 255, 0.9);
}

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--shadow);
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 28px), 1140px);
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-radius: 999px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.topbar nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}
.topbar nav a:hover { color: var(--white); }

.hero {
  position: relative;
  min-height: 100svh;
  padding: 132px 24px 40px;
  display: grid;
  align-items: end;
  overflow: clip;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.52) saturate(1.02) contrast(1.08);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(5, 12, 22, 0.18) 36%, rgba(4, 9, 17, 0.80) 76%, rgba(4, 8, 15, 0.96) 100%),
    linear-gradient(180deg, rgba(4, 9, 18, 0.26) 0%, rgba(4, 9, 18, 0.42) 24%, rgba(4, 9, 18, 0.9) 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.28;
}
.orb-1 { width: 360px; height: 360px; background: #7eadff; top: 10%; left: 6%; }
.orb-2 { width: 420px; height: 420px; background: #1c4aa8; bottom: 6%; right: -4%; }

.hero-inner,
.opening-grid,
.venue-grid,
.live-wrap,
.rsvp-shell,
.subhero-inner,
.gift-how-grid,
.gift-preview-grid {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: end;
}

.hero-copy h1,
.section-head h2,
.opening-copy h2,
.live-copy h2,
.venue-copy h2,
.rsvp-copy h2,
.subhero-inner h1,
.admin-note h2 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.035em;
}

.eyebrow,
.section-kicker,
.meta-label,
.detail-label,
.cover-kicker,
.gift-type {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: #d7e6ff;
}

.hero-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(3.8rem, 8vw, 7rem);
  line-height: 0.92;
  max-width: 9ch;
}
.hero-copy h1 span { color: var(--blue); }

.hero-subtitle,
.section-note,
.gift-desc,
.gift-status,
.address-box p,
.admin-note p {
  color: var(--muted);
}

.hero-subtitle {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  line-height: 1.75;
}

.hero-actions,
.venue-actions,
.center-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.center-actions {
  justify-content: center;
}

.button,
.pseudo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: linear-gradient(135deg, #ffffff, #cfe2ff 48%, #7eadff);
  color: #07111f;
  box-shadow: 0 18px 45px rgba(127, 180, 255, 0.26);
}
.button-secondary,
.pseudo-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255,255,255,0.06);
}
.button-full { width: 100%; }

.hero-meta {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 30px;
}
.hero-meta article {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
}
.hero-meta strong {
  display: block;
  margin-top: 8px;
  font-size: 1.18rem;
}
.hero-meta p {
  margin: 8px 0 0;
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 30px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  display: grid;
  place-items: start center;
  padding-top: 10px;
}
.scroll-cue span {
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  animation: cue 1.7s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.35; }
}

.section {
  padding: 108px 24px;
  position: relative;
}
.section-head {
  width: min(100%, var(--max));
  margin: 0 auto 32px;
}
.section-head h2 {
  margin: 10px 0 12px;
  font-size: clamp(2.3rem, 4.3vw, 4.1rem);
  line-height: 1.02;
  max-width: 14ch;
}
.section-head p,
.opening-copy p,
.live-copy p,
.venue-copy p,
.rsvp-copy p,
.story-copy p,
.notice-card p,
.detail-card p,
.how-card p,
.preview-card p,
.subhero-inner p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.opening-grid {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 24px;
  align-items: stretch;
}
.opening-copy,
.opening-card,
.preview-card,
.how-card,
.admin-note {
  border-radius: 34px;
  padding: 34px;
}
.opening-copy h2,
.live-copy h2,
.venue-copy h2,
.rsvp-copy h2,
.subhero-inner h1,
.admin-note h2 {
  margin: 10px 0 12px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.02;
}
.opening-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
}
.opening-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin: 10px 0;
}

.story-stack {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 26px;
}
.story-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
}
.story-panel.reverse { grid-template-columns: 0.85fr 1.15fr; }
.story-panel.reverse .story-media { order: 2; }
.story-panel.reverse .story-copy { order: 1; }
.story-media,
.gallery-card,
.phone-frame,
.venue-map,
.timeline,
.gift-card,
.subhero-inner {
  overflow: hidden;
}
.story-media {
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.story-media img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.story-media.tall img { aspect-ratio: 3 / 4; }
.story-media.landscape img { aspect-ratio: 5 / 3; }
.story-copy,
.detail-card,
.notice-card {
  border-radius: 30px;
  padding: 34px;
}
.story-index {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  color: rgba(255,255,255,0.22);
}

.live-wrap {
  display: grid;
  grid-template-columns: 0.95fr 0.85fr;
  gap: 42px;
  align-items: center;
}
.phone-frame {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(180deg, #0e1322, #252c3b);
  box-shadow: 0 40px 90px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
}
.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 24px;
  border-radius: 999px;
  background: rgba(0,0,0,0.82);
  z-index: 2;
}
.phone-frame video {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 34px;
  object-fit: cover;
}

.scroll-rail { min-height: 220vh; }
.video-rail { min-height: 290vh; }

.rail-sticky {
  position: sticky;
  top: 96px;
  overflow: clip;
}
.rail-track {
  width: max-content;
  display: flex;
  gap: 24px;
  padding: 16px 24px 24px calc((100vw - min(100vw, var(--max))) / 2 + 24px);
  will-change: transform;
}

.phone-track {
  gap: 28px;
  padding-top: 22px;
}
.phone-card {
  width: min(72vw, 420px);
  border-radius: 34px;
}
.phone-card .phone-frame {
  width: 100%;
  margin: 0;
}
.phone-video {
  display: block;
}

.gallery-rail { min-height: 240vh; }
.gallery-sticky {
  position: sticky;
  top: 96px;
  overflow: clip;
}
.gallery-track {
  width: max-content;
  display: flex;
  gap: 24px;
  padding: 16px 24px 24px calc((100vw - min(100vw, var(--max))) / 2 + 24px);
  will-change: transform;
}
.gallery-card {
  width: min(74vw, 520px);
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.06);
}
.gallery-card img {
  width: 100%;
  height: 72vh;
  object-fit: cover;
}

.details-grid,
.notice-grid,
.gift-preview-grid,
.gift-how-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.detail-card h3,
.preview-card h3,
.how-card h3 {
  font-size: 1.8rem;
  margin: 14px 0 8px;
}

.timeline {
  width: min(100%, var(--max));
  margin: 0 auto;
  border-radius: 34px;
  padding: 24px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 22px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-time {
  font-weight: 700;
  font-size: 1.1rem;
  color: #d9e7fb;
}
.timeline-item h3 { margin: 0 0 8px; }
.timeline-item p { margin: 0; color: var(--muted); }

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.venue-copy,
.venue-map {
  border-radius: 34px;
  padding: 34px;
}
.venue-map iframe {
  width: 100%;
  min-height: 440px;
  border: 0;
  border-radius: 24px;
}

.gift-preview .section-head h2,
.notices .section-head h2,
.schedule .section-head h2,
.details .section-head h2,
.gift-catalog .section-head h2,
.gift-how .section-head h2 {
  max-width: 16ch;
}
.preview-card,
.how-card {
  min-height: 220px;
}

.rsvp-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  padding: 28px;
  border-radius: 36px;
}
.rsvp-form { display: grid; gap: 14px; }
.rsvp-form label { display: grid; gap: 8px; color: var(--muted); }
.rsvp-form input,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border-radius: 18px;
  padding: 16px 18px;
  outline: none;
}
.rsvp-form input:focus,
.rsvp-form textarea:focus {
  border-color: rgba(127,180,255,0.7);
  box-shadow: 0 0 0 4px rgba(127,180,255,0.12);
}
.form-note {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.form-note.success { color: #dff1ff; }

.subpage .hero { display: none; }
.subhero {
  padding-top: 150px;
}
.subhero-inner {
  padding: 42px;
  border-radius: 38px;
  max-width: 1100px;
}
.subhero-inner h1 {
  margin: 12px 0 16px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.95;
  max-width: 11ch;
}
.subhero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.pill,
.item-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #dbe9ff;
  padding: 10px 14px;
  font-size: 0.92rem;
}


.gift-hero .hero-copy h1 {
  max-width: 10ch;
}
.gift-hero .hero-meta strong {
  font-size: 1.08rem;
}
.gift-faq-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.faq-card {
  padding: 28px;
  border-radius: 30px;
}
.faq-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.faq-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.gift-media {
  position: relative;
  width: 176px;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}
.gift-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.gift-media:hover img {
  transform: scale(1.04);
  filter: brightness(0.9);
}
.gift-media-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.68);
  border: 1px solid rgba(255,255,255,0.16);
  color: #f4f8ff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  pointer-events: none;
}
.gift-media-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(127,180,255,0.25), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
}
.gift-media-placeholder span {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #eef5ff;
}
.gift-free-amount {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.gift-free-amount p {
  margin: 0 0 14px;
  color: var(--muted);
}
.quota-open-button {
  min-width: 220px;
}
.quota-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.quota-chip strong {
  color: var(--white);
  text-align: left;
}
.quota-chip.is-available:hover {
  transform: translateY(-1px);
  border-color: rgba(127,180,255,0.45);
  background: rgba(127,180,255,0.10);
}
.quota-chip.is-received {
  opacity: 0.62;
  cursor: default;
}
.quota-state {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 110px;
}
.quota-state-hover {
  display: none;
  color: #e8f2ff;
}
.quota-chip.is-available:hover .quota-state-default {
  display: none;
}
.quota-chip.is-available:hover .quota-state-hover {
  display: inline;
}
.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
}
.gift-modal.open {
  display: block;
}
.gift-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 16, 0.82);
  backdrop-filter: blur(8px);
}
.gift-modal-dialog {
  position: relative;
  width: min(960px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  padding: 28px;
  border-radius: 34px;
  z-index: 1;
}
.gift-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1.9rem;
  cursor: pointer;
}
.gift-modal-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 24px;
}
.gift-modal-grid h2 {
  margin: 10px 0 12px;
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 4vw, 3rem);
}
.gift-modal-text {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}
.glass-soft {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.gift-input-wrap {
  display: grid;
  gap: 8px;
}
.gift-input-wrap span,
.pix-code-wrap span {
  color: #eaf3ff;
  font-weight: 600;
}
.gift-input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border-radius: 18px;
  padding: 16px 18px;
  outline: none;
}
.gift-input:focus,
.pix-code-wrap textarea:focus {
  border-color: rgba(127,180,255,0.7);
  box-shadow: 0 0 0 4px rgba(127,180,255,0.12);
}
.gift-input-note {
  margin: 10px 0 0;
  color: var(--muted);
}
.gift-modal-instructions {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 24px;
}
.gift-modal-instructions h3 {
  margin: 0 0 10px;
}
.gift-modal-instructions ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}
.gift-modal-pay {
  padding: 20px;
  border-radius: 28px;
}
.gift-qr-box {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.gift-qr-box img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 18px;
  background: white;
  padding: 10px;
}
.gift-qr-fallback {
  margin: 14px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.94rem;
}
.pix-code-wrap {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.pix-code-wrap textarea {
  width: 100%;
  min-height: 148px;
  resize: vertical;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border-radius: 18px;
  padding: 14px 16px;
  outline: none;
}
.gift-modal-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gift-copy-feedback {
  color: #e8f2ff;
}
.modal-open {
  overflow: hidden;
}

.gift-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.gift-card {
  border-radius: 34px;
  padding: 28px;
}
.gift-card-top {
  display: grid;
  grid-template-columns: 1fr 176px;
  gap: 20px;
  align-items: start;
}
.gift-card-top.item-top {
  grid-template-columns: 1fr 176px;
  gap: 12px;
}
.gift-card h3 {
  font-size: 1.8rem;
  margin: 10px 0 8px;
}
.gift-price {
  margin: 0;
  color: #dce9ff;
  font-weight: 600;
}
.qr-placeholder {
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.22);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.07) 50%, transparent 50%),
    linear-gradient(rgba(255,255,255,0.07) 50%, transparent 50%),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.26) 8px, transparent 8px),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,0.26) 8px, transparent 8px),
    radial-gradient(circle at 20% 78%, rgba(255,255,255,0.26) 8px, transparent 8px),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  background-size: 14px 14px, 14px 14px, auto, auto, auto, auto;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
}
.qr-placeholder span {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 10px;
  background: rgba(4,10,18,0.72);
  border-radius: 12px;
}
.gift-progress {
  margin-top: 18px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.gift-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b9d9ff, #73a9ff, #3f7bf2);
}
.gift-status { margin: 10px 0 0; }
.gift-details {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.gift-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #e8f2ff;
}
.quota-list {
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.quota-list li { list-style: none; }
.quota-list li strong { color: var(--white); }
.address-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.address-box strong {
  display: block;
  margin-bottom: 6px;
}
.gift-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-note-wrap {
  padding-top: 20px;
}
.admin-note {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.footer {
  padding: 0 24px 40px;
  color: rgba(255,255,255,0.55);
  text-align: center;
}
.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.19,1,.22,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.lift {
  transition: transform 0.6s cubic-bezier(.19,1,.22,1), box-shadow 0.6s ease;
  will-change: transform;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 150;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(94vw, 1200px);
  max-height: 88vh;
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .topbar { top: 10px; width: calc(100% - 20px); padding: 14px 18px; }
  .topbar nav { display: none; }
  .hero-inner,
  .opening-grid,
  .story-panel,
  .story-panel.reverse,
  .live-wrap,
  .details-grid,
  .notice-grid,
  .venue-grid,
  .rsvp-shell,
  .gift-grid,
  .gift-how-grid,
  .gift-preview-grid,
  .gift-faq-grid,
  .gift-card-top,
  .gift-card-top.item-top,
  .gift-modal-grid {
    grid-template-columns: 1fr;
  }
  .story-panel.reverse .story-media,
  .story-panel.reverse .story-copy {
    order: initial;
  }
  .gallery-card { width: min(82vw, 420px); }
  .gallery-card img { height: 62vh; }
  .qr-placeholder,
  .gift-media { max-width: 100%; }
}

@media (max-width: 680px) {
  .hero { padding-top: 124px; }
  .section { padding: 78px 18px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .section-head h2,
  .opening-copy h2,
  .live-copy h2,
  .venue-copy h2,
  .rsvp-copy h2,
  .subhero-inner h1,
  .admin-note h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }
  .opening-copy,
  .opening-card,
  .detail-card,
  .notice-card,
  .story-copy,
  .venue-copy,
  .venue-map,
  .preview-card,
  .how-card,
  .gift-card,
  .subhero-inner,
  .admin-note { padding: 24px; }
  .timeline { padding: 18px; }
  .gift-modal-dialog { padding: 20px; }
  .gift-qr-box { min-height: 0; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .gallery-track { padding-left: 18px; }
  .subhero { padding-top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .lift, .button, .gallery-track, .hero-video { transition: none !important; animation: none !important; }
}


.notice-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gift-total-line {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gift-total-line span {
  color: var(--muted);
}
.gift-total-line strong {
  font-size: 1.1rem;
  color: var(--white);
}

.gift-media {
  width: 100%;
  min-height: 220px;
  padding: 0;
  cursor: zoom-in;
}
.gift-card-top .gift-media,
.gift-card-top.item-top .gift-media {
  width: 220px;
}
.gift-media {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
}
.gift-media img {
  transition: transform 0.45s ease, filter 0.35s ease;
}
.gift-media:hover img {
  transform: scale(1.05);
}
.gift-media-dots {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.62);
  backdrop-filter: blur(10px);
}
.gift-media-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
}
.gift-media-dot.is-active {
  background: rgba(255,255,255,0.96);
}
.gift-media-zoom {
  font-size: 0.68rem;
}

.quota-chip.is-presented,
.quota-chip.is-unavailable {
  cursor: default;
  opacity: 0.7;
}
.quota-chip.is-presented {
  background: rgba(92, 163, 122, 0.12);
  border-color: rgba(92, 163, 122, 0.25);
}
.quota-chip.is-unavailable {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.lightbox {
  flex-direction: column;
}
.lightbox-toolbar {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.lightbox-counter {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 0.9rem;
  pointer-events: auto;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.rsvp-form button[disabled] {
  opacity: 0.72;
  cursor: wait;
}

@media (max-width: 980px) {
  .notice-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gift-card-top .gift-media,
  .gift-card-top.item-top .gift-media {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .notice-grid-wide {
    grid-template-columns: 1fr;
  }
  .lightbox-nav {
    width: 48px;
    height: 48px;
  }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}


.bonus-note {
  width: min(100%, var(--max));
  margin: 24px auto 0;
  padding: 18px 22px;
  color: var(--muted);
}
.bonus-note strong {
  color: var(--text);
}
