/* base.css */
/* e7ents guest page: the base layer. On its own this IS the Essential design:
   one column, static, light fades, one serif + one sans. signature.css and
   luxe.css are layered on top for those designs; music.css, cinema.css and
   envelope.css come with their add-ons on any design. Mobile-first. Themes are
   custom properties; a host's own palette (add-on) arrives as inline
   properties on <body>. */

/* Motion tokens: every animation on the page takes its duration and easing
   from here. No bounce or overshoot; linear only for continuous effects. */
:root {
  --m-fast: 160ms; --m-base: 320ms; --m-slow: 600ms; --m-cine: 1200ms;
  --e-standard: cubic-bezier(0.2, 0, 0, 1);
  --e-entrance: cubic-bezier(0.16, 1, 0.3, 1);
  --e-exit: cubic-bezier(0.4, 0, 1, 1);
}

:root, .theme-pearl {
  --bg: #fbf8f1;
  --surface: #fffdf8;
  --ink: #1f2a44;
  --muted: #6b6f7b;
  --accent: #b08d57;
  --accent-text: #86683a;
  --accent-soft: #eee3cc;
  --line: #e4d8bf;
  --on-accent: #fffdf8;
  --seal: #1f2a44;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Pinyon Script", "Cormorant Garamond", 'Snell Roundhand', Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-linen {
  --bg: #f6f3ea;
  --surface: #fffdf7;
  --ink: #34413a;
  --muted: #5f685f;
  --accent: #7f977b;
  --accent-text: #566d52;
  --accent-soft: #f1d9d3;
  --line: #dfe3d3;
  --on-accent: #fffdf7;
  --seal: #c98f86;
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Great Vibes", "Playfair Display", 'Snell Roundhand', Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Rose Gold: the old Champagne, warmed toward blush and rose gold. */
.theme-rose_gold {
  --bg: #faf2ef;
  --surface: #fffaf8;
  --ink: #3d2a2a;
  --muted: #766665;
  --accent: #c3927f;
  --accent-text: #7f5f53;
  --accent-soft: #f0e1db;
  --line: #e7d0c8;
  --on-accent: #ffffff;
  --seal: #8a5a4c;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", "Cormorant Garamond", 'Snell Roundhand', Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-opal {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #27324a;
  --muted: #606879;
  --accent: #8fb4c9;
  --accent-text: #566c79;
  --accent-soft: #e4ecf3;  /* a tint of its own accent: one palette (2026-10-06) */
  --line: #d3e0ea;
  --on-accent: #ffffff;
  --seal: #6f7fa8;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Parisienne", "Cormorant Garamond", 'Snell Roundhand', Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-emerald {
  --bg: #0e2a22;
  --surface: #13352b;
  --ink: #f4ecd8;
  --muted: #afb2a1;
  --accent: #d4af5a;
  --accent-text: #d4af5a;
  --accent-soft: #32422c;
  --line: #535936;
  --on-accent: #0e2a22;
  --seal: #8a723a;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Pinyon Script", "Cormorant Garamond", 'Snell Roundhand', Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-sapphire {
  --bg: #0f1f3d;
  --surface: #16284a;
  --ink: #f6f1e4;
  --muted: #b5b7bd;
  --accent: #c9a55a;
  --accent-text: #c9a55a;
  --accent-soft: #22365c;
  --line: #3a4a6a;
  --on-accent: #0f1f3d;
  --seal: #836b3a;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", "Cormorant Garamond", 'Snell Roundhand', Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}


/* The Line-Art Collections (collections.py): each one's first colourway. Made by
   collections.css_block(); a test checks they match. */
.theme-dusty_blue_garden {
  --bg: #eef2f5;
  --surface: #f7f9fa;
  --ink: #26364a;
  --muted: #616c7b;
  --accent: #7d98ad;
  --accent-text: #586a79;
  --accent-soft: #dce4e9;
  --line: #c3d0da;
  --on-accent: #ffffff;
  --seal: #586a79;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Pinyon Script", "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-sage_eucalyptus {
  --bg: #f5f4ec;
  --surface: #fafaf6;
  --ink: #2c372f;
  --muted: #676d66;
  --accent: #8a9f86;
  --accent-text: #616f5e;
  --accent-soft: #e4e6dc;
  --line: #ccd4c5;
  --on-accent: #ffffff;
  --seal: #616f5e;
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Great Vibes", "Playfair Display", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-blush_peony {
  --bg: #fbf3f1;
  --surface: #fdfaf9;
  --ink: #3f2b2e;
  --muted: #7b6b6c;
  --accent: #d4a5a0;
  --accent-text: #7f6360;
  --accent-soft: #f5e7e4;
  --line: #ecd5d2;
  --on-accent: #ffffff;
  --seal: #947470;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Parisienne", "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-champagne_deco {
  --bg: #f7f1e6;
  --surface: #fbf9f4;
  --ink: #1c1b1a;
  --muted: #625f5b;
  --accent: #b8975a;
  --accent-text: #816a3f;
  --accent-soft: #ede3d0;
  --line: #dfcfb1;
  --on-accent: #ffffff;
  --seal: #816a3f;
  --font-display: "Cinzel", Georgia, serif;
  --font-script: "Pinyon Script", "Cinzel", Georgia, serif;
  --font-body: "Josefin Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-terracotta_pampas {
  --bg: #f6efe6;
  --surface: #fbf8f4;
  --ink: #3b2a22;
  --muted: #776961;
  --accent: #c0714f;
  --accent-text: #9a5a3f;
  --accent-soft: #eddbce;
  --line: #e1bfad;
  --on-accent: #ffffff;
  --seal: #864f37;
  --font-display: "Bodoni Moda", Georgia, serif;
  --font-script: "Mrs Saint Delafield", "Bodoni Moda", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-lilac_butterflies {
  --bg: #f6f2fa;
  --surface: #fbf9fd;
  --ink: #3a2f4a;
  --muted: #70687c;
  --accent: #a48cc4;
  --accent-text: #736289;
  --accent-soft: #e9e2f1;
  --line: #d7cbe5;
  --on-accent: #ffffff;
  --seal: #736289;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", "Cormorant Garamond", Georgia, serif;
  --font-body: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-rose_gold_gala {
  --bg: #fbf1ee;
  --surface: #fdf9f7;
  --ink: #3b2626;
  --muted: #786766;
  --accent: #c08b7a;
  --accent-text: #866155;
  --accent-soft: #f2e1db;
  --line: #e5cac2;
  --on-accent: #ffffff;
  --seal: #866155;
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Pinyon Script", "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-golden_years {
  --bg: #fbf7ee;
  --surface: #fdfbf7;
  --ink: #2b2618;
  --muted: #6e695c;
  --accent: #b9933f;
  --accent-text: #82672c;
  --accent-soft: #f0e7d2;
  --line: #e2d1ac;
  --on-accent: #ffffff;
  --seal: #82672c;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", "Cormorant Garamond", Georgia, serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-midnight_gold_deco {
  --bg: #0f1a2e;
  --surface: #1d2638;
  --ink: #f3ead5;
  --muted: #aaa7a0;
  --accent: #d1ab57;
  --accent-text: #d1ab57;
  --accent-soft: #2e3135;
  --line: #59513e;
  --on-accent: #000000;
  --seal: #92783d;
  --font-display: "Cinzel", Georgia, serif;
  --font-script: "Great Vibes", "Cinzel", Georgia, serif;
  --font-body: "Josefin Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-olive_dove {
  --bg: #f8f6ee;
  --surface: #fcfbf7;
  --ink: #2f3a2c;
  --muted: #697065;
  --accent: #8c9a6e;
  --accent-text: #697452;
  --accent-soft: #e7e7da;
  --line: #cfd3bd;
  --on-accent: #ffffff;
  --seal: #626c4d;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Parisienne", "Cormorant Garamond", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-homecoming {
  --bg: #f8f1e7;
  --surface: #fcf9f4;
  --ink: #3a2620;
  --muted: #776760;
  --accent: #b5653f;
  --accent-text: #a35b39;
  --accent-soft: #eddbcc;
  --line: #dfbca7;
  --on-accent: #ffffff;
  --seal: #7f472c;
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Allura", "Playfair Display", Georgia, serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-class_of {
  --bg: #13213b;
  --surface: #202d44;
  --ink: #f4ecd8;
  --muted: #acaba6;
  --accent: #d0aa55;
  --accent-text: #d0aa55;
  --accent-soft: #31373f;
  --line: #5b5545;
  --on-accent: #000000;
  --seal: #92773c;
  --font-display: "Cinzel", Georgia, serif;
  --font-script: "Pinyon Script", "Cinzel", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-vintage_yearbook {
  --bg: #f3ead9;
  --surface: #faf6ee;
  --ink: #33271b;
  --muted: #706558;
  --accent: #8a6a45;
  --accent-text: #836542;
  --accent-soft: #e2d6c1;
  --line: #cbb9a1;
  --on-accent: #ffffff;
  --seal: #614a30;
  --font-display: "Special Elite", Georgia, serif;
  --font-script: "Homemade Apple", "Special Elite", Georgia, serif;
  --font-body: "Courier Prime", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-alumni_gala {
  --bg: #10291f;
  --surface: #1e352a;
  --ink: #f2ecd9;
  --muted: #aaae9d;
  --accent: #cfac5c;
  --accent-text: #cfac5c;
  --accent-soft: #2f3e29;
  --line: #595b36;
  --on-accent: #000000;
  --seal: #917840;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Pinyon Script", "Cormorant Garamond", Georgia, serif;
  --font-body: "Josefin Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-recess {
  --bg: #fbfaf4;
  --surface: #fdfdfa;
  --ink: #1f2a44;
  --muted: #656d7c;
  --accent: #c8452f;
  --accent-text: #c8452f;
  --accent-soft: #f3ddd4;
  --line: #e8b5a9;
  --on-accent: #ffffff;
  --seal: #8c3021;
  --font-display: "Patrick Hand", Georgia, serif;
  --font-script: "Gaegu", "Patrick Hand", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-jersey {
  --bg: #f4f7fb;
  --surface: #fafbfd;
  --ink: #13254a;
  --muted: #5b6883;
  --accent: #1f5fae;
  --accent-text: #1f5fae;
  --accent-soft: #d2dfef;
  --line: #a3bdde;
  --on-accent: #ffffff;
  --seal: #16427a;
  --font-display: "Oswald", Georgia, serif;
  --font-script: "Permanent Marker", "Oswald", Georgia, serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; }
h2 { font-size: 2.1rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { overflow-x: clip; }

/* Not live yet (unpaid or a draft): a mark over the whole page, so a screenshot can't pass for the real one */
.preview-watermark {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  display: grid; place-items: center; overflow: hidden;
}
.preview-watermark span {
  transform: rotate(-30deg); font-size: clamp(3.5rem, 18vw, 9rem); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  color: color-mix(in srgb, var(--ink) 9%, transparent);
}
@media print { .preview-watermark span { color: rgba(0, 0, 0, .12); } }

.preview-banner {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--bg);
  text-align: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .55rem 1rem;
}

.section {
  padding: 4.5rem 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}
/* Essential: simple thin dividers between sections. */
.section + .section { border-top: 1px solid var(--line); }
.eyebrow {
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 .6rem; font-weight: 500;
}
.prose { margin: 0 auto 1rem; max-width: 34rem; white-space: pre-line; }
.muted { color: var(--muted); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 12px 30px -18px rgba(31,42,68,.25);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.6rem;
  border-radius: 999px; border: 1px solid var(--accent-text);
  background: var(--accent-text); color: var(--on-accent);
  font: 500 .82rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background var(--m-fast) var(--e-standard), color var(--m-fast) var(--e-standard);
}
.btn:focus-visible, .choice-btn input:focus-visible + span, summary:focus-visible,
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
.btn-ghost { background: transparent; color: var(--accent-text); }
.btn-small { min-height: 44px; padding: .6rem 1.1rem; font-size: .72rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1rem; }

.notice { border-radius: 10px; padding: .8rem 1rem; margin: 0 auto 1.25rem; max-width: 30rem; font-size: .95rem; }
.notice-ok { background: var(--accent-soft); color: var(--ink); }
.notice-error { background: #fbe4e1; color: #7a2419; }

/* ---------- Sample ribbon (demo pages) ---------- */
.sample-ribbon {
  position: fixed; top: 14px; right: -38px; z-index: 60; width: 140px;
  transform: rotate(45deg); text-align: center; pointer-events: none;
  background: #b3261e; color: #fff; padding: .3rem 0;
  font: 600 .66rem/1.2 system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.sample-menu {
  position: fixed; left: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 60;
  font: 500 .75rem/1.3 system-ui, sans-serif;
}
.sample-menu summary {
  list-style: none; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center;
  padding: .5rem .9rem; border-radius: 999px; background: #1d1d1f; color: #fff; letter-spacing: .06em;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.5);
}
.sample-menu summary::-webkit-details-marker { display: none; }
.sample-menu ul {
  list-style: none; margin: 0 0 .5rem; padding: .4rem; border-radius: 12px; background: #1d1d1f;
  position: absolute; bottom: 100%; left: 0; min-width: 12rem;
}
.sample-menu a { display: block; padding: .55rem .7rem; color: #fff; text-decoration: none; border-radius: 8px; }
.sample-menu a:hover, .sample-menu a[aria-current="page"] { background: rgba(255,255,255,.14); }

/* ---------- Greeting (Essential: a simple card that fades in) ---------- */
.greeting-simple { padding-top: 3rem; }
.greeting-card { max-width: 26rem; margin: 0 auto; padding: 1.25rem 1.25rem 1.75rem; animation: fade-in var(--m-slow) var(--e-entrance) both; }
.greeting-card .greeting-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; margin: 0 0 1.25rem; }
.greeting-message { font-family: var(--font-display); font-size: 1.4rem; font-style: italic; margin: 0 0 1rem; }
.greeting-date { margin: 0; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Invitation + Essential hero (photo in a framed card) ---------- */
.invitation { padding-top: 3.5rem; }
.framed-photo {
  margin: 0 auto 2rem; max-width: 20rem; padding: .7rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 18px 40px -26px rgba(31,42,68,.45);
}
.framed-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.dear { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; margin: 0 0 .75rem; }
.wording { font-family: var(--font-display); font-size: 1.2rem; max-width: 26rem; margin: 0 auto 1.5rem; }
.names { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 11vw, 3.6rem); line-height: 1.1; }
.amp { color: var(--accent-text); display: inline-block; padding: 0 .1em; }
.rule { width: 64px; height: 1px; background: var(--accent); margin: 1.5rem auto; }
.when { font-family: var(--font-display); font-size: 1.35rem; margin: 0; }
.when-time { letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--muted); margin: .35rem 0 0; }
.hero-framed { margin-bottom: 2rem; }
.hero-framed .when { margin-top: 1rem; }
.seats { margin: 1.5rem auto 0; padding: .7rem 1.2rem; display: inline-block; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .95rem; }

/* ---------- Shared by the fuller greetings and heroes (any design, via add-ons) ---------- */
.greeting-arch { width: min(72vw, 280px); margin: 0 auto 1.6rem; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px 16px 16px; box-shadow: 0 26px 50px -30px rgba(0,0,0,.6); }
.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; margin-top: 2rem;
  text-decoration: none; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text);
}
.scroll-cue span { animation: bob 2400ms ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
.invitation-lead { padding-top: 0; }
.hero-bleed {
  position: relative; width: 100vw; margin: 0 calc(50% - 50vw) 3rem;
  min-height: 92vh; min-height: 92svh; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; color: #fff;
}
.hero-img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.28) 58%, rgba(0,0,0,.72) 100%);
}
.hero-text { position: relative; padding: 0 1.5rem 4.5rem; text-align: center; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-text .eyebrow { color: #fff; opacity: .92; }
.hero-text .names { color: #fff; }
.hero-text .amp { color: #fff; opacity: .9; }
.hero-date { margin: .8rem 0 0; font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; }
@media (min-width: 720px) { .hero-text { padding-bottom: 6rem; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* ---------- Story + gallery (Essential: a basic two-column grid) ---------- */
.chapter { margin: 0 auto 1.5rem; max-width: 34rem; }
.chapter h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.chapter p { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-top: 2rem; }
.gallery-item { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .7rem .55rem;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; text-align: left;
}

/* ---------- Venues ---------- */
.venue-cards { display: grid; gap: 1rem; }
.venue h3 { font-size: .75rem; font-family: var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--accent-text); font-weight: 500; }
.venue-time { font: 500 1.6rem var(--font-display); margin: .4rem 0 .1rem; }
.venue-name { font: 500 1.3rem var(--font-display); margin: 0; }
.venue-address { color: var(--muted); margin: .25rem 0 0; font-size: .95rem; }

/* ---------- Entourage ---------- */
.entourage-group { margin-top: 2rem; }
.entourage-group h3 { font-size: .75rem; font-family: var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--accent-text); font-weight: 500; margin-bottom: .8rem; }
.entourage-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.member-name { display: block; font: 400 1.2rem var(--font-display); }
.member-role { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .08em; }

/* ---------- Dress code ---------- */
.swatches { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; padding: 0; margin: 1.5rem 0 0; }
.swatch { display: block; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(0,0,0,.4); }
/* the dress code's colours (dress_code.py, 2026-10-15): each with its name under it; "Please avoid" crossed out */
.dc-colours { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 1.1rem; padding: 0; margin: 1.4rem 0 .4rem; }
.dc-colours li { display: flex; flex-direction: column; align-items: center; gap: .35rem; min-width: 56px; }
.dc-swatch { display: block; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(0,0,0,.4); }
.dc-name { font-size: .78rem; letter-spacing: .02em; color: var(--muted); }
.dc-names { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }  /* read aloud once */
.dc-avoid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1rem; margin: .8rem 0 1.2rem;
  font-size: .85rem; color: var(--muted); }
.dc-avoid > span:first-child { letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; }
.dc-avoid-item { display: inline-flex; align-items: center; gap: .4rem; }
.dc-avoid .dc-swatch { width: 24px; height: 24px; border-width: 2px; }
.dc-crossed { position: relative; overflow: hidden; }
.dc-crossed::after { content: ""; position: absolute; left: -10%; top: 50%; width: 120%; height: 2px; background: var(--ink);
  transform: rotate(-45deg); box-shadow: 0 0 0 1px var(--surface); }

/* ---------- RSVP ---------- */
.reply-by { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; margin: 0 0 1.25rem; }
.rsvp-summary { margin: 0 auto 1.25rem; max-width: 30rem; }
.rsvp-answer { margin: 0; font-size: 1.05rem; }
.rsvp-names { list-style: none; padding: 0; margin: .75rem 0 0; }
.rsvp-details > summary { list-style: none; }
.rsvp-details > summary::-webkit-details-marker { display: none; }
.rsvp-details[open] > summary { display: none; }
.rsvp-form, .wish-form { text-align: left; max-width: 30rem; margin: 0 auto; display: grid; gap: 1.1rem; }
.rsvp-form .btn, .wish-form .btn { width: 100%; }
.choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.choice legend { grid-column: 1 / -1; font: 400 1.2rem var(--font-display); margin-bottom: .6rem; text-align: center; width: 100%; }
.choice-btn { position: relative; }
.choice-btn input { position: absolute; opacity: 0; inset: 0; }
.choice-btn span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: .6rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); font-size: .9rem; cursor: pointer; transition: border-color var(--m-fast) var(--e-standard), background var(--m-fast) var(--e-standard);
}
.choice-btn input:checked + span { border-color: var(--accent-text); background: var(--accent-soft); font-weight: 500; }
.field { display: grid; gap: .35rem; }
.field > span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
  font: 400 16px/1.4 var(--font-body);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-text); outline-offset: 1px; border-color: var(--accent-text); }
.people { display: grid; gap: .9rem; margin-top: .9rem; }
.person { display: grid; gap: .6rem; padding: .9rem; border: 1px dashed var(--line); border-radius: 12px; }
.attending-fields[hidden], .person[hidden] { display: none; }

/* ---------- Gifts ---------- */
.gift-qr { margin: 1.5rem auto; max-width: 15rem; }
.gift-qr img { border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: .6rem; }
.gift-qr figcaption { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .6rem; }

/* ---------- Program ---------- */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 24rem; text-align: left; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5.2rem; top: .6rem; bottom: .6rem; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 1.4rem; padding: .7rem 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(5.2rem - 4px); top: 1.15rem; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.t-time { font-size: .8rem; letter-spacing: .06em; color: var(--muted); padding-top: .2rem; text-align: right; }
.t-title { font: 400 1.2rem var(--font-display); }

/* ---------- FAQ ---------- */
.faq-list { text-align: left; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative; font: 500 1.15rem var(--font-display); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .2rem; top: .95rem; font-size: 1.4rem; color: var(--accent-text); transition: transform var(--m-base) var(--e-standard); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 1.1rem; color: var(--muted); }

/* ---------- Wishes ---------- */
.wish-wall { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .8rem; text-align: left; }
.wish p { margin: 0; }
.wish-from { margin-top: .6rem !important; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }

/* ---------- Day-of / after ---------- */
.dayof .names, .thankyou .names { margin: .5rem 0 1.5rem; }
.table-card { margin: 1.5rem auto; max-width: 16rem; }
.table-label { margin: 0; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.table-number { margin: .2rem 0 0; font: 500 4rem/1 var(--font-display); color: var(--accent-text); }
.placeholder { margin: 1.5rem auto 0; max-width: 22rem; border-style: dashed; }
.placeholder-title { font: 500 1.35rem var(--font-display); margin: 0; }
.placeholder .muted { margin: .3rem 0 0; }

/* ---------- Footer ---------- */
.site-foot { text-align: center; padding: 3.5rem 1.5rem calc(4.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-names { font: 400 1.8rem var(--font-display); margin: 0; }
.foot-date { margin: .2rem 0 0; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.made-with { margin: 1.75rem 0 0; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.made-with a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }

@media (min-width: 720px) {
  body { font-size: 18px; }
  .section { padding: 4.25rem 2rem; }  /* was 6rem: with the divider, half a screen between sections (2026-10-23) */
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .wish-wall { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}

/* ---- Guest camera page */
.camera-page .camera { max-width: 30rem; margin: 0 auto; padding-top: 2.5rem; }
.camera-names { font: 500 2.2rem/1.1 var(--font-display); margin: .2rem 0 1.5rem; }
.camera-counter { margin: 0 auto 1.25rem; }
.camera-count { margin: 0; font: 500 1.4rem var(--font-display); color: var(--muted); }
.camera-count strong { display: block; font-size: 5rem; line-height: 1; color: var(--ink); }
.camera-count-label { margin: .2rem 0 0; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--muted); }
.camera-form { display: grid; gap: 1rem; }
.camera-pick { display: grid; gap: .7rem; }
.camera-pick .btn { position: relative; width: 100%; min-height: 56px; cursor: pointer; }
.camera-pick input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.camera-shoot { font-size: .9rem; }
.camera-preview img { display: block; width: 100%; max-height: 60vh; object-fit: contain; border-radius: 12px; background: var(--surface); }
.camera-small { font-size: .85rem; margin: 1rem 0; }
.camera-join { display: grid; gap: .9rem; text-align: left; }
.camera-join .placeholder-title, .camera-join > .muted { text-align: center; margin: 0; }
.camera-mine-title { font-size: 1.5rem; margin: 2rem 0 .3rem; }
.camera-closed, .camera-done { margin: 1rem auto; }

/* ---- Album (after the reveal) */
.album-actions { margin: 0 0 1.25rem; }
.album-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
@media (min-width: 640px) { .album-grid { grid-template-columns: repeat(4, 1fr); gap: .5rem; } }
.album-grid li { margin: 0; }
.album-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--accent-soft); }
.album-item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.album-credit { margin: .15rem 0 .4rem; font-size: .72rem; color: var(--muted); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-new { display: inline-block; margin-left: .3rem; padding: 0 .4rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; }
.album-countdown { margin: .8rem 0 0; font-weight: 500; }
/* The viewer / slideshow: a fixed layer the size of what's visible (100dvh:
   iPhone's toolbars included), clear of the notch and home bar. It works with
   or without real fullscreen; touches stay inside it. */
.album-viewer {
  position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden; background: #0b0b0c; color: #f4f1ea;
  overscroll-behavior: contain; touch-action: none; -webkit-user-select: none; user-select: none;
}
.album-viewer[open] { display: block; }
.album-viewer::backdrop { background: #0b0b0c; }
.album-stage {
  position: absolute; display: flex; align-items: center; justify-content: center;
  top: calc(3.75rem + env(safe-area-inset-top)); bottom: calc(4rem + env(safe-area-inset-bottom));
  left: env(safe-area-inset-left); right: env(safe-area-inset-right);
}
.album-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity var(--m-base) var(--e-standard); }
.album-viewer.is-loading .album-stage img { opacity: .6; }
.album-stage .album-ghost { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; pointer-events: none; }
.album-bar { position: absolute; left: 0; right: 0; bottom: calc(.6rem + env(safe-area-inset-bottom)); text-align: center; pointer-events: none; }
.album-count { margin: 0; font-size: .78rem; letter-spacing: .12em; opacity: .75; }
.album-viewer-credit { margin: .15rem 0 0; font-size: .95rem; }
.album-viewer button {
  position: absolute; z-index: 2; border: 0; background: rgba(255, 255, 255, .14); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.album-viewer button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.album-prev { left: calc(.5rem + env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); }
.album-next { right: calc(.5rem + env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); }
.album-close { right: calc(.6rem + env(safe-area-inset-right)); top: calc(.6rem + env(safe-area-inset-top)); }
.album-pause { left: calc(.6rem + env(safe-area-inset-left)); top: calc(.6rem + env(safe-area-inset-top)); font-size: 1rem !important; display: none !important; }
.album-viewer.is-slideshow .album-pause { display: flex !important; }
.album-pause .icon-play, .album-viewer.is-playing .album-pause .icon-pause { display: inline; }
.album-pause .icon-pause, .album-viewer.is-playing .album-pause .icon-play { display: none; }
.album-viewer.is-slideshow .album-prev, .album-viewer.is-slideshow .album-next { opacity: .35; }
.album-progress { position: absolute; left: 0; right: 0; top: env(safe-area-inset-top); height: 3px; background: rgba(255, 255, 255, .15); display: none; }
.album-viewer.is-slideshow .album-progress { display: block; }
.album-progress span { display: block; height: 100%; width: 100%; background: #d4af5a; transform: scaleX(0); transform-origin: 0 50%; }
.album-progress span.is-running { animation: album-progress 4500ms linear forwards; }
@keyframes album-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

[hidden] { display: none !important; }
.camera-page main { padding-bottom: 6rem; }

/* ---- Couple monogram (add-on) */
.hero-monogram { width: 96px; height: 96px; margin: 0 auto 1rem; color: var(--accent-text); }
.hero-monogram svg, .hero-monogram img { width: 100%; height: 100%; display: block; }
.hero-text .hero-monogram { color: #fff; }
.hero-monogram-lg { width: 132px; height: 132px; color: #e9cf8a; animation: fade-in var(--m-cine) var(--e-entrance) 200ms both; }
.seal-monogram { display: block; width: 44px; height: 44px; color: rgba(255,255,255,.9); }
.seal-monogram svg { width: 100%; height: 100%; display: block; }

/* ---- Album passcode (album.py) */
.album-passcode { display: grid; gap: .8rem; max-width: 20rem; margin: 1.2rem auto 0; text-align: left; }
.album-passcode label { display: grid; gap: .35rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.album-passcode input { width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 400 16px var(--font-body); letter-spacing: 0; text-transform: none; }
.album-passcode input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.album-passcode .btn { justify-self: center; }

/* ---- Updates: the banner and the section */
.update-banner { position: relative; margin: 0; padding: 1rem 3.2rem 1rem 1.2rem; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px -24px rgba(0,0,0,.5); animation: fade-in var(--m-slow) var(--e-entrance) both; }
.update-banner-inner { max-width: 34rem; margin: 0 auto; text-align: center; }
.update-banner-label { margin: 0; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-text); }
.update-banner-title { margin: .2rem 0 0; font: 500 1.25rem/1.3 var(--font-display); color: var(--ink); }
.update-banner-text { margin: .2rem 0 0; font-size: .92rem; color: var(--muted); }
.update-banner-more { display: inline-block; margin-top: .3rem; font-size: .8rem; color: var(--accent-text); }
.update-banner-close { position: absolute; top: .4rem; right: .4rem; margin: 0; }
.update-banner-close button { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.update-list { list-style: none; margin: 1.5rem auto 0; padding: 0; max-width: 34rem; display: grid; gap: .8rem; text-align: left; }
.update-item { padding: 1rem 1.2rem; }
.update-item h3 { font-size: 1.25rem; margin: .1rem 0 .3rem; }
.update-item.is-pinned { border-color: var(--accent); }
.update-when { margin: 0; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
.notify { margin: 1.5rem auto 0; max-width: 26rem; text-align: center; }
.notify-note { margin: .6rem 0 0; font-size: .9rem; color: var(--muted); }
.notify-ios { margin-top: .8rem; padding: .9rem 1rem; text-align: left; font-size: .92rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.notify-ios ol { margin: .4rem 0 0; padding-left: 1.2rem; }

/* ---------- Occasions (occasion.py): what's shared, then each occasion's own touch ---------- */
.occasion-line { margin: .35rem 0 0; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.hero-photo .occasion-line, .hero-cinema .occasion-line { color: inherit; opacity: .9; }
/* a milestone age's small touch under the age line: "Golden 50" with its ornament */
.milestone-touch { display: inline-flex; align-items: center; gap: .45rem; margin: .5rem 0 0; font: italic 400 1.05rem/1.3 var(--font-display, Georgia, serif); color: var(--accent-text); }
.milestone-touch svg { flex: none; }
.hero-photo .milestone-touch, .hero-cinema .milestone-touch { color: inherit; }
.hero-logo img { display: block; max-width: 180px; max-height: 96px; margin: 0 auto 1rem; object-fit: contain; }
.t-speaker { display: block; font-size: .85rem; color: var(--muted); }
.venue-notes { display: grid; gap: 1rem; margin-top: 1.2rem; text-align: left; }
.debut-lists { display: grid; gap: 1rem; }
.debut-names { margin: .6rem 0 0; padding-left: 1.4rem; text-align: left; }
.debut-names li { margin: .35rem 0; }
.debut-message { display: block; font-size: .85rem; font-style: italic; color: var(--muted); }
/* The story / milestones list on every design (Luxe adds its line and dots in luxe.css). */
.story-timeline { list-style: none; margin: 2rem auto 0; padding: 0; max-width: 34rem; }
.story-step { margin: 0 0 2.2rem; }
.story-step:last-child { margin-bottom: 0; }
.story-step h3 { margin: .2rem 0 .4rem; }
.story-step img, .story-step .ph { margin-top: .9rem; }
.years-timeline .year { margin: 0; font-size: .8rem; letter-spacing: .2em; color: var(--accent-text); }
.speaker-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.speaker img { display: block; width: 96px; height: 96px; margin: 0 auto .6rem; border-radius: 50%; object-fit: cover; }
.speaker-name { margin: 0; font-weight: 500; }
.speaker-title { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }
.sponsor-wall { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.2rem 2.2rem; }
.sponsor { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.sponsor img { max-width: 150px; max-height: 64px; object-fit: contain; }
.sponsor-name { font-family: var(--font-display); font-size: 1.3rem; }
.sponsor-level { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 720px) {
  .debut-lists { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .venue-notes { grid-template-columns: 1fr 1fr; }
}

/* A company: formal and restrained. No florals or confetti; the seal is the logo. */
.occasion-corporate .names { letter-spacing: .01em; }
.occasion-corporate .seal-logo { width: 72%; height: 72%; object-fit: contain; border-radius: 50%; background: #fff; padding: 8%; }

/* A kids' birthday (playful): rounder shapes, a brighter accent and confetti. */
.tone-playful { --accent: #e0664f; --accent-text: #b8412c; --accent-soft: #fde3d6; }
.tone-playful .card, .tone-playful .btn, .tone-playful .framed-photo, .tone-playful .choice-btn span { border-radius: 22px; }
.tone-playful .invitation, .tone-playful .thankyou {
  background-image:
    radial-gradient(circle at 12% 18%, #f4b942 0 4px, transparent 5px),
    radial-gradient(circle at 86% 12%, #5bb6d8 0 5px, transparent 6px),
    radial-gradient(circle at 78% 72%, #e0664f 0 4px, transparent 5px),
    radial-gradient(circle at 20% 82%, #7cc47f 0 5px, transparent 6px),
    radial-gradient(circle at 50% 6%, #c58be0 0 3px, transparent 4px);
}
/* An elegant birthday: the confetti is only a whisper, in the page's own accent. */
.occasion-birthday.tone-elegant .invitation {
  background-image: radial-gradient(circle at 14% 16%, var(--accent-soft) 0 3px, transparent 4px),
                    radial-gradient(circle at 84% 20%, var(--accent-soft) 0 3px, transparent 4px);
}

/* ---- "Your photo here" (samples, and /design until a photo is added): the
   design's own colours, a fine border, a camera, the display font. The text
   is the page's ink on a light tint (or white on a deep tint in a full-bleed
   hero), so it keeps 4.5:1 (tests/test_placeholders_js.py). */
.ph { position: relative; display: grid; place-items: center; align-content: center; gap: .55rem; width: 100%; padding: 1rem;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--ink); text-align: center; overflow: hidden; border-radius: 12px; }
.ph::before { content: ""; position: absolute; inset: 6px; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 8px; pointer-events: none; }
.ph-icon { color: var(--accent-text); opacity: .9; }
.ph-text { font: 400 1.05rem/1.25 var(--font-display, Georgia, serif); letter-spacing: .02em; }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--landscape { aspect-ratio: 4 / 3; }
.ph--square, .ph--tile { aspect-ratio: 1; }
.ph--circle { aspect-ratio: 1; width: 7.5rem; border-radius: 50%; margin: 0 auto; padding: .6rem; }
.ph--circle::before { border-radius: 50%; }
.ph--circle .ph-text { font-size: .8rem; }
.ph--logo { aspect-ratio: 3 / 1; max-width: 16rem; margin: 0 auto; padding: .5rem; }
.ph--logo .ph-text { font-size: .85rem; }
.ph--tile { padding: .5rem; }
.ph--tile .ph-text { font-size: .9rem; }
/* full-bleed: the label is a small line by the top (or bottom) edge, clear of any title however long */
.ph--bleed { position: absolute; inset: 0; height: 100%; padding: 0; border: 0; border-radius: 0; align-content: start;
  grid-auto-flow: column; justify-content: center; align-items: center; gap: .5rem; padding-top: calc(30px + env(safe-area-inset-top));
  /* the theme's own colours (accent into its ink), never a black of its own: one palette (2026-10-06) */
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 50%, var(--hero-deep, var(--ink))),
                              color-mix(in srgb, var(--accent) 28%, var(--hero-deep, var(--ink))));
  color: #fff; }
.ph--bleed::before { inset: 14px; border-color: rgba(255, 255, 255, .28); border-radius: 10px; }
.ph--bleed .ph-text { font-size: .9rem; }
.ph--bleed .ph-icon { color: #fff; opacity: .85; }
.ph--bleed.ph--label-bottom { align-content: end; padding: 0 0 calc(30px + env(safe-area-inset-bottom)); }
.split-photo .ph, .framed-photo .ph { height: 100%; }
.hero-logo .ph { min-width: 12rem; }

/* "Made with e7ents": the wordmark, in the page's own muted colour */
.cam-made { text-align: center; }
.cam-plan { position: relative; padding-right: 3rem; }
.cam-plan-title { margin: 0 0 .25rem; font-weight: 500; }
.cam-plan-x { position: absolute; top: .25rem; right: .25rem; min-width: 44px; min-height: 44px; border: 0; background: none; font-size: 1.4rem; color: inherit; cursor: pointer; }
.made-with .e7-logo { display: inline-block; height: 1.15rem; width: auto; vertical-align: -.32em;
  /* the artwork's colours (gold e7, the page's own ink for "ents": dark on light templates, light on dark ones), and
     its hairline "e" drawn heavier: at this size it vanished and the logo read "7ents" (2026-10-23) */
  --e7-logo-ink: var(--ink, currentColor); --e7-logo-gold: color-mix(in srgb, #B8955A 78%, var(--ink, #211E2A)); --e7-logo-e: 4.5; }

/* a sample's note on what comes with which package (only on the samples) */
.sample-tier-note { display: inline-block; margin: .2rem auto .8rem; padding: .25rem .7rem; border: 1px dashed var(--line);
  border-radius: 999px; font-size: .72rem; letter-spacing: .04em; color: var(--muted); }

/* A draft's or an unpublished preview's mark (2026-10-06): a small faint line in the page's own
   flow, between sections, never over a heading or text. */
.e7-draft-tag { position: relative; z-index: 1; margin: 0 auto; padding: .35rem 0; text-align: center; pointer-events: none;
  font: 600 10px/1.2 system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); opacity: .32; }
.e7-draft-top { padding-top: calc(.5rem + env(safe-area-inset-top)); }

/* Program icons on every page (2026-10-06): each item its own line icon, never a plain dot. */
.timeline li:has(.t-icon-plain) { grid-template-columns: 4.6rem 28px minmax(0, 1fr); gap: .9rem; }
.timeline li:has(.t-icon-plain)::before { display: none; }
.timeline li .t-icon-plain { grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 28px; height: 28px; color: var(--accent-text); }
.timeline li:has(.t-icon-plain) .t-time { grid-column: 1; grid-row: 1; }
.timeline li:has(.t-icon-plain) .t-title { grid-column: 3; grid-row: 1; }
.t-icon-plain .la-icon { width: 24px; height: 23px; }
.timeline:has(.t-icon-plain)::before { left: calc(5.5rem + 14px); }
.timeline li .t-icon-plain { position: relative; z-index: 1; background: var(--bg); border-radius: 50%; }

/* the party QR's page (2026-10-15; wish_routes.py): a themed top in the event's colours (--cam-*), then the steps */
.cam .cam-top { padding: 2.2rem 1.2rem 1.6rem; text-align: center; background: var(--cam-accent, var(--accent)); color: var(--cam-on-accent, #fff); }
.cam .cam-top .camera-names { color: inherit; margin: .2rem 0; }
.cam-hi { margin: 0; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; }
.cam-lede { margin: .3rem 0 0; font-size: .95rem; }
.cam .camera { padding-top: 1.2rem; }
.cam-step { display: grid; gap: .8rem; }
.cam-step h2 { margin: 0; }
.cam-step-no { margin: 0; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cam-adds { display: flex; gap: .5rem; flex-wrap: wrap; }
.cam-add { min-height: 44px; }
.cam-skip { display: inline-flex; align-items: center; min-height: 44px; }
.cam-wish-mini { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 52px;
  margin: 0 0 1rem; padding: .7rem 1rem; text-decoration: none; color: inherit; font-weight: 500; }
.cam-wish-mini > * { margin: 0; line-height: 1.3; }
.cam-wish-mini .cam-wish-go { color: var(--cam-accent, var(--accent)); }
.cam-wish-mini[data-wish-card="sent"] { justify-content: flex-start; gap: .35rem; }
p.cam-wish-mini { font-weight: 400; color: var(--muted); }
.cam-upload { display: grid; gap: .3rem; margin-top: .8rem; }
.cam-upload-left { margin: 0; font-size: .9rem; font-weight: 500; text-align: center; }
.cam-upload-note { margin: .8rem 0 0; padding: .75rem 1rem; border-radius: 10px; background: var(--line); text-align: center; }
.cam-upload .btn, .camera-shoot { min-height: 48px; }
.rsvp-wish { margin-top: 1rem; text-align: center; }
.cam .btn:not(.btn-ghost) { background: var(--cam-accent); border-color: var(--cam-accent); color: var(--cam-on-accent, #fff); }
.cam .btn-ghost { color: var(--cam-accent); border-color: var(--cam-accent); }

/* My photos and My wish on the camera page (mine_routes.py, 2026-10-16) */
.cam-mine h2 { margin-top: 0; }
.cam-mine-grid { list-style: none; margin: .6rem 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .cam-mine-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cam-mine-grid li { position: relative; display: grid; gap: 4px; }
.cam-mine-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.cam-mine-tools { display: flex; gap: 4px; }
.cam-mine-tools form { margin: 0; flex: 1; }
.cam-mine-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 0 6px; box-sizing: border-box;
  border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; font: inherit; font-size: .82rem; text-decoration: none; cursor: pointer; }
.cam-mine-tools > a.cam-mine-btn { flex: 1; width: auto; }
.cam-mine-tag { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 6px; font-size: .7rem; background: rgba(0, 0, 0, .65); color: #fff; }
.cam-wish-edit { display: grid; gap: .5rem; margin-top: .6rem; }

/* RSVP on the group link (_group_rsvp.html, 2026-10-16) */
.group-rsvp { display: grid; gap: .8rem; text-align: left; max-width: 34rem; margin: 0 auto; }
.group-rsvp-title { margin: 0; font-size: 1.15rem; text-align: center; }
.group-rsvp-find input { width: 100%; min-height: 48px; box-sizing: border-box; font-size: 1.05rem; }
.group-rsvp-results { display: grid; gap: .6rem; }
.group-rsvp-results:empty { display: none; }
.group-rsvp-match p { margin: 0 0 .6rem; }
.group-rsvp-form[hidden], [data-group-count-field][hidden] { display: none; }

/* ---- A wish's voice/video message, recorded in the page (recorder.js, 2026-10-18) */
.shot-ask { margin: 0; font-family: var(--font-display, Georgia, serif); font-size: 1.35rem; }
.shot-progress { margin: .2rem 0 .7rem; font-size: .9rem; opacity: .85; }
.shot-cards { list-style: none; margin: 0 0 .7rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.shot-card { position: relative; min-height: 92px; display: grid; justify-items: center; align-content: center; gap: .35rem; padding: .6rem .5rem;
  border-radius: 16px; border: 1.5px solid color-mix(in srgb, var(--cam-accent, var(--accent)) 45%, transparent); text-align: center; cursor: pointer; }
.shot-card input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.shot-card svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.shot-card.is-done { opacity: .75; background: color-mix(in srgb, var(--cam-accent, var(--accent)) 12%, transparent); }
.shot-tick { position: absolute; top: 6px; right: 10px; font-weight: 600; color: var(--cam-accent, var(--accent)); }
.shot-free { width: 100%; }
.shot-for { margin: 0 0 .5rem; font-weight: 500; }
.shot-for[hidden] { display: none; }
.shot-what { border: 0; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.shot-what legend { padding: 0; margin-bottom: .3rem; font-size: .9rem; }
.shot-chip { display: inline-flex; align-items: center; gap: .3rem; min-height: 40px; padding: 0 .8rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent); font-size: .88rem; }
.wish-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .4rem 0 .8rem; }
.wish-choice { min-height: 64px; display: grid; justify-items: center; align-content: center; gap: .25rem; padding: .5rem; border-radius: 14px;
  border: 1.5px solid color-mix(in srgb, var(--cam-accent, var(--accent)) 45%, transparent); background: none; color: inherit; font: inherit; cursor: pointer; }
.wish-choice[hidden] { display: none; }
.wish-choice svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wish-choice[aria-pressed="true"] { background: var(--cam-accent, var(--accent)); color: var(--cam-on-accent, #fff); border-color: transparent; }
.rec-status { margin: 0 0 .5rem; }
.rec-status[hidden] { display: none; }
.rec { margin: .6rem 0; }
.wish-choices ~ .rec[data-rec-state="idle"] { margin: 0; }  /* opened from the choices: no room until it's used */
.rec[hidden] { display: none; }
.rec-panel { margin-top: .6rem; padding: 1rem; border: 1px solid color-mix(in srgb, var(--cam-accent, var(--accent)) 30%, transparent); border-radius: 14px; text-align: center; }
.rec-ask p { margin: 0 0 .7rem; }
.rec-dial { position: relative; width: 132px; height: 132px; margin: .4rem auto; }
.rec-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.rec-ring circle { fill: none; stroke-width: 8; }
.rec-ring-track { stroke: color-mix(in srgb, currentColor 12%, transparent); }
.rec-ring-left { stroke: var(--cam-accent, var(--accent)); stroke-linecap: round; transition: stroke-dashoffset var(--m-fast) var(--e-standard); }
.rec-big { position: absolute; inset: 18px; border-radius: 50%; border: 0; background: #d33a3a; cursor: pointer; display: grid; place-items: center; }
.rec-big span { width: 30px; height: 30px; border-radius: 50%; background: #fff; transition: border-radius var(--m-fast) var(--e-standard), width var(--m-fast) var(--e-standard), height var(--m-fast) var(--e-standard); }
.rec-big.is-on span { width: 26px; height: 26px; border-radius: 5px; }
.rec-left { font-size: 1.15rem; font-variant-numeric: tabular-nums; margin: .2rem 0; }
.rec-preview, .rec-play { width: 100%; max-height: 52vh; border-radius: 12px; background: #000; object-fit: cover; }
.rec-preview { transform: scaleX(-1); margin-bottom: .4rem; }
.rec-length { margin: 0 0 .6rem; }
.rec-done .btn-row { justify-content: center; flex-wrap: wrap; }
.rec-chosen { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .2rem .8rem; }
.cam-wish-voice { margin: .3rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .8rem; }
.rec button.cam-skip { background: none; border: 0; padding: 0 .4rem; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* the back arrow on a camera step (back.js, 2026-10-19) */
.cam-top { position: relative; }
.cam-back { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; }
.cam-back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cards in a section (2026-10-23): one card sits centred under its heading at a sensible width, two side
   by side, three or more wrap evenly, every row centred. (A two-column grid left one card in its left half: event
   1513's Where & when.) */
.venue-cards, .venue-notes, .debut-lists { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.venue-cards > *, .venue-notes > * { flex: 1 1 13rem; max-width: 24rem; min-width: 0; }
.debut-lists > * { flex: 1 1 220px; max-width: 24rem; min-width: 0; }
@media (min-width: 720px) {
  .speaker-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 200px)); justify-content: center; }  /* a phone keeps full-width cards */
  .wish-wall > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .4rem); }
}

/* The calendar block (weddings, calendar_block.py): the month small and quiet, the day in a heart in the accent.
   It wears the page's own fonts and colours, whatever the template or the Design tab chose. */
.calendar-block { padding-top: 3rem; padding-bottom: 3rem; }
.cal-head { margin: 0 0 1rem; font-family: var(--font-display); color: var(--lk-title, var(--ink)); line-height: 1.1; }
.cal-month { display: block; font-size: 1.9rem; letter-spacing: .02em; }
.cal-year { display: block; font-family: var(--font-body); font-size: .74rem; letter-spacing: .32em; color: var(--accent-text); margin-top: .35rem; }
.cal-grid { margin: 0 auto; border-collapse: collapse; width: 100%; max-width: 19.5rem; table-layout: fixed;
            font-family: var(--font-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.cal-grid th { font-size: .66rem; letter-spacing: .14em; font-weight: 500; color: var(--muted); padding: 0 0 .55rem; }
.cal-grid td { position: relative; height: 2.5rem; text-align: center; vertical-align: middle; font-size: .92rem; }
.cal-num { position: relative; z-index: 1; }
.cal-day.is-the-day { font-weight: 600; color: var(--ink); }
.cal-heart { position: absolute; left: 50%; top: 50%; width: 2.35rem; height: 2.2rem; transform: translate(-50%, -50%);
             fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2.2; overflow: visible; }
.cal-caption { margin: 1rem 0 0; font-size: .82rem; letter-spacing: .06em; color: var(--muted); }

/* "Full photo" (weddings, partials/hero_poster.html): the photo full screen, the words over a soft shade at the
   bottom. Every word sits inside the shade's solid part (the 7rem above it is the soft fade), so it keeps 4.5:1
   on any photo; --poster-ink and --poster-shade come from page.POSTER, light words or dark by the photo. */
.hero-poster { position: relative; width: 100vw; margin: 0 calc(50% - 50vw) 2.5rem; min-height: 100vh; min-height: 100svh;
               overflow: hidden; display: flex; align-items: flex-end; justify-content: center; color: var(--poster-ink); }
.poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-text { position: relative; width: 100%; padding: 7rem 1.25rem 2.6rem; text-align: center;
               background: linear-gradient(to top, var(--poster-shade) 0, var(--poster-shade) calc(100% - 7rem), rgba(0, 0, 0, 0) 100%); }
.poster-title { margin: 0 0 .9rem; line-height: 1; font-weight: 400; }
.poster-serif { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 13vw, 4.4rem); letter-spacing: .06em;
                text-transform: uppercase; line-height: .95; }
.poster-script { display: block; position: relative; margin-top: -.42em; font-family: var(--font-script); font-size: clamp(3rem, 16vw, 5.4rem);
                 line-height: 1; color: var(--poster-ink); }
.hero-poster .poster-names { color: var(--poster-ink); font-size: clamp(1.9rem, 9vw, 2.8rem); margin: 0; }
.hero-poster .amp, .hero-poster .occasion-line { color: var(--poster-ink); opacity: 1; }
.hero-poster .occasion-line { font-size: .86rem; margin: .5rem 0 0; }
.poster-date { margin: .9rem 0 0; font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; }
.hero-poster .countdown { margin-top: 1.2rem; color: var(--poster-ink); }
.hero-poster .countdown .cd-unit, .hero-poster .countdown > .cd-unit { background: none; border-color: currentColor; color: var(--poster-ink); box-shadow: none; }
/* doubled: over a collection's own countdown colours (collection.css loads after this), the words stay the poster's */
.hero-poster.hero-poster .countdown .cd-unit b, .hero-poster.hero-poster .countdown .cd-words, .hero-poster.hero-poster .countdown .cd-today { color: var(--poster-ink); background: none; }
.hero-poster .countdown .cd-unit b::after { display: none; }
@media (min-width: 720px) { .poster-text { padding-bottom: 4rem; } }
.section.invitation:has(> .hero-poster) { padding-top: 0; }  /* the photo starts at the very top of the cover */
/* the words and the countdown fit one phone screen under the photo */
.hero-poster .countdown { gap: .45rem; }
.hero-poster .countdown > .cd-unit { min-width: 0; width: 4.1rem; height: 4.1rem; padding: .35rem .1rem; }
.hero-poster .countdown .cd-unit b { font-size: 1.45rem; }
.hero-poster .countdown .cd-words { font-size: 1rem; margin-bottom: .45rem; }

/* music.css */
/* Music + countdown add-on, on any design: the tap-to-play buttons, the
   floating music toggle and the live countdown. */

.music-cta { margin-top: 1.5rem; }
.music-cta svg { width: 18px; height: 18px; }
/* both words share one box, so the button never changes size when the music starts (no layout shift) */
.mc-labels { display: inline-grid; }
.mc-labels > span { grid-area: 1 / 1; }
.music-cta .when-on, [aria-pressed="true"] .when-off { visibility: hidden; }
[aria-pressed="true"] .when-on { visibility: visible; }

/* ---------- Countdown ---------- */
.countdown { display: flex; flex-wrap: nowrap; justify-content: center; gap: .55rem; margin: 1.8rem auto 0; max-width: 100%; }
/* Fixed-width units: nothing moves as the digits change, and four always fit on one line at 360 px.
   Only the units themselves are boxes: the spans music.js puts inside a digit
   while it changes must stay plain digits (a ".countdown span" rule once drew
   them as small pills with a tiny number). */
.countdown > .cd-unit {
  display: flex; flex-direction: column; align-items: center; flex: none; width: 4.4rem; min-width: 0; box-sizing: border-box;
  padding: .75rem .3rem .6rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.countdown b { display: grid; align-items: center; justify-items: center; align-self: stretch; height: 1.1em; font: 500 1.8rem/1.1 var(--font-display); color: var(--ink); letter-spacing: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cd-today { margin: 0; font: 500 clamp(1.8rem, 8vw, 2.4rem)/1.2 var(--font-display); color: var(--accent-text); letter-spacing: .02em; }
/* A digit changing, in under 250 ms: the old one lifts away as the new one settles in. */
.cd-out, .cd-in { grid-area: 1 / 1; display: block; line-height: inherit; }  /* same box as the digits at rest: no shift */
.cd-out { animation: cd-out var(--m-fast) var(--e-exit) forwards; }
.cd-in { animation: cd-in var(--m-fast) var(--e-entrance) both; }
@keyframes cd-out { to { opacity: 0; transform: translateY(-35%); } }
@keyframes cd-in { from { opacity: 0; transform: translateY(35%); } to { opacity: 1; transform: none; } }
/* Flip cards: the top half folds down, then the new bottom half falls into place
   (120 + 120 ms). Every half wears the card's own face, so a half in front hides
   the one behind it (never two digits on top of each other); the card's 1 px edge stays. */
.cd-flip { position: absolute; inset: 1px; display: block; border-radius: inherit; background: inherit; }
.cd-half { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; border-radius: inherit; background: inherit; }
.cd-top, .cd-fold-top { clip-path: inset(0 0 50% 0); }
.cd-bottom, .cd-fold-bottom { clip-path: inset(50% 0 0 0); }
.cd-fold-top { transform-origin: 50% 50%; animation: cd-fold-top calc(var(--m-fast) * .75) var(--e-exit) forwards; }
.cd-fold-bottom { transform-origin: 50% 50%; transform: rotateX(90deg);
  animation: cd-fold-bottom calc(var(--m-fast) * .75) var(--e-entrance) calc(var(--m-fast) * .75) forwards; }
.cd-fold-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .18)); opacity: 0; animation: cd-shade calc(var(--m-fast) * .75) var(--e-exit) forwards; }
@keyframes cd-fold-top { to { transform: rotateX(-90deg); } }
@keyframes cd-fold-bottom { to { transform: none; } }
@keyframes cd-shade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cd-out, .cd-in, .cd-fold-top, .cd-fold-bottom { animation: none; } .cd-out, .cd-fold-top { opacity: 0; } .cd-fold-bottom { transform: none; } }

/* ---------- Floating music toggle ---------- */
.music-float {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--accent-text); cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(0,0,0,.45);
}
.music-float svg { width: 20px; height: 20px; }
.music-float svg { grid-area: 1 / 1; transition: opacity var(--m-base) var(--e-standard), transform var(--m-base) var(--e-standard); }
.music-float .icon-on, .music-float[aria-pressed="true"] .icon-off { opacity: 0; transform: scale(.8); }
.music-float[aria-pressed="true"] .icon-on { opacity: 1; transform: none; }
.music-float[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent);
  animation: pulse 2400ms var(--e-standard) infinite;
  /* transform and opacity only, on its own layer: the pulse never moves or repaints anything around it */
  pointer-events: none; will-change: transform, opacity;
}
@keyframes pulse { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

@media (prefers-reduced-motion: reduce) {
  .music-float::after { animation: none; }
}

/* ---------- "Play our song" (guest/partials/song_card.html) ---------- */
.song-card { padding: clamp(2rem, 6vw, 3.5rem) 1rem; display: grid; place-items: center; }
.song-card-inner { width: min(100%, 26rem); padding: 1.4rem 1.3rem 1.2rem; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); box-shadow: 0 18px 40px -28px rgba(0,0,0,.45); text-align: left; }
.song-eyebrow { margin: 0 0 .9rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text); text-align: center; }
.song-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; align-items: center; }
.song-play { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: var(--surface); }
.song-play svg { width: 22px; height: 22px; grid-area: 1 / 1; transition: opacity var(--m-base) var(--e-standard); }
.song-play .icon-on, .song-play[aria-pressed="true"] .icon-off { opacity: 0; }
.song-play[aria-pressed="true"] .icon-on { opacity: 1; }
.song-text { min-width: 0; }
.song-title { margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.25; overflow-wrap: anywhere; }
.song-artist { margin: .2rem 0 0; font-size: .9rem; opacity: .75; overflow-wrap: anywhere; }
.song-progress { margin-top: 1.1rem; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.song-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--m-fast) var(--e-standard); }
@media (prefers-reduced-motion: reduce) { .song-play svg, .song-progress span { transition: none; } }

/* Lucky 7 ✨ (lucky7.py): a small badge by the countdown, when the client switches it on */
.lucky7-badge { margin: 1.4rem 0 -.8rem; text-align: center; font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-text); }

/* cinema.css */
/* The cinematic hero: the Luxe design's hero, and the video hero add-on on
   any design. A still (or a muted looping video) with an animated monogram. */

/* ---------- Cinematic hero ---------- */
.hero-cinema { min-height: 100vh; min-height: 100svh; align-items: center; background: #000; }
.hero-cinema .hero-video { opacity: 0; transition: opacity var(--m-cine) var(--e-standard); }
.hero-cinema .hero-video.is-playing { opacity: 1; }
.hero-cinema .hero-shade {
  background: radial-gradient(120% 80% at 50% 45%, rgba(0,0,0,.05), rgba(0,0,0,.55)),
              linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 35%, rgba(0,0,0,.55));
}
.hero-cinema .hero-text { padding: 0 1.5rem; }
.monogram { width: 120px; height: 120px; margin: 0 auto 1rem; color: #e9cf8a; overflow: visible; }
.monogram { animation: mono-in var(--m-cine) var(--e-entrance) 300ms both; }
.monogram circle { fill: none; stroke: currentColor; stroke-width: 1; }
.monogram .mono-inner { stroke-width: .6; }
.monogram text { fill: currentColor; font: 400 38px var(--font-display); letter-spacing: 4px; }
@keyframes mono-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.sound-toggle {
  position: absolute; left: 1rem; top: calc(1rem + env(safe-area-inset-top)); z-index: 3;
  min-height: 44px; padding: .5rem .95rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.28); color: #fff;
  font: 500 .7rem var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sound-toggle .when-on, .sound-toggle[aria-pressed="true"] .when-off { display: none; }
.sound-toggle[aria-pressed="true"] .when-on { display: inline; }
.hero-cinema .scroll-cue { position: absolute; bottom: calc(1.5rem + env(safe-area-inset-bottom)); left: 0; right: 0; width: max-content; margin: 0 auto; color: #fff; }  /* centred without a transform: text on whole pixels */

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .monogram circle { stroke-dashoffset: 0; }
  .monogram text { opacity: 1; }
}

/* opening.css */
/* The opening over the page (static/js/guest/opening.js draws the scenes).
   Luxury stationery, not a cartoon: flat stacks of vector paper with explicit
   layer order (never 3D intersections), multi-layer soft shadows, a grain drawn
   at the screen's pixel ratio. Durations and easings are the motion tokens in
   base.css; only transform and opacity move, layer swaps are instantaneous.
   No JS or reduced motion: no opening, the page as it is. */

.e7-opening {
  --o-paper: color-mix(in srgb, var(--accent) 9%, #f7f1e6);  /* always light paper: the dark ink reads on it, on every gem */
  --o-paper-shade: color-mix(in srgb, var(--o-paper) 90%, #6b5536);
  --o-liner: var(--accent-soft);
  --o-seal: var(--seal, #7b2d26);
  --o-ink: #3b3024;
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(110% 80% at 50% 42%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 62%), var(--bg);
  cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; color: var(--o-ink);
  touch-action: none; overscroll-behavior: contain;
}
.e7-opening:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.no-js .e7-opening { display: none; }
/* If the script never arrives, the cover steps aside on its own. */
.e7-opening:not(.is-ready) { animation: e7o-failsafe var(--m-base) var(--e-exit) 8s forwards; }
@keyframes e7o-failsafe { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .e7-opening { display: none !important; } }

/* The first-paint shell (replaced by the scene as soon as the script runs). */
.e7o-shell { display: grid; gap: .4rem; text-align: center; padding: 2rem; }
.e7o-names { font: 400 2.4rem/1.1 var(--o-title); color: var(--ink); }
.e7o-for { font: 500 .62rem var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 1rem; }
.e7o-guest { font: 400 1.6rem/1.2 var(--o-title); color: var(--ink); }
.e7o-tap { margin-top: 1.4rem; font: 500 .72rem var(--font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--accent-text); }

/* The page comes up behind the opening as it goes (and is never transformed at rest). Only the first
   screen moves (its first two sections: all a guest can see then): animating the whole page, one layer
   thousands of pixels tall, dropped frames on a phone-class CPU (2026-10-08). */
body.e7o-reveal main > :nth-child(-n+2) { animation: e7o-page-in var(--m-slow) var(--e-entrance) both; }
body.e7o-skip main > :nth-child(-n+2) { animation: e7o-fade-in var(--m-fast) var(--e-standard) both; }
@keyframes e7o-page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes e7o-fade-in { from { opacity: 0; } to { opacity: 1; } }
.e7o-fade main > :nth-child(-n+2) { animation: e7o-page-in var(--m-cine) var(--e-entrance) both; }
@media (prefers-reduced-motion: reduce) {
  body.e7o-reveal main > :nth-child(-n+2), .e7o-fade main > :nth-child(-n+2) { animation: none; }
}

/* ---------------------------------------------------------------- shared */
/* Two fonts at most on an opening (2026-10-10): its titles (names, seal letters) in one face, the
   rest in the body face. The script by default; an editorial template's display face; a comic's own. */
.e7-opening { --o-title: var(--font-script); }
.tpl-l-editorial .e7-opening, .e7-opening.o-comic_cover { --o-title: var(--font-display); }
/* One corner radius for the paper and art of every opening (8-16 px). */
.e7-opening { --o-radius: 12px; }
.e7-opening.is-playing { animation: e7o-exit var(--m-slow) var(--e-exit) forwards; animation-delay: calc(var(--o-length) - 600ms); }
.o-envelope { --o-length: 3000ms; } .o-wax_seal { --o-length: 3500ms; } .o-gatefold { --o-length: 2800ms; }
.o-ribbon { --o-length: 3200ms; } .o-lasercut { --o-length: 2400ms; } .o-curtains { --o-length: 2600ms; } .o-book { --o-length: 2900ms; }
@keyframes e7o-exit { to { opacity: 0; } }
@keyframes e7o-out { to { opacity: 0; } }

/* The one big "Open invitation" button every opening has (2026-10-10): the whole opening is the tap
   target (role=button), this is its sign. A gentle pulse: the button breathes, its ring fades out. */
.o-hint {
  position: absolute; left: 50%; bottom: calc(6vh + env(safe-area-inset-bottom)); z-index: 6; translate: -50% 0;
  display: block; white-space: nowrap; padding: 17px 44px; border-radius: 40px;
  font: 600 1.06rem/1.2 var(--font-body); letter-spacing: 0; text-transform: none;
  background: var(--ink); color: var(--bg); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45);
  animation: e7o-pulse 2400ms ease-in-out infinite; pointer-events: none;
}
.o-hint::before { content: ""; position: absolute; inset: -8px; border-radius: inherit; z-index: -1;
  background: color-mix(in srgb, var(--ink) 14%, transparent); animation: e7o-ring 2400ms ease-out infinite; }
@keyframes e7o-pulse { 50% { transform: scale(1.04); } }
@keyframes e7o-ring { 0% { opacity: .9; transform: scale(.94); } 70%, 100% { opacity: 0; transform: scale(1.12); } }
.is-playing .o-hint { animation: e7o-out var(--m-fast) var(--e-exit) forwards; }
.is-playing .o-hint::before { animation: none; opacity: 0; }
/* a personal link: "Dear Tita Marites," above, the seats kept for them above the button */
.o-dear { position: absolute; left: 0; right: 0; top: calc(4vh + env(safe-area-inset-top)); z-index: 5; text-align: center;
  font: 400 clamp(1.3rem, 6vw, 1.7rem)/1.2 var(--o-title); color: var(--ink); padding: 0 1.2rem; pointer-events: none; }
.o-seats { position: absolute; left: 0; right: 0; bottom: calc(6vh + 74px + env(safe-area-inset-bottom)); z-index: 5;
  text-align: center; font: 400 1.05rem/1.3 var(--font-body); color: var(--ink); padding: 0 1.2rem; pointer-events: none; }
.o-seats b { font-weight: 700; }
.is-playing .o-dear, .is-playing .o-seats { animation: e7o-out var(--m-fast) var(--e-exit) forwards; }
.o-card-after { font: 500 .58rem var(--font-body); letter-spacing: .24em; text-transform: uppercase; opacity: .7; }

.o-stage { position: relative; width: min(86vw, 380px); }
.o-stage-tall { width: min(76vw, 330px); }
.o-stage-book { width: min(70vw, 300px); }
.o-layer { position: absolute; display: block; }

/* Shadows: a tight contact shadow and a wide ambient one (no single heavy blur). */
.o-shadow { position: absolute; left: 4%; right: 4%; pointer-events: none; border-radius: 50%; }
.o-shadow-contact { bottom: -3%; height: 7%; background: radial-gradient(closest-side, rgba(30, 20, 10, .28), transparent); }
.o-shadow-ambient { left: -6%; right: -6%; bottom: -12%; height: 26%; background: radial-gradient(closest-side, rgba(30, 20, 10, .14), transparent); }

/* Paper: colour, a soft light from the top left, the grain (drawn at the screen's
   pixel ratio by opening.js). */
.o-paper {
  background-color: var(--o-paper);
  background-image: var(--o-grain, none), linear-gradient(160deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 42%, rgba(70, 50, 25, .07) 100%);
  background-size: var(--o-grain-size, 96px 96px), 100% 100%;
}
.o-leather {
  background-color: color-mix(in srgb, var(--accent) 32%, #1e1712);
  background-image: var(--o-grain, none), radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .14), transparent 60%);
  background-size: var(--o-grain-size, 96px 96px), 100% 100%;
}

/* Liner patterns (inside the envelope, the gate doors and the covers). */
.o-liner { position: absolute; inset: 0; background-color: var(--o-liner); }
/* Fine, faint and calm: thin lines and small marks in a tint of the accent (no heavy dot grids). */
.o-pattern-damask .o-liner {  /* a delicate trellis */
  background-image: repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 16%, transparent) 0 .6px, transparent .6px 14px),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--accent) 16%, transparent) 0 .6px, transparent .6px 14px);
}
.o-pattern-dots .o-liner { background-image: radial-gradient(color-mix(in srgb, var(--accent) 22%, transparent) .9px, transparent 1.3px); background-size: 14px 14px; }
.o-pattern-stripes .o-liner { background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent) 0 1px, transparent 1px 12px); }
.o-pattern-floral .o-liner {
  background-image: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 20%, transparent) 0 1.6px, transparent 2px),
    radial-gradient(circle at 30% 60%, color-mix(in srgb, var(--accent) 16%, transparent) 0 1.4px, transparent 1.8px),
    radial-gradient(circle at 70% 60%, color-mix(in srgb, var(--accent) 16%, transparent) 0 1.4px, transparent 1.8px);
  background-size: 26px 26px;
}

/* The card: names and date. */
.o-card {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  padding: 8% 7%; text-align: center; border-radius: var(--o-radius); color: var(--o-ink);
  background-color: #fffbf2;
  background-image: var(--o-grain, none), linear-gradient(165deg, #fffdf8, #f7efdf);
  background-size: var(--o-grain-size, 96px 96px), 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), inset 0 0 0 7px #fffbf2, inset 0 0 0 8px color-mix(in srgb, var(--accent) 50%, transparent),
    0 1px 1px rgba(30, 20, 10, .12), 0 6px 14px -8px rgba(30, 20, 10, .3);
}
.o-card-eyebrow { font: 500 .58rem var(--font-body); letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.o-card-names { font: 400 clamp(1.5rem, 7vw, 2.1rem)/1.15 var(--o-title); }
.o-card.is-tall .o-card-names { font-size: clamp(1.8rem, 8vw, 2.5rem); }
.o-card-date { font: 500 .66rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.o-card-move, .o-card-pose { position: absolute; inset: 0; display: block; }

.o-address { display: grid; gap: .15rem; text-align: center; color: var(--o-ink); }
.o-for { font: 500 .58rem var(--font-body); letter-spacing: .32em; text-transform: uppercase; opacity: .7; }
.o-guest { font: 400 clamp(1.3rem, 6.4vw, 1.9rem)/1.15 var(--o-title); padding: 0 1rem; }
.is-playing .o-address { animation: e7o-out var(--m-base) var(--e-exit) 80ms forwards; }

/* ---------------------------------------------------------------- the seal: embossed wax that presses, cracks and falls */
.o-seal { position: relative; display: block; width: var(--s); height: var(--s); }
.o-seal-half { position: absolute; inset: 0; display: block; filter: drop-shadow(0 1px 1px rgba(30, 10, 5, .35)) drop-shadow(0 4px 7px rgba(30, 10, 5, .22)); }
.o-seal-svg { display: block; width: 100%; height: 100%; }
.o-wax { fill: var(--o-seal); }
.o-seal-letters { fill: rgba(255, 255, 255, .82); font: 500 22px var(--o-title); letter-spacing: 1px; }
.o-seal-mono { color: rgba(255, 255, 255, .82); fill: currentColor; }
.o-seal-cut { position: absolute; inset: 0; display: block; }
.o-seal-l > .o-seal-cut { clip-path: polygon(0 0, 52% 0, 46% 26%, 55% 41%, 45% 58%, 54% 74%, 47% 100%, 0 100%); }
.o-seal-r > .o-seal-cut { clip-path: polygon(52% 0, 100% 0, 100% 100%, 47% 100%, 54% 74%, 45% 58%, 55% 41%, 46% 26%); }
.o-seal.is-logo .o-wax { fill: #fbfaf7; }
.o-crack { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scaleY(.2); transform-origin: 50% 50%; }
.o-bit { position: absolute; left: 50%; top: 50%; width: 3px; height: 2.5px; margin: -1px; border-radius: 1px; background: var(--o-seal); opacity: 0; }
/* small seal (classic envelope, gatefold) */
.is-playing .o-seal.is-small { animation: e7o-press var(--m-fast) var(--e-standard) both; }
.is-playing .o-seal.is-small .o-crack { animation: e7o-crack var(--m-fast) var(--e-standard) 120ms forwards, e7o-out var(--m-fast) var(--e-exit) 300ms forwards; }
.is-playing .o-seal.is-small .o-seal-l { animation: e7o-fall-l var(--m-slow) var(--e-exit) 260ms forwards; }
.is-playing .o-seal.is-small .o-seal-r { animation: e7o-fall-r var(--m-slow) var(--e-exit) 260ms forwards; }
.is-playing .o-seal.is-small .o-bit { animation: e7o-bit var(--m-slow) var(--e-entrance) 270ms forwards; }
/* big seal (wax seal break): a slower press, a fine crack, then the halves */
.is-playing .o-seal.is-big { animation: e7o-press-big var(--m-base) var(--e-standard) both; }
.is-playing .o-seal.is-big .o-crack { animation: e7o-crack var(--m-base) var(--e-standard) 240ms forwards, e7o-out var(--m-fast) var(--e-exit) 560ms forwards; }
.is-playing .o-seal.is-big .o-seal-l { animation: e7o-fall-l var(--m-slow) var(--e-exit) 520ms forwards; }
.is-playing .o-seal.is-big .o-seal-r { animation: e7o-fall-r var(--m-slow) var(--e-exit) 560ms forwards; }
.is-playing .o-seal.is-big .o-bit { animation: e7o-bit var(--m-slow) var(--e-entrance) 540ms forwards; }
@keyframes e7o-press { 50% { transform: scale(.94); } 100% { transform: scale(.97); } }
@keyframes e7o-press-big { 60% { transform: scale(.93); } 100% { transform: scale(.96); } }
@keyframes e7o-crack { to { opacity: 1; transform: none; } }
@keyframes e7o-fall-l { 0% { transform: none; opacity: 1; } 100% { transform: translate(-18%, 70%) rotate(-24deg); opacity: 0; } }
@keyframes e7o-fall-r { 0% { transform: none; opacity: 1; } 100% { transform: translate(16%, 76%) rotate(20deg); opacity: 0; } }
@keyframes e7o-bit { 0% { opacity: .9; transform: none; } 100% { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)); } }
/* A company's logo badge lifts away instead of cracking. */
.is-corporate.is-playing .o-seal { animation: e7o-lift var(--m-slow) var(--e-standard) 120ms forwards; }
.is-corporate.is-playing .o-seal .o-seal-l, .is-corporate.is-playing .o-seal .o-seal-r,
.is-corporate.is-playing .o-seal .o-crack, .is-corporate.is-playing .o-seal .o-bit { animation: none; }
@keyframes e7o-lift { to { transform: translateY(-18px); opacity: 0; } }

/* ---------------------------------------------------------------- classic envelope (and wax seal break)
   Back to front: back (1), liner (2), card in its clipped slot (4), pocket (5),
   flap while closed (6), seal (7). The flap moves behind the card (3) at the
   instant it is edge-on; the card's slot comes to the front (8) only once the
   card has fully cleared the pocket. */
.o-env { position: relative; width: 100%; aspect-ratio: 7 / 5; perspective: 1100px; perspective-origin: 50% 20%; }
.o-env > .o-shadow { z-index: 0; }
.o-env-back { inset: 0; z-index: 1; border-radius: var(--o-radius); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 1px rgba(30, 20, 10, .1), 0 14px 30px -18px rgba(30, 20, 10, .45); }
.o-env-liner { left: 3.5%; right: 3.5%; top: 3.5%; height: 52%; z-index: 2; overflow: hidden; border-radius: calc(var(--o-radius) - 4px); }
.o-slot { left: 4.5%; right: 4.5%; top: 4.5%; bottom: 4%; z-index: 4; clip-path: inset(-400% 0 0 0); }
.o-pocket-layer { inset: 0; z-index: 5; }
.o-pocket-layer.o-paper { background-color: transparent; background-image: none; }
/* Only the paper itself is solid: the gaps between the flaps show what's behind. */
.o-pocket { display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; clip-path: inset(0 round var(--o-radius)); }
.o-pocket path { pointer-events: visiblePainted; }
.o-pocket-layer, .o-flap-layer, .o-env-shade, .o-env-address, .o-env-liner { pointer-events: none; }
.o-flap-face, .o-env-seal { pointer-events: auto; }
/* The side flaps share their top edge with the flap's: two soft edges on one line leave a seam the
   card shows through, so each side flap reaches a hair under the flap. Fully opaque: paper. */
.o-pk-side { fill: var(--o-paper); stroke: var(--o-paper); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.o-pk-r { fill: var(--o-paper-shade); stroke: var(--o-paper-shade); }
.o-pk-bottom { fill: color-mix(in srgb, var(--o-paper) 96%, #fff); }
.o-fold-lit { stroke: rgba(255, 255, 255, .7); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.o-fold-shade { stroke: rgba(80, 60, 30, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.o-env-shade { left: 0; right: 0; top: 0; height: 58%; z-index: 5; opacity: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(40, 25, 10, .32), rgba(40, 25, 10, 0)); }
.o-flap-layer { left: 0; right: 0; top: 0; height: 56%; z-index: 6; }
.o-flap { position: absolute; inset: 0; display: block; transform-origin: 50% 0; transform-style: preserve-3d; }
.o-flap-face { position: absolute; inset: 0; display: block; clip-path: polygon(0 0, 100% 0, 50% 100%); backface-visibility: hidden;
  border-radius: var(--o-radius) var(--o-radius) 0 0; }  /* painted round, then cut: the corners stay round */
.o-flap-front { background-color: color-mix(in srgb, var(--o-paper) 94%, #6b5536);
  background-image: var(--o-grain, none), linear-gradient(to bottom, rgba(255, 255, 255, .25), rgba(0, 0, 0, .04));
  background-size: var(--o-grain-size, 96px 96px), 100% 100%; }
.o-flap-back { transform: rotateX(180deg); overflow: hidden; }
.o-env-address { left: 0; right: 0; bottom: 9%; z-index: 6; }
.o-env-seal { left: 50%; top: 56%; z-index: 7; translate: -50% -50%; }
.has-big-seal .o-env-seal { top: 54%; }
.has-big-seal .o-env-address { bottom: 5%; }

/* The choreography (ms): settle 0, seal 0-860, flap 450-1650 (edge-on at 690:
   the standard easing reaches half way at a fifth of its time), card rises
   1050-2250, comes forward at 2250 as the envelope eases away, page fades up. */
.is-playing .o-env { animation: e7o-settle var(--m-slow) var(--e-standard) both; }
@keyframes e7o-settle { to { transform: translateY(4px); } }
.is-playing .o-flap { animation: e7o-flap var(--m-cine) var(--e-standard) 450ms forwards; }
@keyframes e7o-flap { to { transform: rotateX(180deg); } }
.is-playing .o-flap-layer { animation: e7o-behind 0s linear 690ms forwards, e7o-away var(--m-slow) var(--e-exit) 2250ms forwards; }
@keyframes e7o-behind { to { z-index: 3; } }
.is-playing .o-env-shade { animation: e7o-shade var(--m-cine) var(--e-standard) 450ms forwards; }
@keyframes e7o-shade { 25% { opacity: 1; } 100% { opacity: 0; } }
.is-playing .o-card-move { animation: e7o-rise var(--m-cine) var(--e-entrance) 1050ms forwards; }
@keyframes e7o-rise { to { transform: translateY(-108%); } }
.is-playing .o-slot { animation: e7o-release 0s linear 2250ms forwards; }
@keyframes e7o-release { to { z-index: 8; clip-path: none; } }
.is-playing .o-env .o-card-pose { animation: e7o-forward var(--m-slow) var(--e-standard) 2250ms forwards; }
@keyframes e7o-forward { to { transform: translateY(62%) scale(1.1); } }
.is-playing .o-env-back, .is-playing .o-env-liner, .is-playing .o-pocket-layer,
.is-playing .o-env > .o-shadow { animation: e7o-away var(--m-slow) var(--e-exit) 2250ms forwards; }
@keyframes e7o-away { to { transform: translateY(28%); opacity: 0; } }
/* wax seal break: the same envelope, everything after the seal 500 ms later */
.o-wax_seal.is-playing .o-flap { animation-delay: 950ms; }
.o-wax_seal.is-playing .o-flap-layer { animation-delay: 1190ms, 2750ms; }
.o-wax_seal.is-playing .o-env-shade { animation-delay: 950ms; }
.o-wax_seal.is-playing .o-card-move { animation-delay: 1550ms; }
.o-wax_seal.is-playing .o-slot { animation-delay: 2750ms; }
.o-wax_seal.is-playing .o-env .o-card-pose, .o-wax_seal.is-playing .o-env-back, .o-wax_seal.is-playing .o-env-liner,
.o-wax_seal.is-playing .o-pocket-layer, .o-wax_seal.is-playing .o-env > .o-shadow { animation-delay: 2750ms; }

/* ---------------------------------------------------------------- gatefold: two doors on hinges, the card behind lifts */
.o-gate { position: relative; width: 100%; aspect-ratio: 5 / 7; perspective: 1200px; }
.o-gate-card { inset: 0; z-index: 1; }
.o-door { top: 0; bottom: 0; width: 50%; z-index: 3; transform-style: preserve-3d; }
.o-door-l { left: 0; transform-origin: 0 50%; }
.o-door-r { right: 0; transform-origin: 100% 50%; }
.o-door-face { position: absolute; inset: 0; display: block; backface-visibility: hidden; }
.o-door-l .o-door-front { border-radius: var(--o-radius) 0 0 var(--o-radius); box-shadow: inset -1px 0 0 rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 22px -16px rgba(30, 20, 10, .5); }
.o-door-r .o-door-front { border-radius: 0 var(--o-radius) var(--o-radius) 0; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 22px -16px rgba(30, 20, 10, .5); }
.o-door-trim { position: absolute; inset: 7%; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.o-door-l .o-door-trim { right: 0; border-right: 0; }
.o-door-r .o-door-trim { left: 0; border-left: 0; }
.o-door-back { transform: rotateY(180deg); overflow: hidden; }
.o-door-shade { position: absolute; inset: 0; opacity: 0; pointer-events: none; backface-visibility: hidden; }
.o-door-l .o-door-shade { background: linear-gradient(90deg, rgba(40, 25, 10, 0), rgba(40, 25, 10, .3)); }
.o-door-r .o-door-shade { background: linear-gradient(-90deg, rgba(40, 25, 10, 0), rgba(40, 25, 10, .3)); }
.o-gate-address { left: 0; right: 0; bottom: 8%; z-index: 4; }
.o-gate-seal { left: 50%; top: 46%; z-index: 5; translate: -50% -50%; }
.is-playing .o-door-l { animation: e7o-door-l var(--m-cine) var(--e-standard) 500ms forwards; }
.is-playing .o-door-r { animation: e7o-door-r var(--m-cine) var(--e-standard) 540ms forwards; }
@keyframes e7o-door-l { to { transform: rotateY(-108deg); } }
@keyframes e7o-door-r { to { transform: rotateY(108deg); } }
.is-playing .o-door-shade { animation: e7o-shade var(--m-cine) var(--e-standard) 500ms forwards; }
.is-playing .o-gate .o-card-pose { animation: e7o-lift-card var(--m-slow) var(--e-standard) 1400ms forwards; }
@keyframes e7o-lift-card { to { transform: translateY(-2%) scale(1.03); } }
.is-playing .o-gate > .o-shadow { animation: e7o-out var(--m-slow) var(--e-exit) 1400ms forwards; }

/* ---------------------------------------------------------------- ribbon untie: the ribbon stays in front until it's off */
.o-gift { position: relative; width: 100%; aspect-ratio: 5 / 7; perspective: 1300px; }
.o-gift-card { inset: 0; z-index: 1; }
.o-gift-cover { inset: 0; z-index: 3; transform-origin: 0 50%; transform-style: preserve-3d; }
.o-cover-face { position: absolute; inset: 0; display: block; backface-visibility: hidden; border-radius: var(--o-radius); }
.o-gift-cover .o-cover-front { display: grid; place-items: end center; padding-bottom: 14%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 1px rgba(30, 20, 10, .12), 0 14px 30px -18px rgba(30, 20, 10, .45); }
.o-cover-back { transform: rotateY(180deg); overflow: hidden; }
.o-cover-shade { position: absolute; inset: 0; opacity: 0; backface-visibility: hidden; pointer-events: none; background: linear-gradient(90deg, rgba(40, 25, 10, 0), rgba(40, 25, 10, .35)); }
.o-rb { z-index: 5; overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--o-seal) 82%, #000), var(--o-seal) 30%, color-mix(in srgb, var(--o-seal) 78%, #fff) 50%, var(--o-seal) 70%, color-mix(in srgb, var(--o-seal) 82%, #000));
  box-shadow: 0 1px 1px rgba(20, 10, 5, .3), 0 3px 6px -2px rgba(20, 10, 5, .25); }
.o-rb-v { top: 0; bottom: 0; left: 50%; width: 13%; margin-left: -6.5%; }
.o-rb-h { left: 0; right: 0; top: 50%; height: 10%; margin-top: -5%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--o-seal) 82%, #000), var(--o-seal) 30%, color-mix(in srgb, var(--o-seal) 78%, #fff) 50%, var(--o-seal) 70%, color-mix(in srgb, var(--o-seal) 82%, #000)); }
.o-sheen { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); animation: e7o-sheen 4800ms var(--e-standard) infinite; }
.o-rb-h .o-sheen { animation-delay: 1600ms; }
@keyframes e7o-sheen { 55%, 100% { transform: translateX(120%); } }
.o-bow { left: 50%; top: 50%; width: 46%; aspect-ratio: 3 / 2; z-index: 6; translate: -50% -54%; filter: drop-shadow(0 2px 2px rgba(20, 10, 5, .3)); }
.o-bow svg { display: block; width: 100%; height: 100%; overflow: visible; }
.o-loop, .o-tail { fill: var(--o-seal); }
.o-knot { fill: color-mix(in srgb, var(--o-seal) 85%, #fff); }
.o-loop-l, .o-loop-r, .o-tail-l, .o-tail-r { transform-box: fill-box; }
.o-loop-l { transform-origin: 100% 60%; } .o-loop-r { transform-origin: 0 60%; }
.is-playing .o-loop-l { animation: e7o-loosen-l var(--m-slow) var(--e-standard) forwards; }
.is-playing .o-loop-r { animation: e7o-loosen-r var(--m-slow) var(--e-standard) 60ms forwards; }
@keyframes e7o-loosen-l { to { transform: rotate(-20deg) scale(.5, .7); opacity: 0; } }
@keyframes e7o-loosen-r { to { transform: rotate(20deg) scale(.5, .7); opacity: 0; } }
.is-playing .o-bow { animation: e7o-out var(--m-base) var(--e-exit) 420ms forwards; }
.o-rb-tag { left: 50%; bottom: 10%; z-index: 7; translate: -50% 0; max-width: 80%; padding: .5rem 1.1rem .55rem; border-radius: 12px;
  background: color-mix(in srgb, var(--o-paper) 92%, #fff); box-shadow: 0 1px 2px rgba(30, 20, 10, .1), 0 8px 18px -12px rgba(30, 20, 10, .45); }
.o-rb-tag .o-guest { padding: 0; font-size: clamp(1.15rem, 5.6vw, 1.6rem); }
.is-playing .o-rb-tag { animation: e7o-out var(--m-base) var(--e-exit) 80ms forwards; }
.is-playing .o-rb-v { animation: e7o-slide-v var(--m-cine) var(--e-exit) 560ms forwards; }
.is-playing .o-rb-h { animation: e7o-slide-h var(--m-cine) var(--e-exit) 680ms forwards; }
@keyframes e7o-slide-v { 70% { opacity: 1; } to { transform: translateY(110%) skewX(-3deg); opacity: 0; } }
@keyframes e7o-slide-h { 70% { opacity: 1; } to { transform: translateX(110%) skewY(2deg); opacity: 0; } }
.is-playing .o-gift-cover { animation: e7o-open-cover var(--m-cine) var(--e-standard) 1500ms forwards; }
@keyframes e7o-open-cover { to { transform: rotateY(-160deg); } }
.is-playing .o-cover-shade { animation: e7o-shade var(--m-cine) var(--e-standard) 1500ms forwards; }
.is-playing .o-gift .o-card-pose { animation: e7o-lift-card var(--m-slow) var(--e-standard) 2200ms forwards; }
.is-playing .o-gift > .o-shadow { animation: e7o-out var(--m-slow) var(--e-exit) 2200ms forwards; }

/* ---------------------------------------------------------------- laser-cut gate: the cover lifts and fades with a slight tilt */
.o-lasercut { perspective: 1400px; }
.o-lace-under { position: absolute; inset: 0; display: grid; place-items: center; }
.o-lace-under .o-lace-card { position: relative; inset: auto; width: min(74vw, 320px); aspect-ratio: 5 / 7; }
.o-lace { position: absolute; inset: 0; transform-origin: 50% 0; }
.o-lace-cut { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the lace in the motif's own colour (never pale on pale), the window light paper */
.o-lasercut { --o-lace: color-mix(in srgb, var(--accent) 52%, var(--bg)); }
.o-lace-paper { fill: var(--o-lace); }
/* the lace's window already carries the names: a template's title above would only show as scraps through its holes */
.o-lasercut .o-coll-head { display: none; }
.o-lace-window {
  position: absolute; left: 50%; top: 50%; width: min(72vw, 310px); aspect-ratio: 4 / 5; translate: -50% -50%;
  display: grid; place-content: center; gap: 1.2rem; text-align: center; border-radius: 48% 48% 12px 12px / 34% 34% 12px 12px;
  background-color: color-mix(in srgb, var(--o-paper) 70%, #fffdf8); background-image: var(--o-grain, none); background-size: var(--o-grain-size, 96px 96px);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--o-paper) 70%, #fffdf8), 0 0 0 7px color-mix(in srgb, var(--accent) 50%, transparent), 0 1px 2px rgba(30, 20, 10, .15), 0 18px 36px -20px rgba(30, 20, 10, .45);
}
.o-lace-names { font: 400 clamp(1.8rem, 8vw, 2.5rem)/1.1 var(--o-title); color: var(--o-ink); }
.is-playing .o-lace { animation: e7o-lace var(--m-cine) var(--e-standard) 200ms forwards; }
@keyframes e7o-lace { to { transform: translateY(-14%) rotateX(10deg); opacity: 0; } }
.is-playing .o-lace-under .o-card { animation: e7o-lift-card var(--m-slow) var(--e-standard) 1000ms forwards; }

/* ---------------------------------------------------------------- curtains */
.o-curtain-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.o-curtain-card { position: relative; inset: auto; width: min(74vw, 320px); aspect-ratio: 5 / 7; }
.o-drape { position: absolute; top: 0; bottom: 0; width: 51%; overflow: hidden; box-shadow: 0 0 24px rgba(20, 10, 5, .3); }
.o-drape-l { left: 0; transform-origin: 0 50%; }
.o-drape-r { right: 0; transform-origin: 100% 50%; }
.o-fabric { position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--o-seal) 86%, #000) 0, var(--o-seal) 14px,
    color-mix(in srgb, var(--o-seal) 78%, #fff) 26px, var(--o-seal) 38px, color-mix(in srgb, var(--o-seal) 86%, #000) 52px); }
.o-valance { position: absolute; left: 0; right: 0; top: 0; height: 8vh; z-index: 2;
  background: linear-gradient(180deg, color-mix(in srgb, var(--o-seal) 70%, #000), var(--o-seal));
  box-shadow: 0 3px 8px rgba(20, 10, 5, .3); }
.o-curtain-address { position: absolute; left: 0; right: 0; top: 40%; z-index: 3; }
.o-curtain-address .o-address { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.o-curtains .o-hint { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.is-playing .o-drape-l { animation: e7o-drape-l var(--m-cine) var(--e-standard) 200ms forwards; }
.is-playing .o-drape-r { animation: e7o-drape-r var(--m-cine) var(--e-standard) 260ms forwards; }
@keyframes e7o-drape-l { to { transform: translateX(-90%) scaleX(.6); } }
@keyframes e7o-drape-r { to { transform: translateX(90%) scaleX(.6); } }
.is-playing .o-valance { animation: e7o-valance var(--m-slow) var(--e-exit) 1200ms forwards; }
@keyframes e7o-valance { to { transform: translateY(-110%); } }
.is-playing .o-curtain-stage .o-card { animation: e7o-lift-card var(--m-slow) var(--e-standard) 1200ms forwards; }

/* ---------------------------------------------------------------- book */
.o-stage > .o-book { position: relative; width: 100%; aspect-ratio: 3 / 4; perspective: 1300px; }  /* not the overlay: it is .o-book too */
.o-pages { left: 2%; right: -2%; top: 1.5%; bottom: 1.5%; z-index: 1; border-radius: 6px var(--o-radius) var(--o-radius) 6px;
  background: repeating-linear-gradient(90deg, #f6efe0 0 1px, #e9e0cc 1px 2px); box-shadow: 0 14px 28px -18px rgba(30, 20, 10, .5); }
.o-book-page { left: 1%; right: 0; top: 1%; bottom: 1%; z-index: 2; }
.o-book-page .o-card { border-radius: 6px var(--o-radius) var(--o-radius) 6px; }
.o-book-cover { inset: 0; z-index: 3; transform-origin: 0 50%; transform-style: preserve-3d; }
.o-book-cover .o-cover-front { border-radius: 6px var(--o-radius) var(--o-radius) 6px; display: grid; align-content: center; justify-items: center; gap: 1.6rem;
  box-shadow: inset 0 0 0 9px rgba(0, 0, 0, .08), inset 0 0 0 10px color-mix(in srgb, var(--accent) 65%, transparent), 0 1px 2px rgba(0, 0, 0, .2); }
.o-book-cover .o-address { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.o-foil { font: 400 clamp(1.8rem, 8vw, 2.4rem)/1.1 var(--o-title); padding: 0 1.2rem; text-align: center; color: color-mix(in srgb, var(--accent) 60%, #fff3d6); }
.is-playing .o-book { animation: e7o-book-shift var(--m-cine) var(--e-standard) 300ms forwards; }
@keyframes e7o-book-shift { to { transform: translateX(22%); } }
.is-playing .o-book-cover { animation: e7o-open-cover var(--m-cine) var(--e-standard) 300ms forwards; }
.is-playing .o-book-cover .o-cover-shade { animation: e7o-shade var(--m-cine) var(--e-standard) 300ms forwards; }
.is-playing .o-book .o-card-pose { animation: e7o-lift-card var(--m-slow) var(--e-standard) 1600ms forwards; }
.is-playing .o-book > .o-shadow { animation: e7o-out var(--m-slow) var(--e-exit) 1600ms forwards; }

/* ================================================================ batch 2: seven more openings
   Same rules as above: flat stacks with explicit layer order, a clipped slot
   for anything that slides out of something, instant layer swaps (0s),
   transform and opacity only, the motion tokens for every duration and curve. */
.o-pocketfold { --o-length: 3000ms; } .o-gift_box { --o-length: 3200ms; } .o-ring_box { --o-length: 3000ms; }
.o-spotlight { --o-length: 3000ms; } .o-polaroid { --o-length: 3400ms; } .o-comic_cover { --o-length: 2900ms; }
.o-castle_gates { --o-length: 2800ms; }

/* ---------------------------------------------------------------- pocketfold
   Back to front: back (1), card in its slot (2: only its top is free), pocket (3),
   belly band (4). The band slips off, the card rises, then comes forward (8). */
.o-pf { position: relative; width: 100%; aspect-ratio: 5 / 7; }
.o-pf > .o-shadow { z-index: 0; }
.o-pf-back { inset: 0; z-index: 1; border-radius: var(--o-radius); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 1px rgba(30, 20, 10, .1), 0 14px 30px -18px rgba(30, 20, 10, .45); }
.o-pf-slot { left: 7%; right: 7%; top: 6%; bottom: 4%; z-index: 2; clip-path: inset(-400% 0 0 0); }
.o-pf-front { left: 0; right: 0; bottom: 0; height: 62%; z-index: 3; display: grid; place-items: end center; padding-bottom: 12%;
  clip-path: polygon(0 10%, 50% 0, 100% 10%, 100% 100%, 0 100%); border-radius: 0 0 var(--o-radius) var(--o-radius);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .06); }
.o-pf-edge { position: absolute; left: 0; right: 0; top: 0; height: 12%; background: linear-gradient(to bottom, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); pointer-events: none; }
.o-pf-band { left: -2%; right: -2%; top: 46%; height: 13%; z-index: 4; display: grid; place-items: center; }
.o-pf-band-face { position: absolute; inset: 0; display: block;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #000), var(--accent) 25%, color-mix(in srgb, var(--accent) 80%, #fff) 50%, var(--accent) 75%, color-mix(in srgb, var(--accent) 70%, #000));
  box-shadow: 0 1px 1px rgba(20, 10, 5, .3), 0 4px 8px -3px rgba(20, 10, 5, .3); }
.o-pf-band-seal { position: relative; }
.is-playing .o-pf-band { animation: e7o-band-off var(--m-cine) var(--e-exit) 200ms forwards; }
@keyframes e7o-band-off { 70% { opacity: 1; } to { transform: translateX(118%); opacity: 0; } }
.is-playing .o-pf-slot .o-card-move { animation: e7o-pf-rise var(--m-cine) var(--e-entrance) 1000ms forwards; }
@keyframes e7o-pf-rise { to { transform: translateY(-72%); } }
.is-playing .o-pf-slot { animation: e7o-release 0s linear 2200ms forwards; }
.is-playing .o-pf .o-card-pose { animation: e7o-pf-forward var(--m-slow) var(--e-standard) 2200ms forwards; }
@keyframes e7o-pf-forward { to { transform: translateY(46%) scale(1.06); } }
.is-playing .o-pf-back, .is-playing .o-pf-front, .is-playing .o-pf > .o-shadow { animation: e7o-away var(--m-slow) var(--e-exit) 2200ms forwards; }

/* ---------------------------------------------------------------- gift box
   Back to front: inside (1), card in its slot (2), box front (3), its ribbon (4),
   lid with its ribbon and bow (5). The bow unties, the lid lifts away, the card rises. */
.o-gb { position: relative; width: 100%; aspect-ratio: 5 / 6; }
.o-gb > .o-shadow { z-index: 0; }
.o-gb-paper { background-color: color-mix(in srgb, var(--accent) 22%, var(--o-paper));
  background-image: var(--o-grain, none), linear-gradient(160deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 45%, rgba(60, 40, 20, .1));
  background-size: var(--o-grain-size, 96px 96px), 100% 100%; }
.o-gb-inside { left: 6%; right: 6%; top: 40%; height: 12%; z-index: 1; background: color-mix(in srgb, var(--accent) 35%, #2a1d12); border-radius: 2px 2px 0 0; }
.o-gb-slot { left: 10%; right: 10%; top: 6%; bottom: 6%; z-index: 2; clip-path: inset(-400% 0 0 0); }
.o-gb-slot .o-card-move { top: 46%; bottom: -46%; }
.o-gb-front { left: 4%; right: 4%; top: 46%; bottom: 0; z-index: 3; border-radius: 0 0 10px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 1px rgba(30, 20, 10, .12), 0 16px 30px -18px rgba(30, 20, 10, .5); }
.o-gb-band { left: 44%; width: 12%; top: 46%; bottom: 0; z-index: 4; overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--o-seal) 82%, #000), var(--o-seal) 30%, color-mix(in srgb, var(--o-seal) 78%, #fff) 50%, var(--o-seal) 70%, color-mix(in srgb, var(--o-seal) 82%, #000)); }
.o-gb-tag { left: 50%; bottom: 9%; z-index: 5; width: 64%; translate: -50% 0; padding: .55rem .4rem .45rem; rotate: -2deg; border-radius: 8px;
  background: #fffcf4; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 2px 5px -1px rgba(30, 20, 10, .3); }
.is-playing .o-gb-tag { animation: e7o-out var(--m-base) var(--e-exit) 120ms forwards; }
.o-gb-lid { left: 0; right: 0; top: 34%; height: 15%; z-index: 6; }
.o-gb-lid-face { position: absolute; inset: 0; display: block; border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 6px -2px rgba(30, 20, 10, .35); }
.o-gb-lid-band { position: absolute; left: 44%; width: 12%; top: 0; bottom: 0; display: block;
  background: linear-gradient(90deg, color-mix(in srgb, var(--o-seal) 82%, #000), var(--o-seal) 30%, color-mix(in srgb, var(--o-seal) 78%, #fff) 50%, var(--o-seal) 70%, color-mix(in srgb, var(--o-seal) 82%, #000)); }
.o-gb-bow { position: absolute; left: 50%; top: 0; width: 52%; aspect-ratio: 3 / 2; translate: -50% -62%; z-index: 1; }
.is-playing .o-gb-bow { animation: e7o-out var(--m-base) var(--e-exit) 420ms forwards; }
.is-playing .o-gb-band { animation: e7o-gb-band var(--m-slow) var(--e-exit) 500ms forwards; }
@keyframes e7o-gb-band { to { transform: translateY(12%); opacity: 0; } }
.is-playing .o-gb-lid { animation: e7o-lid-off var(--m-slow) var(--e-exit) 700ms forwards; }
@keyframes e7o-lid-off { 60% { opacity: 1; } to { transform: translate(-8%, -150%) rotate(-12deg); opacity: 0; } }
.is-playing .o-gb-slot .o-card-move { animation: e7o-gb-rise var(--m-cine) var(--e-entrance) 1400ms forwards; }
@keyframes e7o-gb-rise { to { transform: translateY(-96%); } }
.is-playing .o-gb-slot { animation: e7o-release 0s linear 2600ms forwards; }
.is-playing .o-gb .o-card-pose { animation: e7o-lift-card var(--m-slow) var(--e-standard) 2600ms forwards; }
.is-playing .o-gb-inside, .is-playing .o-gb-front, .is-playing .o-gb > .o-shadow { animation: e7o-away var(--m-slow) var(--e-exit) 2600ms forwards; }

/* ---------------------------------------------------------------- ring box
   Back to front: velvet base (1), satin cushion with the names (2), lid (3). The lid
   lifts back on its hinge (its satin lining shows past edge-on), the names glow. */
.o-stage-ring { width: min(80vw, 340px); }
.o-rx { position: relative; width: 100%; aspect-ratio: 1 / 1; perspective: 900px; }
.o-rx > .o-shadow { z-index: 0; }
.o-velvet { background-color: color-mix(in srgb, var(--o-seal) 80%, #120b0b);
  background-image: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .18), transparent 55%), var(--o-grain, none);
  background-size: 100% 100%, var(--o-grain-size, 96px 96px); }
.o-rx-base { left: 4%; right: 4%; top: 30%; bottom: 4%; z-index: 1; border-radius: 10px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .3), 0 18px 34px -20px rgba(0, 0, 0, .6); }
.o-rx-cushion { left: 11%; right: 11%; top: 34%; bottom: 11%; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .3rem; text-align: center; padding: 6%; border-radius: 8px; color: var(--o-ink);
  background: radial-gradient(120% 100% at 50% 30%, #fffaf0, color-mix(in srgb, var(--accent) 18%, #f3e9d6));
  box-shadow: inset 0 3px 8px rgba(60, 40, 20, .25), inset 0 -2px 0 rgba(255, 255, 255, .6); }
.o-rx-glow { position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 45%, rgba(255, 246, 216, .9), transparent 70%); }
.o-rx-cushion > :not(.o-rx-glow) { position: relative; }
.o-rx-letters { font: 500 1.9rem/1 var(--o-title); color: var(--accent-text); letter-spacing: .06em; }
.o-rx-mono { display: block; width: 3.4rem; height: 3.4rem; color: var(--accent-text); }
.o-rx-mono svg { width: 100%; height: 100%; }
.o-rx-names { font: 400 clamp(1.3rem, 6vw, 1.9rem)/1.15 var(--o-title); }
.o-rx-date { font: 500 .62rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.o-rx-lid { left: 4%; right: 4%; top: 30%; height: 62%; z-index: 3; transform-origin: 50% 0; transform-style: preserve-3d; }
.o-rx-lid-face { position: absolute; inset: 0; display: block; border-radius: 10px; backface-visibility: hidden; }
.o-rx-lid-front { display: grid; place-items: center; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), 0 2px 4px rgba(0, 0, 0, .3); }
.o-rx-lid-front .o-address { color: color-mix(in srgb, var(--accent) 55%, #fff6e0); }
.o-rx-lid-back { transform: rotateX(180deg); background: radial-gradient(120% 100% at 50% 70%, #fffaf0, #eadfca); box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--o-seal) 80%, #120b0b); }
.is-playing .o-rx-lid { animation: e7o-rx-lid var(--m-cine) var(--e-standard) 300ms forwards; }
@keyframes e7o-rx-lid { to { transform: rotateX(-118deg); } }
.is-playing .o-rx-glow { animation: e7o-rx-glow var(--m-slow) var(--e-standard) 1100ms forwards; }
@keyframes e7o-rx-glow { to { opacity: 1; } }
.is-playing .o-rx-cushion { animation: e7o-rx-names var(--m-slow) var(--e-standard) 1300ms forwards; }
@keyframes e7o-rx-names { to { transform: scale(1.04); } }
.is-playing .o-rx > .o-shadow { animation: e7o-out var(--m-slow) var(--e-exit) 2200ms forwards; }

/* ---------------------------------------------------------------- stage spotlight
   A dark stage; the cone swings in from the side, its pool settles on the names,
   which come up in the light. For a company: its logo above the title. */
.o-spotlight { background: radial-gradient(120% 80% at 50% 100%, color-mix(in srgb, var(--accent) 14%, #0b0a0d), #050507 70%); color: #f6efe0; }
.o-sl-floor { position: absolute; left: 10%; right: 10%; bottom: 14%; height: 12%; border-radius: 50%; opacity: .35;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, #fff5dc), transparent); }
.o-sl-cone { position: absolute; left: 50%; top: -8%; width: 70vmin; height: 92vh; margin-left: -35vmin; opacity: .0; transform-origin: 50% 0;
  transform: rotate(-38deg); pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 244, 214, .26), rgba(255, 244, 214, .04) 85%, transparent);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); }
.o-sl-beam { position: absolute; left: 50%; top: 50%; width: 82vmin; height: 82vmin; margin: -41vmin 0 0 -41vmin; border-radius: 50%; opacity: 0;
  pointer-events: none; transform: translateX(-60vw) scale(.7);
  background: radial-gradient(closest-side, rgba(255, 244, 214, .34), rgba(255, 244, 214, .12) 55%, transparent); }
.o-sl-names { position: relative; z-index: 2; display: grid; gap: .5rem; justify-items: center; text-align: center; padding: 0 8vw; opacity: 0; }
.o-sl-logo { max-width: 46vw; max-height: 14vh; object-fit: contain; margin-bottom: .6rem; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5)); }
.o-sl-eyebrow { font: 500 .62rem var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 55%, #fff); }
.o-sl-title { font: 500 clamp(2rem, 9vw, 3rem)/1.08 var(--o-title); color: #fff8e8; text-shadow: 0 2px 18px rgba(255, 230, 170, .35); }
.o-sl-date { font: 500 .66rem var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: #e8dcc4; }
.o-sl-address { position: absolute; left: 0; right: 0; bottom: 24vh; z-index: 2; }
.o-sl-address .o-address { color: #f1e6d0; }
.o-spotlight .o-hint { color: color-mix(in srgb, var(--accent) 55%, #fff); }
.is-playing .o-sl-cone { animation: e7o-cone var(--m-cine) var(--e-standard) 200ms forwards; }
@keyframes e7o-cone { from { opacity: 0; transform: rotate(-38deg); } to { opacity: 1; transform: rotate(0deg); } }
.is-playing .o-sl-beam { animation: e7o-beam var(--m-cine) var(--e-standard) 200ms forwards; }
@keyframes e7o-beam { from { opacity: 0; transform: translateX(-60vw) scale(.7); } to { opacity: 1; transform: none; } }
.is-playing .o-sl-names { animation: e7o-sl-names var(--m-slow) var(--e-entrance) 1150ms forwards; }
@keyframes e7o-sl-names { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- polaroid develop
   Back to front: frame (1), the invitation printed in the photo (2), the undeveloped
   film over it (3) and its warm cast (4). The film clears in two stages, the cast last. */
.o-stage-pl { width: min(74vw, 310px); }
.o-pl { position: relative; width: 100%; aspect-ratio: 88 / 107; rotate: -2deg; }
.o-pl > .o-shadow { z-index: 0; }
.o-pl-frame { inset: 0; z-index: 1; border-radius: 8px; background: #fbfaf6;
  background-image: var(--o-grain, none), linear-gradient(160deg, #fff, #f1eee6); background-size: var(--o-grain-size, 96px 96px), 100% 100%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 16px 30px -18px rgba(30, 20, 10, .5); }
.o-pl-photo, .o-pl-film, .o-pl-cast { left: 6%; right: 6%; top: 5.5%; height: 74%; }
.o-pl-photo { z-index: 2; overflow: hidden; background: radial-gradient(110% 90% at 40% 30%, #fffaf0, color-mix(in srgb, var(--accent) 22%, #efe4cf)); }
.o-pl-print { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  padding: 8%; text-align: center; color: var(--o-ink); }
.o-pl-film { z-index: 3; background: radial-gradient(90% 80% at 50% 40%, #3a3b33, #23241f); }
.o-pl-cast { z-index: 4; opacity: 0; background: linear-gradient(160deg, rgba(120, 90, 40, .45), rgba(80, 110, 120, .25)); mix-blend-mode: multiply; }
.o-pl-caption { left: 6%; right: 6%; bottom: 3%; height: 15%; z-index: 5; display: grid; place-items: center;
  font: 400 clamp(1.1rem, 5vw, 1.5rem)/1.1 var(--o-title); color: #3a3b5c; }
.is-playing .o-pl { animation: e7o-pl-settle var(--m-slow) var(--e-standard) forwards; }
@keyframes e7o-pl-settle { to { transform: rotate(2deg) scale(1.02); } }
.is-playing .o-pl-film { animation: e7o-develop var(--m-cine) var(--e-standard) 300ms forwards, e7o-out var(--m-cine) var(--e-standard) 1500ms forwards; }
@keyframes e7o-develop { to { opacity: .45; } }
.is-playing .o-pl-cast { animation: e7o-cast var(--m-slow) var(--e-standard) 1100ms forwards, e7o-out var(--m-cine) var(--e-standard) 2000ms forwards; }
@keyframes e7o-cast { to { opacity: 1; } }
.is-playing .o-pl > .o-shadow { animation: e7o-out var(--m-slow) var(--e-exit) 2600ms forwards; }

/* ---------------------------------------------------------------- comic cover (kids: superhero; original art)
   The book's structure (cover in front of the page, hinged left); a comic cover face. */
.o-cm-cover { display: block; overflow: hidden; border-radius: 6px var(--o-radius) var(--o-radius) 6px; color: #111;
  background: color-mix(in srgb, var(--accent) 88%, #fff);
  box-shadow: inset 0 0 0 5px #111, inset 0 0 0 9px #fff, inset 0 0 0 11px #111, 0 1px 2px rgba(0, 0, 0, .25); }
.o-cm-dots { position: absolute; inset: 0; opacity: .16;  /* halftone: comic, but fine and light */
  background-image: radial-gradient(circle, #111 1px, transparent 1.3px); background-size: 7px 7px; }
.o-cover-back .o-cm-dots { opacity: .07; }
.o-comic .o-cover-back { background: color-mix(in srgb, var(--accent) 30%, #fffaf0); }
.o-cm-banner { position: absolute; left: 8%; right: 8%; top: 7%; padding: .35rem .5rem; text-align: center; transform: rotate(-3deg);
  background: #fff7d6; border: 3px solid #111; box-shadow: 4px 4px 0 #111;
  font: 900 clamp(.95rem, 4.6vw, 1.25rem)/1.05 var(--o-title); text-transform: uppercase; letter-spacing: .02em; }
.o-cm-issue { position: absolute; right: 9%; top: 25%; padding: .1rem .4rem; background: #111; color: #fff; font: 800 .7rem var(--font-body); letter-spacing: .08em; }
.o-cm-burst { position: absolute; left: 50%; top: 52%; width: 92%; translate: -50% -50%; }
.o-cm-burst path { fill: var(--seal, #ffd23f); stroke: #111; stroke-width: 4; stroke-linejoin: round; }
.o-cm-shield { position: absolute; left: 50%; top: 52%; width: 42%; translate: -50% -50%; }
.o-cm-shield-edge { fill: #111; }
.o-cm-shield-face { fill: color-mix(in srgb, var(--accent) 70%, #fff); }
.o-cm-initial { font: 900 46px var(--o-title); fill: #111; }
.o-cm-name { position: absolute; left: 6%; right: 6%; bottom: 17%; text-align: center; color: #fff;
  font: 900 clamp(1.6rem, 8vw, 2.3rem)/1 var(--o-title); text-transform: uppercase;
  text-shadow: 3px 3px 0 #111, -1px -1px 0 #111, 1px -1px 0 #111, -1px 1px 0 #111; }
.o-comic .o-address { position: absolute; left: 0; right: 0; bottom: 5%; color: #111; }
.o-comic .o-address .o-guest { font: 800 1rem var(--font-body); }

/* ---------------------------------------------------------------- castle gates (kids: princess; original art)
   The gatefold's structure (two doors on hinges in front of the card), drawn as
   vector art that sits exactly inside the card: arched doors with panel mouldings
   and scrolled hinges under a castle with domed towers and a crowned crest. The
   wall lifts away once the doors are open; the doors fade as they finish turning. */
.o-castle { --cs-a: color-mix(in srgb, var(--accent) 22%, #fffaf8); --cs-b: color-mix(in srgb, var(--accent) 42%, #fbeff2);
  --cs-line: color-mix(in srgb, var(--accent) 55%, #5a3646); --cs-gold: var(--kid-2, #d4af5a); }
.o-castle .o-door { top: 16%; }
.o-cs-gate { overflow: visible; }
.o-door-l .o-door-front.o-cs-gate, .o-door-r .o-door-front.o-cs-gate { box-shadow: none; border-radius: 0; }
.o-cs-door-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 6px 10px rgba(60, 30, 40, .16)); }
.o-cs-stop-a { stop-color: var(--cs-a); } .o-cs-stop-b { stop-color: var(--cs-b); }
.o-cs-door-body { stroke: var(--cs-line); stroke-opacity: .35; stroke-width: .8; vector-effect: non-scaling-stroke; }
.o-cs-panel { fill: rgba(255, 255, 255, .16); stroke: rgba(255, 255, 255, .75); stroke-width: 1; vector-effect: non-scaling-stroke; }
.o-cs-panel-in { fill: none; stroke: var(--cs-line); stroke-opacity: .28; }
.o-cs-hinge { fill: none; stroke: var(--cs-gold); stroke-width: 1.1; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.o-cs-ring { fill: none; stroke: var(--cs-gold); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.o-cs-knob { fill: var(--cs-gold); }
.o-cs-gate-back { border-radius: var(--o-radius); background: linear-gradient(180deg, var(--cs-a), var(--cs-b)); }
.o-door-l .o-cs-gate-back { border-radius: 0 0 0 var(--o-radius); }
.o-door-r .o-cs-gate-back { border-radius: 0 0 var(--o-radius) 0; }
.o-cs-wall { left: 0; right: 0; top: 0; height: 26%; z-index: 4; transform-origin: 50% 0; }
.o-cs-wall > .o-cs-wall-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 4px 8px rgba(60, 30, 40, .14)); }
.o-cs-stone-a { stop-color: color-mix(in srgb, var(--accent) 12%, #fffdfb); }
.o-cs-stone-b { stop-color: color-mix(in srgb, var(--accent) 30%, #fdf4f6); }
.o-cs-wall-path { stroke: var(--cs-line); stroke-opacity: .4; stroke-width: .9; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.o-cs-window { fill: color-mix(in srgb, var(--accent) 45%, #fff); opacity: .7; }
.o-cs-trim { fill: none; stroke: var(--cs-gold); stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.o-cs-crest { position: absolute; left: 50%; top: 1%; width: 30%; height: auto; translate: -50% 0; overflow: visible;
  filter: drop-shadow(0 2px 4px rgba(60, 30, 40, .22)); }
.o-cs-gold-a { stop-color: color-mix(in srgb, var(--cs-gold) 45%, #fff8e6); }
.o-cs-gold-b { stop-color: var(--cs-gold); }
.o-cs-gold-c { stop-color: color-mix(in srgb, var(--cs-gold) 80%, #6b4a20); }
.o-cs-crown { fill: url(#o-cs-gold); stroke: color-mix(in srgb, var(--cs-gold) 70%, #5a3a10); stroke-width: .8; stroke-linejoin: round; }
.o-cs-crown-lit { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: .9; stroke-linecap: round; }
.o-cs-pearl { fill: #fffaf2; stroke: color-mix(in srgb, var(--cs-gold) 60%, #fff); stroke-width: .6; }
.o-cs-cartouche { fill: url(#o-cs-gold); }
.o-cs-cartouche-in { fill: #fffdf9; }
.o-cs-initial { font: 400 26px var(--o-title); fill: color-mix(in srgb, var(--accent) 75%, #3a2030); }
.o-cs-address { bottom: 8%; display: grid; justify-items: center; }
.o-cs-address .o-address { padding: .5rem 1.1rem .55rem; border-radius: 999px; background: rgba(255, 252, 250, .86);
  box-shadow: 0 1px 2px rgba(60, 30, 40, .08), 0 6px 16px -10px rgba(60, 30, 40, .35); max-width: 86%; }
.o-cs-address .o-guest { padding: 0; font-size: clamp(1.15rem, 5.6vw, 1.6rem); }
.is-playing .o-cs-wall { animation: e7o-wall var(--m-slow) var(--e-exit) 1600ms forwards; }
@keyframes e7o-wall { to { transform: scale(.97); opacity: 0; } }  /* fades in place: never leaves the card */
.is-playing .o-castle .o-door { animation-name: e7o-door-l, e7o-out; animation-duration: var(--m-cine), var(--m-slow);
  animation-timing-function: var(--e-standard), var(--e-exit); animation-delay: 500ms, 1500ms; animation-fill-mode: forwards; }
.is-playing .o-castle .o-door-r { animation-name: e7o-door-r, e7o-out; animation-delay: 540ms, 1540ms; }

/* ---------------------------------------------------------------- confetti burst (2026-10-21) */
.o-confetti { --o-length: 2400ms; }
.o-cf { display: grid; place-items: center; }
.o-cf-card { position: relative; z-index: 2; width: min(70vw, 300px); aspect-ratio: 5 / 7; display: block; }
.o-cf-card .o-card { position: absolute; inset: 0; }
.o-cf-seal { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.o-cf-address { position: absolute; left: 0; right: 0; bottom: 6%; z-index: 3; }
.o-cf-bits { position: absolute; left: 50%; top: 50%; z-index: 4; width: 0; height: 0; }
.o-bit { position: absolute; left: -5px; top: -3px; width: 10px; height: 6px; border-radius: 2px; opacity: 0;
  background: var(--accent); transform: translate(0, 0) scale(.3); will-change: transform, opacity; }
.o-bit-1 { background: var(--o-seal); width: 7px; height: 7px; border-radius: 50%; }
.o-bit-2 { background: color-mix(in srgb, var(--accent) 55%, #fff); height: 4px; width: 12px; }
.o-bit-3 { background: var(--ink); opacity: 0; width: 6px; height: 9px; }
.is-playing .o-cf-seal { animation: e7o-cf-pop calc(var(--m-base) + 100ms) var(--e-exit) 120ms forwards; }
@keyframes e7o-cf-pop { 40% { transform: translate(-50%, -50%) scale(1.16); } to { transform: translate(-50%, -50%) scale(.2); opacity: 0; } }
.is-playing .o-bit { animation: e7o-cf-bit calc(var(--m-cine) + 500ms) var(--e-entrance) calc(360ms + var(--d)) forwards; }
@keyframes e7o-cf-bit {
  0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0deg); }
  12% { opacity: 1; }
  55% { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(1) rotate(calc(var(--r) * .6)); }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 30vmin)) scale(.9) rotate(var(--r)); }
}
.is-playing .o-cf-card { animation: e7o-cf-lift var(--m-slow) var(--e-standard) 900ms forwards; }
@keyframes e7o-cf-lift { to { transform: translateY(-6vh) scale(1.04); opacity: 0; } }
.is-playing .o-cf-address { animation: e7o-out var(--m-fast) var(--e-exit) 300ms forwards; }
