:root {
  --ivory: #FAF6EE; --ivory-deep: #F1ECDD;
  --wine: #3C5844; --wine-deep: #65081F;
  --gold: #C2A467; --gold-light: #EAE0C4;
  --charcoal: #2B2620; --charcoal-soft: #5C554A; --line: #E4DFC9;
  --success: #4C6B4A; --error: #A23B3B;
  --radius: 14px;
  --font-display: 'Cormorant Garamond', serif; --font-body: 'Inter', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--charcoal); font-family: var(--font-body);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes softPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(185,146,79,0.35); } 50% { box-shadow: 0 0 0 10px rgba(185,146,79,0); } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.5); } 70% { opacity: 1; transform: scale(1.15); } 100% { transform: scale(1); } }

/* ── Demo banner ── */
.demo-banner {
  background: var(--wine-deep); color: #fff; text-align: center; font-size: 13px;
  padding: 12px 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center;
}
.demo-banner a { color: var(--gold-light); font-weight: 700; text-decoration: none; }
.demo-banner a:hover { text-decoration: underline; }

.page { max-width: 640px; margin: 0 auto; padding: 0 24px 64px; position: relative; }

/* ── Hero ── */
.hero-text { text-align: center; padding-top: 56px; }
.hero-text > * { opacity: 0; animation: fadeUp 0.9s var(--ease-out) forwards; }
.eyebrow { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--gold); margin: 0 0 16px; animation-delay: 0.05s; }
.names { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: clamp(38px, 9vw, 58px); color: var(--wine-deep); margin: 0 0 12px; animation-delay: 0.16s; }
.date { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal-soft); margin: 0 0 22px; animation-delay: 0.28s; }
.welcome { font-family: var(--font-display); font-size: 19px; color: var(--charcoal); max-width: 440px; margin: 0 auto 8px; animation-delay: 0.4s; }

.photo-frame { margin: 24px 0 0; border-radius: 16px; overflow: hidden; opacity: 0; animation: fadeUp 1s var(--ease-out) 0.5s forwards; }
.photo-placeholder {
  aspect-ratio: 4/5; border-radius: 16px; border: 6px solid #fff;
  box-shadow: 0 24px 60px -20px rgba(34,51,31,0.3);
  background: linear-gradient(160deg, var(--gold-light), var(--gold) 80%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--wine-deep); font-family: var(--font-display); font-style: italic; font-size: 15px;
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.upload-section, .gallery-section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); text-align: center; }
.upload-sub { color: var(--charcoal-soft); font-size: 15px; max-width: 420px; margin: 0 auto 28px; }
.gallery-sub { color: var(--charcoal-soft); font-size: 14px; }

/* ── Quota ── */
.quota-track { position: relative; height: 8px; border-radius: 99px; background: var(--ivory-deep); border: 1px solid var(--line); overflow: hidden; max-width: 320px; margin: 0 auto 10px; }
.quota-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--wine)); transition: width 0.6s var(--ease-out); }
.quota-label { display: block; font-size: 13px; color: var(--charcoal-soft); margin-bottom: 28px; }

/* ── Dropzone ── */
.dropzone {
  display: block; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 22px 20px; cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.dropzone:hover, .dropzone:focus-within { border-color: var(--gold); background: var(--ivory-deep); transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(34,51,31,0.25); }
.dropzone.drag-over { border-color: var(--wine); background: var(--gold-light); transform: scale(1.015); }
.dropzone.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--wine-deep); }
.dropzone-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gold-light); color: var(--wine-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 2px;
  animation: softPulse 3.5s ease-in-out infinite;
}
.dropzone.disabled .dropzone-icon { animation: none; }
.dropzone-text { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--charcoal); }
.dropzone-hint { font-size: 12px; color: var(--charcoal-soft); }

/* ── Upload queue ── */
.upload-queue { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.queue-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; animation: fadeUp 0.4s var(--ease-out); }
.queue-thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--ivory-deep); }
.queue-info { flex: 1; min-width: 0; }
.queue-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-bar-track { height: 4px; border-radius: 99px; background: var(--ivory-deep); margin-top: 4px; overflow: hidden; }
.queue-bar-fill { height: 100%; background: var(--gold); width: 0%; transition: width 0.2s ease; }
.queue-status { font-size: 16px; flex-shrink: 0; }
.queue-status.ok { color: var(--success); animation: popIn 0.4s var(--ease-out); }

/* ── Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.gallery-grid img, .sample-tile {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line);
  animation: fadeUp 0.5s var(--ease-out) backwards;
}
.sample-tile {
  background: linear-gradient(160deg, var(--ivory-deep), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--charcoal-soft); font-family: var(--font-body); font-weight: 600; letter-spacing: 0.04em;
}

/* ── Demo CTA ── */
.demo-cta {
  margin-top: 56px; padding: 36px 24px; text-align: center; background: var(--wine-deep); color: #fff; border-radius: 20px;
}
.demo-cta h3 { font-family: var(--font-display); font-style: italic; font-size: 26px; margin: 0 0 10px; }
.demo-cta p { font-size: 14px; opacity: 0.85; max-width: 380px; margin: 0 auto 22px; }
.btn-primary {
  display: inline-block; background: #fff; color: var(--wine-deep); text-decoration: none;
  padding: 13px 26px; border-radius: 99px; font-weight: 700; font-size: 14px;
  transition: transform 0.25s var(--ease-out);
}
.btn-primary:hover { transform: translateY(-2px); }

/* ── Footer ── */
.site-footer { text-align: center; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.site-footer p { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--wine-deep); }

/* ── Toast ── */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120%) scale(0.9);
  background: var(--charcoal); color: #fff; padding: 13px 22px; border-radius: 99px; font-size: 14px;
  max-width: 90%; text-align: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,0.4);
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1); z-index: 10;
}
.toast.show { transform: translate(-50%, 0) scale(1); }
.toast.error { background: var(--error); }
.toast.success { background: var(--success); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
