:root {
  --ivory: #f7f3ec;
  --paper: #fffdf9;
  --ink: #1f2a2f;
  --soft: #5d676b;
  --line: #d9d0c3;
  --sand: #b89a72;
  --danger: #9b2c22;
  --serif: 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: max(20px, env(safe-area-inset-left));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--ivory); color: var(--ink); font: 300 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.caps { font: 500 10.5px/1.2 var(--sans); letter-spacing: .32em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Album hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; max-height: 1000px; color: #fff; overflow: hidden; background: #2a2f31; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: 50% 30%; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 7s ease-out; }
.hero-bg.on { opacity: 1; transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,20,24,.4) 0%, rgba(15,20,24,0) 26%, rgba(15,20,24,.12) 52%, rgba(15,20,24,.8) 100%); }
.hero-top { position: absolute; z-index: 2; top: max(20px, env(safe-area-inset-top)); left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gutter); }
.mono { display: inline-flex; flex-direction: column; align-items: center; font: 400 17px/1 var(--serif); letter-spacing: .08em; }
.mono i { display: block; width: 18px; height: 1px; background: currentColor; opacity: .7; margin: 4px 0; }
.hero-text { position: absolute; z-index: 2; left: 0; right: 0; bottom: max(52px, calc(env(safe-area-inset-bottom) + 40px)); text-align: center; padding: 0 var(--gutter); }
.hero-text .caps { opacity: .88; }
.names { font: 300 clamp(56px, 17vw, 96px)/.9 var(--serif); margin: 18px 0 0; letter-spacing: -.01em; }
.amp { display: block; font: italic 300 .45em/1.25 var(--serif); color: #efe2cf; }
.rule { width: 44px; height: 1px; background: currentColor; opacity: .6; margin: 22px auto 16px; }
.date { font: italic 300 clamp(19px, 5.4vw, 24px)/1.3 var(--serif); }
.place { margin-top: 8px; opacity: .8; }
.livelink { display: block; margin: 26px auto 0; width: fit-content; padding: 10px 4px; color: var(--sand); text-decoration: none; }
/* Wide screens: show the whole hero photo on the right over a blurred copy, names on the left. */
@media (min-aspect-ratio: 1/1) and (min-width: 760px) {
  .hero::before { content: ''; position: absolute; inset: -60px; background: var(--hero-img, none) center / cover no-repeat; filter: blur(34px) brightness(.5) saturate(1.1); }
  .hero-bg { background-size: auto 100%; background-position: 82% center; background-repeat: no-repeat; transform: none; }
  .hero-bg.on { transform: none; }
  .hero::after { background: linear-gradient(90deg, rgba(15,20,24,.55) 0%, rgba(15,20,24,.25) 45%, rgba(15,20,24,0) 60%), linear-gradient(180deg, rgba(15,20,24,.35) 0%, rgba(15,20,24,0) 25%); }
  .hero-text { top: 50%; bottom: auto; right: auto; left: 0; width: 50%; transform: translateY(-50%); }
  .names { font-size: clamp(64px, 7vw, 112px); }
}
.top-add { min-height: 40px; padding: 0 16px; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.6); color: #fff; font: 500 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.hero-cta { display: block; width: min(100%, 320px); min-height: 56px; margin: 26px auto 0; background: var(--ivory); color: var(--ink); border: 0; font: 500 11.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: ctaGlow 3.2s ease-in-out 1.5s infinite; }
.hero-cta:active { transform: scale(.985); }
.hero-sub { margin-top: 12px; font: italic 300 16px/1.3 var(--serif); opacity: .85; }
@keyframes ctaGlow { 0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 0 0 0 rgba(247,243,236,.55); } 50% { box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 0 0 10px rgba(247,243,236,0); } }
.fab { position: fixed; z-index: 15; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translate(-50%, 160%); min-height: 54px; padding: 0 26px; background: var(--ink); color: var(--ivory); border: 0; font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 12px 34px rgba(0,0,0,.3); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.fab span { font-size: 18px; letter-spacing: 0; margin-right: 6px; vertical-align: -2px; }
.fab.show { transform: translate(-50%, 0); }
.cue { position: absolute; z-index: 2; bottom: 14px; left: 50%; width: 1px; height: 24px; background: rgba(255,255,255,.55); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .3; } 50% { transform: translateY(6px); opacity: .9; } }

/* ---------- Album intro ---------- */
.intro { padding: 64px var(--gutter) 36px; text-align: center; }
.intro .caps { color: var(--sand); }
.intro h2 { font: 300 clamp(36px, 10.5vw, 52px)/1.04 var(--serif); margin: 18px 0 14px; }
.intro h2 em { font-style: italic; }
.intro p { color: var(--soft); max-width: 30ch; margin: 0 auto 30px; font-size: 15px; }
.cta { display: block; width: 100%; max-width: 360px; min-height: 56px; margin: 0 auto; background: var(--ink); color: var(--ivory); border: 0; font: 500 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; transition: transform .15s ease, opacity .15s; }
.cta:active { transform: scale(.985); opacity: .9; }
.textlink { display: inline-block; margin-top: 18px; padding: 10px 4px 4px; background: none; border: 0; border-bottom: 1px solid var(--line); font: italic 400 19px/1 var(--serif); color: var(--ink); }

/* ---------- Upload progress ---------- */
.progress { list-style: none; margin: 0 var(--gutter); padding: 0; }
.progress li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; }
.progress li:last-child { border-bottom: 1px solid var(--line); }
.progress li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.progress li span:nth-child(2) { color: var(--soft); text-align: right; }
.progress progress { grid-column: 1 / -1; width: 100%; height: 1px; margin-top: 8px; border: 0; background: var(--line); -webkit-appearance: none; appearance: none; }
.progress progress::-webkit-progress-bar { background: var(--line); }
.progress progress::-webkit-progress-value { background: var(--ink); transition: width .2s; }
.progress progress::-moz-progress-bar { background: var(--ink); }
.progress li.failed span:nth-child(2) { color: var(--danger); }
.progress .retry { margin-left: 8px; padding: 6px 10px; background: none; border: 1px solid var(--ink); font: 500 9.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }

/* ---------- Gallery ---------- */
.ghead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 48px var(--gutter) 18px; }
.ghead h3 { font: 300 30px/1 var(--serif); margin: 0; }
.ghead .caps { color: var(--soft); white-space: nowrap; }
.gallery { columns: 2; column-gap: 10px; padding: 0 12px 40px; }
@media (min-width: 720px) { .gallery { columns: 3; column-gap: 14px; padding: 0 24px 60px; } }
@media (min-width: 1100px) { .gallery { columns: 4; max-width: 1280px; margin: 0 auto; } }
.tile { break-inside: avoid; margin: 0 0 18px; position: relative; }
.tile .media { position: relative; background: #e9e3d9; }
.tile .media img { width: 100%; display: block; }
.tile .placeholder { aspect-ratio: 4 / 5; display: grid; place-items: center; color: var(--soft); font: italic 400 18px/1 var(--serif); }
.tile .vid::after { content: ''; position: absolute; right: 10px; bottom: 10px; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.tile .caption { margin: 8px 0 0; font: italic 400 16px/1.3 var(--serif); }
.tile .by { margin-top: 8px; font: 500 9.5px/1.2 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--soft); }
.tile[role='button'] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tile[role='button']:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.tile-text { background: var(--paper); border: 1px solid var(--line); padding: 26px 18px 20px; text-align: center; }
.tile-text q { display: block; font: italic 300 21px/1.25 var(--serif); quotes: none; overflow-wrap: anywhere; }
.tile-text .by { margin-top: 16px; }
.empty { text-align: center; padding: 20px var(--gutter) 60px; color: var(--soft); font: italic 400 20px/1.4 var(--serif); }
.foot { text-align: center; padding: 20px 0 calc(100px + env(safe-area-inset-bottom)); color: var(--soft); }
.foot .mono { color: var(--ink); font-size: 20px; margin-bottom: 14px; }

/* ---------- Viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 20; background: rgba(12,15,17,.97); color: #fff; display: grid; grid-template-rows: auto 1fr auto; touch-action: pan-y; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; padding: max(12px, env(safe-area-inset-top)) var(--gutter) 8px; }
.viewer-bar button, .viewer-bar a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: #fff; text-decoration: none; }
.viewer-close { font-size: 30px; font-weight: 300; }
.viewer-save { font: 500 10px/1 var(--sans) !important; letter-spacing: .28em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.5) !important; padding: 0 16px; }
.viewer-stage { display: grid; place-items: center; min-height: 0; padding: 0 8px; }
.viewer-stage img, .viewer-stage video { max-width: 100%; max-height: calc(100svh - 190px); object-fit: contain; }
.viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px var(--gutter) max(18px, env(safe-area-inset-bottom)); }
.viewer-caption { margin: 0; text-align: center; flex: 1; font: italic 300 19px/1.3 var(--serif); }
.viewer-caption small { display: block; margin-top: 6px; font: 500 9.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; opacity: .7; font-style: normal; }
.viewer-prev, .viewer-next { width: 44px; height: 44px; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 20px; border-radius: 50%; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; width: min(100% - 32px, 440px); background: var(--ivory); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(20,26,29,.55); }
dialog form { padding: 30px 24px 24px; }
dialog h2 { font: 300 30px/1.1 var(--serif); margin: 10px 0 18px; }
dialog h2 em { font-style: italic; }
dialog .caps { color: var(--sand); }
dialog label { display: block; margin-bottom: 18px; font: 500 10px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--soft); }
dialog input[type='text'], dialog textarea { display: block; width: 100%; margin-top: 10px; padding: 12px 0; font: 400 17px/1.4 var(--serif); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; letter-spacing: normal; text-transform: none; }
dialog textarea { resize: vertical; min-height: 110px; font-style: italic; }
dialog input:focus, dialog textarea:focus { outline: none; border-bottom-color: var(--ink); }
dialog input[type='file'] { margin-top: 10px; font: 300 14px var(--sans); letter-spacing: normal; text-transform: none; color: var(--ink); }
dialog menu { display: flex; gap: 10px; justify-content: flex-end; margin: 8px 0 0; padding: 0; }
dialog menu button { min-height: 48px; padding: 0 22px; font: 500 10.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; background: none; border: 1px solid var(--ink); color: var(--ink); }
dialog menu button.primary { background: var(--ink); color: var(--ivory); }

/* ---------- Host ---------- */
.host header { padding: max(40px, env(safe-area-inset-top)) var(--gutter) 28px; border-bottom: 1px solid var(--line); text-align: center; }
.host header .quote { max-width: 30ch; margin: 14px auto 0; color: var(--ink); font: italic 300 19px/1.35 var(--serif); }
.host header .quote small { display: block; margin-top: 10px; font: 500 9.5px/1 var(--sans); font-style: normal; letter-spacing: .28em; text-transform: uppercase; color: var(--sand); }
.host header .caps { color: var(--sand); }
.host h1 { font: 300 40px/1 var(--serif); margin: 12px 0 8px; }
.host h1 i { color: var(--sand); font-size: .7em; padding: 0 4px; }
.host header p { margin: 0; color: var(--soft); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.stats div { padding: 18px 0; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font: 300 34px/1 var(--serif); margin-bottom: 6px; }
.stats .caps { color: var(--soft); font-size: 9.5px; }
.sec { padding: 22px var(--gutter); max-width: 760px; }
.sec > .caps { display: block; margin-bottom: 12px; color: var(--soft); }
.linkrow { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.linkrow .t { flex: 1; min-width: 0; }
.linkrow b { display: block; font: 400 19px/1.2 var(--serif); }
.linkrow small { color: var(--soft); font-size: 12px; overflow-wrap: anywhere; }
.tb { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; font: 500 9.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; background: none; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; }
.tb.solid { background: var(--ink); color: var(--ivory); }
.qrcard { background: var(--paper); border: 1px solid var(--line); padding: 24px; text-align: center; }
.qrcard #qr { width: min(60vw, 220px); margin: 0 auto 10px; }
.qrcard #qr svg { width: 100%; height: auto; display: block; }
.qrcard p { margin: 0 0 16px; font: italic 400 18px/1.3 var(--serif); }
.qrcard .row { display: flex; gap: 8px; justify-content: center; }
.host .gallery { columns: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; }
@media (min-width: 720px) { .host .gallery { grid-template-columns: repeat(5, 1fr); } }
.host .tile { margin: 0; }
.host .tile .media img, .host .tile .placeholder { aspect-ratio: 1; object-fit: cover; }
.host .tile .caption { display: none; }
.host .tile-text { padding: 10px; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.host .tile-text q { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.host .tile .by { font-size: 8.5px; margin-top: 6px; }
.del { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,253,249,.94); color: var(--danger); font: 400 20px/32px var(--sans); padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.download code { display: block; background: var(--paper); border: 1px solid var(--line); padding: 12px; font-size: 13px; overflow-wrap: anywhere; }
.error { color: var(--danger); padding: 0 var(--gutter); }
@media print {
  body * { visibility: hidden; }
  #qr-section, #qr-section * { visibility: visible; }
  #qr-section { position: absolute; inset: 0; border: 0; background: #fff; display: grid; place-content: center; }
  #qr-section #qr { width: 9cm; }
  .no-print { display: none !important; }
}

/* ---------- Wall ---------- */
body.wall { background: #0d1114; color: #fff; overflow: hidden; cursor: none; height: 100vh; }
body.wall.pointer { cursor: default; }
.stage { position: fixed; inset: 0; }
.slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 1s ease; }
.slide.in { opacity: 1; }
.slide > img, .slide > video { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 0 80px rgba(0,0,0,.5); }
.backdrop { position: absolute; inset: -80px; background-size: cover; background-position: center; filter: blur(46px) brightness(.42) saturate(1.1); }
.slide::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.6) 100%), linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,0) 35%); }
.wall-caption, .wall-brand, .wall-count { text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.slide-note::after { display: none; }
body.wall.on-note .wall-brand, body.wall.on-note .wall-count { color: var(--ink); text-shadow: none; }
.wall-caption { position: absolute; z-index: 1; left: 4vw; bottom: 7vh; max-width: 26vw; }
.wall-caption .caps { color: var(--sand); font-size: max(11px, .9vw); }
.wall-caption .who { font: italic 300 max(34px, 3.1vw)/1.05 var(--serif); margin-top: 12px; }
.wall-caption .msg { font: 300 max(16px, 1.35vw)/1.45 var(--sans); color: rgba(255,255,255,.85); margin-top: 12px; }
.slide-note { background: var(--ivory); color: var(--ink); }
.slide-note .frame { position: absolute; inset: 3.2vh 2.4vw; border: 1px solid var(--line); }
.note-wrap { position: relative; text-align: center; max-width: 64vw; }
.note-wrap .mark { display: block; height: .5em; font: italic 300 max(110px, 9vw)/1 var(--serif); color: var(--sand); }
.note-wrap blockquote { margin: 0; font: italic 300 max(40px, 3.8vw)/1.2 var(--serif); overflow-wrap: anywhere; }
.note-wrap .rule { background: var(--sand); opacity: 1; width: 56px; margin: 4vh auto 2.4vh; }
.note-wrap .who { color: var(--soft); font-size: max(11px, .85vw); }
.slide-empty .names { font-size: max(80px, 8vw); margin: 3vh 0 0; }
.slide-empty .amp { color: var(--sand); }
.slide-empty .caps { color: var(--sand); font-size: max(11px, .9vw); }
.slide-empty .sub { margin: 0; color: var(--soft); font: italic 300 max(22px, 1.8vw)/1.4 var(--serif); }
.wall-brand { position: fixed; z-index: 3; top: 5vh; left: 4vw; font: 300 max(24px, 2vw)/1 var(--serif); letter-spacing: .06em; color: #fff; }
.wall-brand i { color: var(--sand); padding: 0 6px; font-size: .8em; }
.wall-count { position: fixed; z-index: 3; top: 5.4vh; right: 4.5vmin; color: rgba(255,255,255,.8); }
/* QR rail: a fixed column on the right; slides centre their content in the space to its left. */
body.wall { --qr-w: clamp(250px, 30vmin, 400px); --rail: calc(var(--qr-w) + 9vmin); }
body.wall.has-qr .slide { padding-right: var(--rail); }
body.wall.has-qr .slide > .backdrop { right: -80px; }
.qr-card { position: fixed; z-index: 3; right: 4.5vmin; top: 50%; transform: translateY(-46%); width: var(--qr-w);
  padding: clamp(18px, 2.6vmin, 34px) clamp(16px, 2.2vmin, 30px) clamp(16px, 2.2vmin, 28px);
  background: var(--paper); color: var(--ink); text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); opacity: 0; transition: opacity .8s ease, transform .8s ease; }
.qr-card::before { content: ''; position: absolute; inset: clamp(6px, .8vmin, 10px); border: 1px solid var(--line); pointer-events: none; }
.qr-card.placed { opacity: 1; transform: translateY(-50%); }
.qr-card .caps { display: block; color: var(--sand); font-size: clamp(9px, 1vmin, 12px); letter-spacing: .32em; }
.qr-title { display: block; margin: .5em 0 .75em; font: 300 clamp(26px, 3.6vmin, 46px)/1.05 var(--serif); }
.qr-title em { font-style: italic; color: var(--soft); }
.qr-frame { position: relative; padding: 8%; background: #fff; border: 1px solid var(--line); }
.qr-card #qr svg { width: 100%; height: auto; display: block; shape-rendering: crispEdges; }
.qr-hint { display: block; margin-top: .9em; font: italic 300 clamp(13px, 1.55vmin, 19px)/1.25 var(--serif); color: var(--soft); }
.qr-card .url { display: block; margin-top: .4em; font: 400 clamp(15px, 2vmin, 24px)/1.2 var(--serif); color: var(--ink); white-space: nowrap; }
.qr-card .url:empty, .qr-card .url span:empty { display: none; }
body.wall.on-note .qr-card { box-shadow: 0 10px 40px rgba(31,42,47,.12); }
.wall-add { display: none; }
/* Phones and tall screens: the viewer is already on a phone, so swap the QR card for a direct button. */
@media (max-aspect-ratio: 1/1), (max-width: 760px) {
  body.wall .qr-card { display: none; }
  body.wall.has-qr .slide { padding-right: 0; }
  .wall-add { display: inline-flex; align-items: center; gap: 8px; position: fixed; z-index: 4; left: 50%; transform: translateX(-50%);
    bottom: max(20px, env(safe-area-inset-bottom)); min-height: 52px; padding: 0 24px; background: var(--ivory); color: var(--ink);
    text-decoration: none; white-space: nowrap; font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; box-shadow: 0 12px 34px rgba(0,0,0,.35); }
  .wall-add span { font-size: 18px; letter-spacing: 0; }
  .wall-caption { left: 6vw; right: 6vw; max-width: none; bottom: calc(96px + env(safe-area-inset-bottom)); }
  .wall-caption .who { font-size: 30px; }
  .wall-caption .msg { font-size: 15px; }
  .wall-brand { font-size: 22px; top: max(18px, env(safe-area-inset-top)); left: 6vw; }
  .wall-count { display: none; }
  .note-wrap { max-width: 84vw; }
  .note-wrap blockquote { font-size: 30px; }
  .slide-empty .names { font-size: 64px; }
}
.sound { position: fixed; z-index: 4; left: 50%; top: 4.4vh; transform: translateX(-50%); min-height: 40px; padding: 0 16px; background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.4); font: 500 10px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; opacity: 0; transition: opacity .3s; }
body.wall.pointer .sound { opacity: 1; }

/* ---------- Floral accents (cropped from the dance invitation art, kept faint) ---------- */
.has-floral { overflow: hidden; isolation: isolate; }
.has-floral:not(.slide) { position: relative; }
.floral { position: absolute; z-index: -1; pointer-events: none; background-image: url(/img/invite.webp); background-repeat: no-repeat;
  mix-blend-mode: multiply; opacity: var(--floral-opacity, .26); }
.floral-corner { --k: calc(var(--fw, 150px) / 340px); width: var(--fw, 150px); height: calc(var(--fw, 150px) * 1.65);
  background-size: calc(var(--fw, 150px) * 3.118) auto; background-position: 0 0; top: 0;
  -webkit-mask-image: radial-gradient(120% 100% at 0 0, #000 45%, transparent 85%); mask-image: radial-gradient(120% 100% at 0 0, #000 45%, transparent 85%); }
.floral-corner.left { left: 0; }
.floral-corner.right { right: 0; transform: scaleX(-1); }
.floral-base { width: var(--bw, 220px); height: calc(var(--bw, 220px) * .728); bottom: 0;
  background-size: calc(var(--bw, 220px) * 2.12) auto; background-position: calc(var(--bw, 220px) * -1.12) calc(var(--bw, 220px) * -2.24);
  -webkit-mask-image: radial-gradient(110% 110% at 100% 100%, #000 40%, transparent 80%); mask-image: radial-gradient(110% 110% at 100% 100%, #000 40%, transparent 80%); }
.floral-base.right { right: 0; }
.floral-base.left { left: 0; transform: scaleX(-1); }
.slide-note .floral { --floral-opacity: .32; }
.slide-note .floral-corner { --fw: max(220px, 15vw); }
.slide-note .floral-base { --bw: max(300px, 22vw); }

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .slide, .cue { transition: none; animation: none; transform: none; }
}
