:root {
  /* Midnight Pearl: deep navy base, brushed silver accent, warm ivory */
  --bg: #0a1626;
  --bg-grad-top: #11264a;
  --surface: #102239;
  --surface-2: #173052;
  --line: #26405f;
  --line-soft: rgba(199, 207, 219, 0.14);
  --ink: #eef2f8;
  --muted: #9fb1c6;
  --faint: #6f8298;
  --silver: #c7cfdb;
  --silver-bright: #eaeef4;
  --silver-deep: #8d9bb0;
  --ivory: #f4f0e6;
  --danger: #e0918a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(2, 8, 20, 0.55);
  /* Brushed silver sheen for accents, headings, and the shutter */
  --sheen: linear-gradient(135deg, #f4f7fb 0%, #cfd6e2 36%, #9aa7ba 58%, #e9eef4 100%);
  /* Kept for compatibility with older markup */
  --gold: #c7cfdb;
  --gold-bright: #eaeef4;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1200px 620px at 50% -8%, var(--bg-grad-top), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

.display {
  font-family: "Playfair Display", Georgia, serif;
  font-optical-sizing: auto;
}

/* Brushed silver text, used on display headings */
.silvered {
  background: var(--sheen);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--silver-bright);
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.12em;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* Header */
.event-head { text-align: center; padding: 18px 0 10px; }
.event-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver);
  margin: 0 0 10px;
}
.event-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}
.event-sub {
  color: var(--muted);
  margin: 14px auto 0;
  max-width: 32ch;
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Quota pill */
.quota {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px auto 0;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.86rem;
  color: var(--muted);
}
.quota strong { color: var(--silver-bright); font-weight: 600; }
.quota .dots { display: inline-flex; gap: 5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dot.filled { background: var(--silver); }

/* Capture stage */
.stage {
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.viewfinder {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #06101e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.viewfinder video,
.viewfinder img.preview { width: 100%; height: 100%; object-fit: cover; }
.viewfinder video.mirror { transform: scaleX(-1); }
.viewfinder .placeholder {
  text-align: center;
  color: var(--muted);
  padding: 0 28px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.fire { animation: flash 360ms ease-out; }
@keyframes flash { 0% { opacity: 0.9; } 100% { opacity: 0; } }

.rec-ring {
  position: absolute; top: 14px; left: 14px;
  display: none; align-items: center; gap: 7px;
  background: rgba(0,0,0,0.5); padding: 6px 11px;
  border-radius: 999px; font-size: 0.8rem;
}
.rec-ring.on { display: inline-flex; }
.rec-ring .blink { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

/* Controls */
.controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 18px 20px; }
.controls-centered { justify-content: space-between; }
.ctrl-spacer { width: 50px; flex: 0 0 auto; }
.mode-toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.mode-toggle button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 0.82rem; padding: 7px 13px; border-radius: 999px; cursor: pointer; }
.mode-toggle button.active { background: var(--silver); color: #0a1626; font-weight: 600; }

.shutter {
  width: 74px; height: 74px; border-radius: 50%;
  border: 4px solid var(--silver);
  background: var(--sheen);
  cursor: pointer; flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(199, 207, 219, 0.16);
  transition: transform 80ms ease;
}
.shutter:active { transform: scale(0.92); }
.shutter.recording { background: var(--danger); border-color: var(--danger); }
.shutter:disabled { opacity: 0.4; cursor: not-allowed; }

.icon-btn {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font-size: 1.2rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:active { transform: scale(0.94); }

/* Library + review */
.row { display: flex; gap: 12px; margin-top: 16px; }
.btn {
  flex: 1; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 15px 16px; border-radius: var(--radius); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
.btn.primary { background: var(--sheen); color: #0a1626; border-color: var(--silver); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.caption-field, .name-field {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); font: inherit; padding: 14px 16px;
}
.caption-field { margin-top: 16px; resize: none; }
.name-field { margin-top: 12px; }
.caption-field::placeholder, .name-field::placeholder { color: var(--faint); }

/* Toast / sent print */
.toast {
  position: fixed; left: 50%; bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  padding: 13px 18px; border-radius: 999px; font-size: 0.92rem;
  opacity: 0; transition: opacity 240ms ease, transform 240ms ease;
  pointer-events: none; z-index: 50; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: var(--danger); color: var(--silver-bright); }

.sent-stack { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(6, 12, 22, 0.74); z-index: 40; }
.sent-stack.show { display: flex; }
.print {
  background: var(--ivory); padding: 12px 12px 44px; border-radius: 4px;
  box-shadow: var(--shadow); transform: rotate(-3deg) scale(0.6); opacity: 0;
  animation: drop 520ms cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards; max-width: 76vw;
}
.print img, .print video { width: 100%; max-height: 56vh; object-fit: cover; border-radius: 2px; display: block; }
.print .cap { color: #2c3a4d; font-size: 0.85rem; text-align: center; margin-top: 10px; font-family: "Playfair Display", serif; }
@keyframes drop { to { transform: rotate(-3deg) scale(1); opacity: 1; } }

.foot { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 30px; line-height: 1.6; }
.foot a { color: var(--silver); }

@media (prefers-reduced-motion: reduce) {
  .flash.fire, .print, .blink { animation: none !important; }
  .print { opacity: 1; transform: rotate(-3deg); }
}

/* ---------- Slim top bar (landing + gallery) ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: 20px 24px; }
.topbar .brand { font-family: "Playfair Display", serif; font-size: 1.05rem; letter-spacing: 0.06em; color: var(--ink); text-decoration: none; }
.topbar .brand span { color: var(--silver); }
.topbar nav { display: flex; gap: 22px; align-items: center; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 0.86rem; letter-spacing: 0.04em; }
.topbar nav a:hover { color: var(--ink); }
.topbar nav a.pill { border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; color: var(--ink); }

/* ---------- Landing hero ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 64px 22px 56px;
}
.hero-photo {
  display: none; width: 100%; max-width: 680px; aspect-ratio: 3 / 2;
  margin: 44px auto 0; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background-position: center; background-size: cover;
}
.hero-photo.show { display: block; }
.monogram {
  width: 78px; height: 78px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", serif; font-size: 1.4rem; letter-spacing: 0.04em;
  margin-bottom: 30px; background: rgba(16, 34, 57, 0.5);
}
.hero-eyebrow { font-size: 0.78rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--silver); margin: 0 0 18px; }
.hero-names {
  font-family: "Playfair Display", serif; font-weight: 500;
  font-size: clamp(3rem, 13vw, 6.4rem); line-height: 1.08; margin: 0;
  letter-spacing: -0.005em;
}
.hero-rule { width: 60px; height: 1px; margin: 26px auto; background: linear-gradient(90deg, transparent, var(--silver), transparent); }
.hero-date { font-size: clamp(0.92rem, 2.4vw, 1.1rem); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); margin: 0; }
.hero-venue { color: var(--muted); margin: 10px 0 0; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem; }
.hero-scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--faint); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; z-index: 2; }

/* ---------- Landing sections ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 78px 24px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-eyebrow { font-size: 0.74rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--silver); margin: 0 0 12px; }
.section-title { font-family: "Playfair Display", serif; font-weight: 500; font-size: clamp(2rem, 6vw, 3rem); margin: 0; line-height: 1.2; }
.section-sub { color: var(--muted); max-width: 46ch; margin: 16px auto 0; line-height: 1.6; }

/* Horizontal "from the weekend" strip */
.strip { display: flex; gap: 16px; overflow-x: auto; padding: 6px 24px 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.strip::-webkit-scrollbar { display: none; }
.strip-card {
  flex: 0 0 auto; width: clamp(220px, 62vw, 320px); aspect-ratio: 4 / 5;
  scroll-snap-align: center; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft); position: relative; cursor: pointer;
}
.strip-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.strip-card:hover img { transform: scale(1.04); }
.strip-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font-family: "Caveat", cursive; font-size: 1.12rem; color: var(--ivory); background: linear-gradient(180deg, transparent, rgba(6, 12, 22, 0.85)); }
.strip-empty { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.strip-empty .panel { border: 1px dashed var(--line); border-radius: var(--radius); padding: 54px 24px; text-align: center; color: var(--muted); line-height: 1.6; }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.btn-silver { background: var(--sheen); color: #0a1626; border: 1px solid var(--silver); border-radius: 999px; padding: 15px 30px; font-weight: 600; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 15px 30px; font-weight: 500; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.btn-outline:hover { border-color: var(--silver); }

.landing-foot { border-top: 1px solid var(--line-soft); margin-top: 30px; padding: 44px 24px 60px; text-align: center; }
.landing-foot .names { font-family: "Playfair Display", serif; font-size: 1.5rem; margin: 0 0 8px; }
.landing-foot p { color: var(--muted); margin: 4px 0; font-size: 0.84rem; letter-spacing: 0.08em; }
.landing-foot a { color: var(--silver); text-decoration: none; }

/* ---------- Gallery ---------- */
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1120px; margin: 0 auto; padding: 8px 24px 22px; }
.gallery-title { font-family: "Playfair Display", serif; font-weight: 400; font-size: clamp(1.9rem, 7vw, 2.8rem); margin: 0; }
.gallery-count { color: var(--muted); font-size: 0.9rem; }

.grid { columns: 2; column-gap: 14px; max-width: 1120px; margin: 0 auto; padding: 0 24px 60px; }
@media (min-width: 620px) { .grid { columns: 3; } }
@media (min-width: 960px) { .grid { columns: 4; } }
.tile {
  break-inside: avoid; margin-bottom: 14px; position: relative;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.tile:hover { transform: translateY(-2px); border-color: var(--line); }
.tile img, .tile video { width: 100%; display: block; background: #0a1322; }
.tile .meta { color: var(--muted); font-size: 0.74rem; padding: 9px 11px; display: flex; justify-content: space-between; gap: 8px; }
.tile .who { color: var(--silver); font-weight: 500; }
.tile .play-badge { position: absolute; top: 12px; right: 12px; background: rgba(6,12,22,0.7); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 0.72rem; }

.empty { text-align: center; color: var(--muted); padding: 70px 20px; border: 1px dashed var(--line); border-radius: var(--radius); max-width: 640px; margin: 10px auto; line-height: 1.6; }
.empty a { color: var(--silver); }

.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(5, 10, 18, 0.95); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 20px; }
.lightbox.show { display: flex; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 78vh; border-radius: 6px; }
.lightbox .lb-meta { color: var(--ink); margin-top: 14px; text-align: center; font-size: 0.9rem; }
.lightbox .lb-actions { display: flex; gap: 12px; margin-top: 16px; }
.lightbox .lb-close { position: absolute; top: 16px; right: 18px; background: transparent; border: 0; color: var(--ink); font-size: 1.8rem; cursor: pointer; }

.key-gate { max-width: 420px; margin: 70px auto; text-align: center; }
.key-gate input { width: 100%; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }

/* ---------- Curation console ---------- */
.cur-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; max-width: 1120px; margin: 0 auto; padding: 4px 24px 18px; }
.cur-toolbar .seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.cur-toolbar .seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 0.84rem; padding: 8px 15px; border-radius: 999px; cursor: pointer; }
.cur-toolbar .seg button.active { background: var(--silver); color: #0a1626; font-weight: 600; }
.cur-toolbar .count { color: var(--muted); font-size: 0.84rem; margin-left: auto; }

.cur-grid { columns: 1; column-gap: 14px; max-width: 1120px; margin: 0 auto; padding: 0 24px 70px; }
@media (min-width: 560px) { .cur-grid { columns: 2; } }
@media (min-width: 880px) { .cur-grid { columns: 3; } }
.cur-card { break-inside: avoid; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; }
.cur-card .ph { position: relative; }
.cur-card img { width: 100%; display: block; background: #0a1322; }
.cur-badge { position: absolute; top: 10px; left: 10px; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(6,12,22,0.74); color: var(--muted); border: 1px solid var(--line); }
.cur-badge.approved { color: #0a1626; background: var(--silver); border-color: var(--silver); }
.cur-badge.featured { color: #0a1626; background: var(--ivory); border-color: var(--ivory); }
.cur-meta { padding: 9px 11px 2px; color: var(--muted); font-size: 0.74rem; display: flex; justify-content: space-between; gap: 8px; }
.cur-meta .who { color: var(--silver); font-weight: 500; }
.cur-actions { display: flex; gap: 6px; padding: 9px 9px 11px; }
.cur-actions button { flex: 1; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 0.78rem; padding: 8px 6px; border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.cur-actions button.on { background: var(--sheen); color: #0a1626; border-color: var(--silver); font-weight: 600; }
.cur-actions button.danger { color: var(--danger); }
.cur-actions button:active { transform: scale(0.96); }

/* Curation: stats, toolbar inputs, review queue */
.cur-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 1120px; margin: 0 auto; padding: 0 24px 16px; }
.stat { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 14px 10px; text-align: center; }
.stat-v { font-family: "Playfair Display", serif; font-weight: 500; font-size: 1.7rem; color: var(--silver-bright); line-height: 1; }
.stat-l { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.cur-input { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font: inherit; font-size: 0.84rem; padding: 8px 14px; }
.cur-input::placeholder { color: var(--faint); }
.cur-review-btn { margin-left: auto; background: var(--sheen); color: #0a1626; border: 1px solid var(--silver); border-radius: 999px; font: inherit; font-weight: 600; font-size: 0.84rem; padding: 9px 18px; cursor: pointer; }
.cur-review-btn:disabled { opacity: 0.55; cursor: not-allowed; background: var(--surface); color: var(--muted); border-color: var(--line); }

.review { position: fixed; inset: 0; z-index: 80; background: rgba(6, 12, 22, 0.97); display: none; align-items: center; justify-content: center; padding: 24px 20px; }
.review.show { display: flex; }
.review-inner { width: 100%; max-width: 560px; text-align: center; }
.review-photo { width: 100%; aspect-ratio: 3 / 4; max-height: 60vh; background-position: center; background-size: contain; background-repeat: no-repeat; border-radius: var(--radius); }
.review-meta { color: var(--muted); font-size: 0.86rem; margin-top: 16px; line-height: 1.5; }
.review-progress { color: var(--silver); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; }
.review-actions { display: flex; gap: 10px; margin-top: 20px; }
.review-remove { margin-top: 14px; background: transparent; border: 0; color: var(--danger); font: inherit; font-size: 0.82rem; cursor: pointer; }

@media (max-width: 520px) {
  .cur-stats { grid-template-columns: repeat(2, 1fr); }
  .cur-review-btn { margin-left: 0; width: 100%; }
}

/* Required-name highlight on the capture page */
.name-field.needed { border-color: var(--danger); }

/* Handwritten captions, like a note left on the photo */
.cap-note { font-family: "Caveat", cursive; color: var(--ivory); font-size: 1.14rem; line-height: 1.18; padding: 9px 11px 1px; }
.cur-cap { font-family: "Caveat", cursive; color: var(--ivory); font-size: 1.08rem; line-height: 1.18; padding: 7px 11px 0; }
.lb-caption { font-family: "Caveat", cursive; color: var(--ivory); font-size: 1.6rem; line-height: 1.25; text-align: center; margin-top: 12px; max-width: 90%; }

/* ======================================================================
   kamemories commercial layer: marketing, auth, dashboard, modals
   ====================================================================== */

/* ---------- Marketing home ---------- */
.how-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 1120px; margin: 0 auto; }
@media (min-width: 760px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
.how-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px 24px; }
.how-num { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--silver-bright); margin-bottom: 16px; }
.how-card h3 { font-size: 1.15rem; margin: 0 0 8px; font-weight: 600; }
.how-card p { color: var(--muted); line-height: 1.6; margin: 0; font-size: 0.95rem; }

.price-card { max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; text-align: center; box-shadow: var(--shadow); }
.price-eyebrow { font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--silver); margin: 0 0 10px; }
.price-amount { font-size: 1.7rem; font-weight: 500; margin: 0 0 18px; }
.price-list { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.price-list li { color: var(--muted); padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line-soft); position: relative; }
.price-list li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--silver); }

/* ---------- Auth (login, event not found) ---------- */
.auth-wrap { max-width: 460px; margin: 8vh auto 0; padding: 0 22px 60px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.auth-sub { color: var(--muted); line-height: 1.6; margin: 0 0 22px; font-size: 0.96rem; }
.auth-input { width: 100%; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; }
.auth-input::placeholder { color: var(--faint); }
.auth-msg { min-height: 1.2em; font-size: 0.88rem; color: var(--muted); margin: 12px 0 0; }
.auth-msg.err { color: var(--danger); }
.auth-sent p { color: var(--ink); line-height: 1.6; }
.auth-sent strong { color: var(--silver-bright); }
.auth-fine { color: var(--faint); font-size: 0.82rem; }
.auth-dev { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.auth-dev a { color: var(--silver); word-break: break-all; font-size: 0.84rem; }

/* ---------- Dashboard ---------- */
.dash-loading { text-align: center; color: var(--muted); padding: 80px 20px; }
.dash { max-width: 1120px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 22px; }
.dash-new { flex: 0 0 auto; }
.who-email { color: var(--muted); font-size: 0.84rem; margin-right: 16px; }
.who-out { color: var(--silver); text-decoration: none; font-size: 0.84rem; }

.ev-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .ev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ev-grid { grid-template-columns: repeat(3, 1fr); } }
.ev-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease; }
.ev-card:hover { transform: translateY(-2px); border-color: var(--line); }
.ev-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ev-name { font-size: 1.25rem; font-weight: 500; margin: 0; }
.ev-badge { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.ev-badge.active { background: var(--silver); color: #0a1626; border-color: var(--silver); }
.ev-badge.archived { color: var(--faint); }
.ev-host { color: var(--silver-deep); font-size: 0.84rem; margin-top: 8px; word-break: break-all; }
.ev-stats { display: flex; gap: 16px; margin-top: 16px; color: var(--muted); font-size: 0.8rem; }
.ev-stats strong { color: var(--silver-bright); font-weight: 600; }

.dash-back { background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 0.88rem; cursor: pointer; padding: 0 0 14px; }
.dash-back:hover { color: var(--ink); }
.manage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.manage-url { color: var(--silver); text-decoration: none; font-size: 0.9rem; word-break: break-all; }
.manage-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.manage-actions .btn { flex: 0 0 auto; padding: 11px 16px; font-size: 0.86rem; }

.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin: 22px 0; }
.tabs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 0.86rem; padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.tabs button.active { background: var(--silver); color: #0a1626; font-weight: 600; }

.form-card { max-width: 720px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; }
.field input, .field select { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; }
.field input::placeholder { color: var(--faint); }
.slug-row { display: flex; align-items: stretch; }
.slug-row input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.slug-suffix { padding: 12px 12px; border: 1px solid var(--line); border-left: 0; border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); background: var(--surface); color: var(--faint); font-size: 0.84rem; white-space: nowrap; display: flex; align-items: center; }
.danger-btn { color: var(--danger); border-color: var(--line); background: transparent; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(5, 10, 18, 0.8); display: none; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.modal.show { display: flex; }
.modal-card { position: relative; width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.modal-card .field { margin-bottom: 14px; }

/* Printable QR card */
.qr-card { background: #f7f2e8; color: #2a241d; border-radius: 10px; padding: 36px 30px 40px; text-align: center; max-width: 380px; margin: 0 auto; }
.qr-card .eyebrow { letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.7rem; color: #8a93a8; margin: 0 0 12px; }
.qr-card .names { font-family: "Playfair Display", serif; font-size: 1.9rem; margin: 0 0 6px; font-weight: 500; color: #1c2740; }
.qr-card .qr { width: 220px; height: 220px; margin: 20px auto; background: #fff; padding: 12px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.qr-card .qr img, .qr-card .qr canvas { width: 100% !important; height: 100% !important; }
.qr-card .how { font-size: 0.96rem; line-height: 1.5; margin: 6px 0 0; color: #3a3326; }
.qr-card .url { font-size: 0.8rem; color: #6f6452; margin-top: 12px; word-break: break-all; }

@media print {
  body > *:not(#qrModal) { display: none !important; }
  #qrModal { position: static; inset: auto; background: #fff; display: block !important; padding: 0; }
  #qrModal .lb-close, #qrModal .row { display: none !important; }
  #qrModal .modal-card { box-shadow: none; border: 0; max-width: none; }
}

/* ======================================================================
   Cinematic marketing layer (home, login): container-less, editorial,
   floating over a slow rotating wedding-video background. Namespaced cine*.
   ====================================================================== */
:root {
  --font-cormorant: "Cormorant Garamond", Cochin, Georgia, serif;
  --cine-ink: #f5f1e8;
  --cine-dim: rgba(245, 241, 232, 0.66);
  --cine-faint: rgba(245, 241, 232, 0.42);
  --cine-line: rgba(245, 241, 232, 0.16);
}

body.cine { background: #070d18; color: var(--cine-ink); overflow-x: hidden; }

/* Rotating video background. The gradient base is a finished look on its own,
   so the page is cinematic even before any video loads. */
.bg-stage {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(120% 85% at 18% 105%, rgba(190, 132, 72, 0.28), transparent 52%),
    radial-gradient(110% 95% at 82% -5%, rgba(48, 80, 132, 0.40), transparent 56%),
    linear-gradient(165deg, #0d1b34 0%, #0a1322 55%, #070d18 100%);
}
.bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 2.6s ease-in-out;
  filter: brightness(0.5) saturate(1.08) contrast(1.02);
  will-change: opacity;
}
.bg-video.show { opacity: 1; }
.veil {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(130% 110% at 50% 0%, transparent 38%, rgba(5, 9, 18, 0.55) 100%),
    linear-gradient(180deg, rgba(6, 11, 20, 0.74) 0%, rgba(6, 11, 20, 0.50) 32%, rgba(6, 11, 20, 0.58) 66%, rgba(6, 11, 20, 0.88) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav */
.cine-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(20px, 3.4vh, 34px) clamp(22px, 5vw, 72px);
}
.cine-brand { font-family: var(--font-cormorant); font-weight: 500; font-size: 1.5rem; letter-spacing: 0.01em; color: var(--cine-ink); text-decoration: none; }
.cine-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.cine-links a { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cine-dim); text-decoration: none; transition: color 0.3s; }
.cine-links a:hover { color: var(--cine-ink); }
.cine-links .cine-signin { color: var(--cine-ink); }
@media (max-width: 620px) { .cine-links a:not(.cine-signin) { display: none; } }

/* Hero: cinematic title-card, content anchored lower-left */
.cine-hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 clamp(22px, 5vw, 76px) clamp(54px, 9vh, 104px);
}
.cine-eyebrow { font-size: 0.74rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--cine-dim); margin: 0 0 clamp(18px, 3vh, 30px); }
.cine-title {
  font-family: var(--font-cormorant); font-weight: 300;
  font-size: clamp(2.9rem, 8.5vw, 7rem); line-height: 0.96;
  letter-spacing: -0.012em; margin: 0; max-width: 15ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.cine-title em { font-style: italic; font-weight: 400; }
.cine-sub { margin: clamp(20px, 3vh, 30px) 0 0; max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.6; color: var(--cine-dim); }
.cine-actions { display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); margin-top: clamp(28px, 4vh, 44px); flex-wrap: wrap; }
.cine-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px;
  border: 1px solid rgba(245, 241, 232, 0.55); border-radius: 2px;
  color: var(--cine-ink); text-decoration: none; cursor: pointer;
  font-family: "Hanken Grotesk", sans-serif; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  background: transparent; transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.cine-btn:hover { background: var(--cine-ink); color: #0a1322; border-color: var(--cine-ink); }
.cine-link { color: var(--cine-dim); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; position: relative; padding-bottom: 4px; }
.cine-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
.cine-link:hover { color: var(--cine-ink); }
.cine-link:hover::after { transform: scaleX(1); }
.cine-scroll { position: absolute; right: clamp(22px, 5vw, 76px); bottom: clamp(40px, 7vh, 80px); writing-mode: vertical-rl; font-size: 0.64rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--cine-faint); }
.cine-scroll::after { content: ""; display: block; width: 1px; height: 46px; margin: 14px auto 0; background: linear-gradient(var(--cine-faint), transparent); }

/* Editorial sections (no containers) */
.cine-main { position: relative; z-index: 1; }
.cine-section { max-width: 1080px; margin: 0 auto; padding: clamp(90px, 14vh, 180px) clamp(22px, 5vw, 40px); }
.cine-kicker { font-size: 0.72rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--cine-dim); }
.cine-h2 { font-family: var(--font-cormorant); font-weight: 300; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; margin: 18px 0 0; max-width: 18ch; }

.cine-steps { margin-top: clamp(40px, 7vh, 84px); }
.cine-step { display: grid; grid-template-columns: clamp(64px, 10vw, 120px) 1fr; gap: clamp(20px, 4vw, 56px); padding: clamp(28px, 4vh, 44px) 0; border-top: 1px solid var(--cine-line); align-items: baseline; }
.cine-step:last-child { border-bottom: 1px solid var(--cine-line); }
.cine-step .n { font-family: var(--font-cormorant); font-weight: 300; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--cine-dim); line-height: 0.9; }
.cine-step h3 { font-family: var(--font-cormorant); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 10px; }
.cine-step p { margin: 0; color: var(--cine-dim); line-height: 1.65; max-width: 52ch; font-size: 1.02rem; }
.mono { font-family: "Hanken Grotesk", monospace; font-size: 0.94em; color: var(--cine-ink); border-bottom: 1px solid var(--cine-line); white-space: nowrap; }

/* Quote band, where the video breathes through */
.cine-quote { position: relative; z-index: 1; text-align: center; padding: clamp(80px, 16vh, 200px) clamp(22px, 6vw, 60px); }
.cine-quote p { font-family: var(--font-cormorant); font-style: italic; font-weight: 300; font-size: clamp(1.8rem, 4.4vw, 3.4rem); line-height: 1.25; margin: 0 auto; max-width: 22ch; color: var(--cine-ink); }

/* Pricing */
.cine-pricing { text-align: center; }
.cine-price-title { font-family: var(--font-cormorant); font-weight: 300; font-size: clamp(2.2rem, 6vw, 4rem); margin: 16px 0 0; }
.cine-price-title em { font-style: italic; }
.cine-price-sub { color: var(--cine-dim); margin: 18px auto 0; max-width: 40ch; line-height: 1.6; }
.cine-includes { list-style: none; padding: 0; margin: clamp(36px, 6vh, 56px) auto; max-width: 430px; text-align: left; }
.cine-includes li { padding: 16px 0 16px 30px; border-top: 1px solid var(--cine-line); position: relative; color: var(--cine-dim); }
.cine-includes li:last-child { border-bottom: 1px solid var(--cine-line); }
.cine-includes li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 7px; height: 7px; border: 1px solid var(--cine-ink); transform: rotate(45deg); }

/* Footer */
.cine-foot { position: relative; z-index: 1; text-align: center; padding: clamp(60px, 10vh, 110px) 24px clamp(50px, 8vh, 90px); border-top: 1px solid var(--cine-line); }
.cine-foot .cine-brand { display: inline-block; font-size: 1.4rem; }
.cine-foot p { color: var(--cine-faint); font-size: 0.84rem; letter-spacing: 0.06em; margin: 12px 0 0; }

/* Orchestrated load reveal */
.reveal { opacity: 0; transform: translateY(18px); animation: cine-rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(var(--d, 0) * 0.12s + 0.15s); }
@keyframes cine-rise { to { opacity: 1; transform: none; } }

/* Login, cinematic */
.cine-auth-wrap { position: relative; z-index: 1; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 100px 22px 60px; }
.cine-auth { width: 100%; max-width: 420px; }
.cine-auth h1 { font-family: var(--font-cormorant); font-weight: 300; font-size: clamp(2.4rem, 7vw, 3.4rem); margin: 0 0 12px; }
.cine-auth .cine-sub { margin: 0 0 30px; }
.cine-field { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--cine-line); color: var(--cine-ink); font-family: "Hanken Grotesk", sans-serif; font-size: 1.05rem; padding: 14px 2px; transition: border-color 0.3s; }
.cine-field:focus { outline: none; border-color: var(--cine-ink); }
.cine-field::placeholder { color: var(--cine-faint); }
.cine-auth .cine-btn { width: 100%; justify-content: center; margin-top: 24px; background: var(--cine-ink); color: #0a1322; border-color: var(--cine-ink); }
.cine-auth .cine-btn:hover { background: transparent; color: var(--cine-ink); }
.cine-note { min-height: 1.2em; margin-top: 16px; font-size: 0.88rem; color: var(--cine-dim); line-height: 1.5; }
.cine-note.err { color: #e6a39b; }
.cine-sent strong { color: var(--cine-ink); }
.cine-dev { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--cine-line); }
.cine-dev a { color: var(--cine-dim); word-break: break-all; font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) {
  .bg-video { transition: none; }
  .reveal { animation: none; opacity: 1; transform: none; }
}
