/* Campaign pages — shared by every branded campaign. Colours, fonts and artwork
   come from the theme as custom properties, so a brand's studio changes repaint
   the page without touching this file. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body.cmp {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-body); font-synthesis: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip;   /* clip where supported: hidden would break sticky */
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--btn-text); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.ic { flex: none; }

.cmp-banner { position: fixed; inset: 0 0 auto; height: 32px; z-index: 60; line-height: 18px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: var(--accent); color: var(--btn-text); text-align: center; font-size: 13px; padding: 7px 16px; }
.cmp-banner--soft { position: static; height: auto; white-space: normal; background: rgba(var(--accent-rgb), .12); color: var(--accent-2); margin: 0; }
body.has-banner .top { top: 32px; }

/* ---- type ------------------------------------------------------------------ */
.eyebrow, .kicker {
  display: flex; align-items: center; gap: 14px;
  font: 500 12px/1.2 var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: var(--accent);
}
.eyebrow span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eyebrow::before, .eyebrow::after, .kicker::after { content: ""; height: 1px; width: 38px; background: currentColor; opacity: .7; flex: none; }
.kicker::after { width: 46px; }
@media (max-width: 560px) {
  .eyebrow, .kicker { letter-spacing: .22em; gap: 10px; }
  .eyebrow::after { display: none; }
  .eyebrow::before { width: 26px; }
  .sec-head .kicker::after { display: none; }
}
.gold {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark { font-family: var(--font-display); font-size: 28px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; color: var(--text); }
.wordmark--sm { font-size: 24px; }

/* ---- buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 6px; border: 1px solid transparent;
  font: 500 16px/1.1 var(--font-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn--gold {
  color: var(--btn-text);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 8px 26px rgba(var(--accent-rgb), .28), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--gold:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(var(--accent-rgb), .42), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--line { color: var(--text); border-color: rgba(var(--accent-rgb), .75); background: rgba(var(--bg-rgb), .25); }
.btn--line:hover { border-color: var(--accent-2); color: var(--accent-2); background: rgba(var(--accent-rgb), .08); }
.btn--ghost { color: var(--muted); border-color: rgba(var(--text-rgb), .18); background: transparent; }
.btn--ghost:hover { color: var(--text); border-color: rgba(var(--text-rgb), .4); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---- header ------------------------------------------------------------------ */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
.top.is-solid { background: rgba(var(--bg-rgb), .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(var(--accent-rgb), .18); }
.top__in { max-width: 1240px; margin: 0 auto; height: 68px; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
@media (min-width: 720px) { .top__in { height: 84px; padding: 0 32px; gap: 20px; } }
.top__logo { display: flex; align-items: center; text-decoration: none; margin-right: auto; min-width: 0; }
.top__logo img { height: 34px; width: auto; }
@media (min-width: 720px) { .top__logo img { height: 42px; } .top__logo .wordmark { font-size: 32px; } }
.top__nav { display: none; gap: 36px; margin-right: auto; }
.top__nav a { white-space: nowrap; position: relative; text-decoration: none; font-size: 15px; color: rgba(var(--text-rgb), .88); padding: 6px 0; }
.top__nav a:hover { color: var(--accent-2); }
.top__nav a.is-on { color: var(--accent-2); }
.top__nav a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); }
@media (min-width: 1140px) { .top__nav { display: flex; } }
/* the menu button stands in for the section links on anything narrower */
.top__burger { display: grid; place-content: center; gap: 5px; width: 42px; height: 42px; flex: none; border: 1px solid rgba(var(--accent-rgb), .45); border-radius: 6px; background: rgba(var(--bg-rgb), .35); cursor: pointer; }
.top__burger span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .25s, opacity .2s; }
.top__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.top__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.top__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 1140px) { .top__burger, .menu { display: none !important; } }
.menu { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; padding: 6px 16px 16px;
  background: rgba(var(--bg-rgb), .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(var(--accent-rgb), .25); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.menu a { padding: 14px 4px; font-size: 17px; color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(var(--text-rgb), .08); }
.menu a:last-child { border-bottom: 0; }
.menu a:hover { color: var(--accent-2); }
.menu__lang { color: var(--accent) !important; font-size: 14px !important; letter-spacing: .08em; text-transform: uppercase; }
/* small phones: the language link moves into the menu to give the header room */
@media (max-width: 560px) { .top__lang { display: none; } }
@media (min-width: 561px) { .menu__lang { display: none; } }
.top.is-open { background: rgba(var(--bg-rgb), .97); }
.top__lang { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 8px 4px; white-space: nowrap; }
.top__lang:hover { color: var(--accent-2); }
.top__lang-s { display: none; }
@media (max-width: 400px) { .top__lang-l { display: none; } .top__lang-s { display: inline; } .top__logo .wordmark { font-size: 24px; } }
.top__cta { white-space: nowrap; min-height: 40px; padding: 8px 14px; font-size: 14px; }
.top__cta span { display: none; }
@media (min-width: 560px) { .top__cta span { display: inline; } .top__cta { padding: 9px 18px; } }

/* ---- hero -------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 104px 0 40px; }
@media (min-width: 721px) { .hero { min-height: min(100svh, 920px); justify-content: center; padding: 120px 0 64px; } }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero__bg img { object-fit: cover; object-position: 70% 50%; background-size: cover; background-position: center; }
@media (min-width: 721px) { .hero__bg img { object-position: 60% 45%; } }
/* the shade keeps copy legible over whatever artwork the brand drops in: heavy
   behind the text column, lighter where the picture should breathe */
.hero__shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(var(--bg-rgb), 1) 0%, rgba(var(--bg-rgb), calc(var(--hero-shade) * 1.2)) 38%, rgba(var(--bg-rgb), calc(var(--hero-shade) * .35)) 70%, rgba(var(--bg-rgb), calc(var(--hero-shade) * .8)) 100%); }
@media (min-width: 721px) {
  .hero__shade { background:
    linear-gradient(90deg, rgba(var(--bg-rgb), calc(var(--hero-shade) * 1.35)) 0%, rgba(var(--bg-rgb), var(--hero-shade)) 36%, rgba(var(--bg-rgb), calc(var(--hero-shade) * .25)) 64%, rgba(var(--bg-rgb), calc(var(--hero-shade) * .45)) 100%),
    linear-gradient(0deg, rgba(var(--bg-rgb), 1) 0%, rgba(var(--bg-rgb), 0) 22%),
    linear-gradient(180deg, rgba(var(--bg-rgb), .7) 0%, rgba(var(--bg-rgb), 0) 18%); }
}
.hero__flowers { position: absolute; z-index: -1; pointer-events: none; opacity: .5; }
.hero__flowers--l { left: -6%; bottom: -6%; width: min(42vw, 360px); }
@media (max-width: 720px) { .hero__flowers { display: none; } }

.hero__in { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .hero__in { padding: 0 32px; } }
.hero__in > * { max-width: 640px; }
.hero__in > .hero__title { max-width: none; }
@media (min-width: 721px) { .hero__title { font-size: clamp(38px, 3.7vw, 54px); } }
.hero__title {
  margin-top: 18px; font-family: var(--font-display); text-transform: var(--heading-case);
  font-size: clamp(30px, 7.6vw, 58px); line-height: 1.06; letter-spacing: .01em; color: var(--text);
  text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.45);
}
.hero__title .gold { text-shadow: none; }
.hero__title--person { font-size: clamp(30px, 6.4vw, 54px); margin-top: 4px; }
.hero__intro { margin-top: 20px; font-size: clamp(16px, 2.2vw, 19px); line-height: 1.55; color: rgba(var(--text-rgb), .92); max-width: 30em; text-shadow: 0 1px 14px rgba(0,0,0,.6); }
.hero__years { margin-top: 10px; font-family: var(--font-display); font-size: 22px; letter-spacing: .08em; color: var(--accent-2); }
.hero__msg { margin: 18px 0 0; font-size: clamp(18px, 2.6vw, 22px); line-height: 1.5; font-style: italic; color: rgba(var(--text-rgb), .95); max-width: 32em; }
.hero__by { margin-top: 12px; color: var(--muted); font-size: 15px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__actions .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero__actions .btn { flex: 0 0 auto; } }

.count { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 16px; color: rgba(var(--text-rgb), .9);
  background: none; border: 0; padding: 6px 10px 6px 0; border-radius: 999px; font-family: inherit; cursor: pointer; text-align: left; transition: background-color .2s; }
.count:hover { background: rgba(var(--accent-rgb), .08); }
.count__go { color: var(--accent); font-size: 20px; line-height: 1; transition: transform .2s; }
.count:hover .count__go { transform: translateX(3px); }
.count__faces { display: inline-flex; }
.count__faces img, .count__faces i { width: 34px; height: 34px; border-radius: 50%; margin-left: -10px; object-fit: cover; border: 2px solid rgba(var(--accent-rgb), .75); background: #120d09; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.count__faces > :first-child { margin-left: 0; }
.count__faces i { display: block; background: radial-gradient(circle at 50% 62%, #fff6d8 0 9%, var(--accent-2) 15%, rgba(var(--accent-rgb), .55) 32%, rgba(var(--bg-rgb), .9) 62%); }
.count strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: .02em; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.count__flames { display: inline-flex; }
.count__flames i { width: 30px; height: 30px; border-radius: 50%; margin-left: -9px; border: 1px solid rgba(var(--accent-rgb), .55);
  background: radial-gradient(circle at 50% 62%, #fff6d8 0 9%, var(--accent-2) 15%, rgba(var(--accent-rgb), .55) 32%, rgba(var(--bg-rgb), .9) 62%); box-shadow: 0 0 14px rgba(var(--accent-rgb), .35); }
.count__flames i:first-child { margin-left: 0; }
.count__flames i:nth-child(2) { animation: glow 3.2s ease-in-out infinite; }
.count[hidden] { display: none; }
.count.is-bump strong { animation: bump .9s ease; }

/* drifting candles — the site's signature, kept to the right of the copy */
.drift { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.drift__c { position: absolute; bottom: -90px; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 170px; margin-left: -85px;
  opacity: 0; animation: drift 22s linear forwards; will-change: transform, opacity; }
.drift__flame { width: 12px; height: 20px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 70%, #fff8e1 0 22%, var(--accent-2) 42%, rgba(var(--accent-rgb), 0) 72%);
  box-shadow: 0 0 22px 8px rgba(var(--accent-rgb), .3); animation: flicker 2.4s ease-in-out infinite; }
.drift__t { text-align: center; font-size: 13px; line-height: 1.35; color: rgba(var(--text-rgb), .9); text-shadow: 0 1px 10px rgba(0,0,0,.9); }
.drift__t b { display: block; font-weight: 500; color: var(--accent-2); }
.drift__t i { display: block; font-size: 12px; color: rgba(var(--text-rgb), .72); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* on phones the candles rise from the bottom like on desktop, behind the copy:
   names only, and dimmer, so the headline stays readable over them */
@media (max-width: 1100px) {
  .drift__c { width: 130px; margin-left: -65px; opacity: 0; animation-name: drift-soft; }
  .drift__t { font-size: 12px; }
  .drift__t i, .drift__ph { display: none; }
}
@keyframes drift-soft { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: .48; } 78% { opacity: .42; } 100% { transform: translateY(-112vh); opacity: 0; } }

/* ---- sections ------------------------------------------------------------------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head__link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; color: rgba(var(--text-rgb), .85); white-space: nowrap; }
.sec-head__link:hover { color: var(--accent-2); }
.sec-head__link .ic { width: 16px; height: 16px; }

.latest { position: relative; padding-top: 32px; padding-bottom: 24px; border-top: 1px solid rgba(var(--accent-rgb), .22); }
.latest__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 86%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
.latest__row::-webkit-scrollbar { display: none; }
.latest__row > * { scroll-snap-align: start; }
@media (min-width: 720px) { .latest__row { grid-auto-columns: minmax(300px, 46%); margin-inline: 0; padding-inline: 0; } }
@media (min-width: 1100px) { .latest__row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } .latest__row > .card:nth-child(n+5) { display: none; } }
.latest__empty { color: var(--muted); padding: 28px 0; }
.sec-head__tools { display: flex; align-items: center; gap: 10px; }
.latest__play { display: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), .45); background: transparent; color: var(--accent-2); cursor: pointer; place-items: center; font-size: 12px; line-height: 1; }
.latest.is-scrollable .latest__play { display: grid; }
.latest__row { scroll-behavior: smooth; }

.card { position: relative; display: grid; grid-template-columns: 104px 1fr; height: 184px; overflow: hidden; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, rgba(var(--text-rgb), .035), rgba(var(--text-rgb), .01)), var(--surface);
  border: 1px solid rgba(var(--accent-rgb), .22); border-radius: 8px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover, .card:focus-visible { border-color: rgba(var(--accent-rgb), .6); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.card.is-new { animation: arrive .9s cubic-bezier(.2,.7,.2,1); }
.card--pinned { border-color: rgba(var(--accent-rgb), .55); }
.card__pin { position: absolute; top: 9px; right: 9px; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(var(--accent-rgb), .16); border: 1px solid rgba(var(--accent-rgb), .6); color: var(--accent); }
.card__pin[hidden] { display: none; }
.card__pin .ic { width: 15px; height: 15px; transform: rotate(35deg); }
.card__pin span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card--pinned .card__id { padding-right: 28px; }
.card__stage { position: relative; overflow: hidden; }
.card__stage img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.card__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--bg-rgb), 0) 55%, var(--surface)); pointer-events: none; }
.card__stage--css { display: grid; place-items: end center; padding-bottom: 18px; background: radial-gradient(80% 60% at 50% 70%, rgba(var(--accent-rgb), .12), transparent 70%), #0d0906; }
.flicker { position: absolute; left: 50%; top: 22%; width: 120%; height: 60%; transform: translate(-50%, -50%); pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse at center, rgba(255, 214, 140, .38), rgba(255, 170, 70, .12) 40%, transparent 68%); animation: glow 2.8s ease-in-out infinite; }
.card:nth-child(2n) .flicker { animation-duration: 3.4s; animation-delay: -1s; }
.card:nth-child(3n) .flicker { animation-duration: 2.3s; animation-delay: -.4s; }
.card__body { padding: 14px 14px 12px 8px; display: flex; flex-direction: column; min-width: 0; }
.card__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card__photo { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 1.5px solid rgba(var(--accent-rgb), .7); background: #120d09; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; }
.card__id { min-width: 0; }
.card__for { font-size: 16.5px; line-height: 1.2; font-weight: 500; color: var(--text); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__years { font-size: 13px; color: var(--muted); margin-top: 1px; }
.card__years:empty { display: none; }
.card__msg { margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: rgba(var(--text-rgb), .9); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__msg:empty { display: none; }
.card__meta { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); min-width: 0; }
.card__who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card__who:empty { display: none; }
.card__who:not(:empty) + time::before { content: "· "; }
.card__meta time { white-space: nowrap; }
.card__count { margin-left: auto; white-space: nowrap; color: var(--accent-2); }

/* a loved one's page */
.pers { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.pers__photo { flex: none; margin: 0; width: 132px; height: 156px; border-radius: 8px; overflow: hidden; border: 2px solid var(--accent); box-shadow: 0 0 40px rgba(var(--accent-rgb), .3); }
.pers__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 720px) { .pers__photo { width: 180px; height: 214px; } }
@media (max-width: 480px) { .pers { gap: 14px; } .pers__photo { width: 104px; height: 124px; } }
.pers__label { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.pers__count { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: rgba(var(--text-rgb), .9); }
.pers__count b { font-weight: 500; color: var(--accent-2); }
.hero--person .hero__in > * { max-width: 760px; }
.pcandles { padding-top: 36px; padding-bottom: 12px; border-top: 1px solid rgba(var(--accent-rgb), .22); }

/* candle lists (a profile's candles, in the dialog and on its page) */
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.clist li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 14px; border-radius: 8px; background: rgba(var(--text-rgb), .03); border: 1px solid rgba(var(--accent-rgb), .14); }
.clist__stage { display: grid; place-items: end center; height: 56px; overflow: hidden; }
.clist__stage img { width: 36px; height: auto; }
.clist__who { font-size: 14px; color: var(--muted); }
.clist__who b { color: var(--text); font-weight: 500; }
.clist__msg { margin-top: 4px; font-size: 15.5px; line-height: 1.5; font-style: italic; color: rgba(var(--text-rgb), .92); white-space: pre-line; overflow-wrap: anywhere; }
.clist__empty { color: var(--muted); padding: 10px 0; }
@media (min-width: 900px) { .pcandles .clist { grid-template-columns: 1fr 1fr; } }

/* pagination */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding-top: 22px; }
.pager button { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 6px; border: 1px solid rgba(var(--accent-rgb), .3); background: transparent; color: var(--text); font-size: 14px; cursor: pointer; }
.pager button:hover:not([disabled]) { border-color: var(--accent); color: var(--accent-2); }
.pager button[aria-current="page"] { background: rgba(var(--accent-rgb), .18); border-color: var(--accent); color: var(--accent-2); }
.pager button[disabled] { opacity: .35; cursor: default; }
.pager__gap { color: var(--muted); padding: 0 4px; }
.pager__of { width: 100%; text-align: center; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* how it works */
.how { display: grid; gap: 36px; padding-top: 72px; padding-bottom: 72px; }
@media (min-width: 1000px) { .how { grid-template-columns: minmax(470px, 1.2fr) 1.8fr; gap: 48px; align-items: start; } }
.how__title { margin-top: 14px; font-family: var(--font-display); text-transform: var(--heading-case); font-size: clamp(24px, 6vw, 34px); line-height: 1.14; }
@media (min-width: 1000px) { .how__title { font-size: clamp(24px, 2.05vw, 30px); } }
.how__lead { margin-top: 16px; color: rgba(var(--text-rgb), .85); max-width: 26em; }
.how__intro::after { content: ""; display: block; width: 40px; height: 1px; margin-top: 22px; background: var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step__top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.step__n { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent-2); font-size: 15px; }
.step__ic { color: var(--accent); }
.step__ic .ic { width: 34px; height: 34px; stroke-width: 1.2; }
.step__line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .6), rgba(var(--accent-rgb), .15)); display: none; }
@media (min-width: 720px) { .step__line { display: block; } }
.step h3 { font-size: 18px; line-height: 1.3; color: var(--text); }
.step p { margin-top: 8px; color: rgba(var(--text-rgb), .78); font-size: 15px; line-height: 1.55; }

/* listen */
.listen { display: grid; gap: 28px; align-items: center; padding-top: 56px; padding-bottom: 56px; border-top: 1px solid rgba(var(--accent-rgb), .18); }
@media (min-width: 900px) { .listen { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.listen h2 { margin-top: 14px; font-family: var(--font-display); text-transform: var(--heading-case); font-size: clamp(24px, 4vw, 32px); line-height: 1.15; }
.listen__text > p:not(.kicker) { margin-top: 12px; color: rgba(var(--text-rgb), .82); }
.listen__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid rgba(var(--accent-rgb), .3); border-radius: 8px; overflow: hidden; padding: 0; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s; }
.yt:hover img { opacity: 1; }
.yt__play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--btn-text); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.yt__play .ic { width: 30px; height: 30px; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* the ofrenda wall */
.ofrenda { padding-top: 64px; padding-bottom: 40px; border-top: 1px solid rgba(var(--accent-rgb), .18); }
.ofrenda__head { display: grid; gap: 20px; margin-bottom: 26px; }
@media (min-width: 800px) { .ofrenda__head { grid-template-columns: 1fr minmax(280px, 380px); align-items: end; } }
.ofrenda h2 { margin-top: 14px; font-family: var(--font-display); text-transform: var(--heading-case); font-size: clamp(26px, 4.4vw, 36px); line-height: 1.1; }
.ofrenda__lead { margin-top: 10px; color: rgba(var(--text-rgb), .8); }
.search { position: relative; }
.search input { width: 100%; height: 50px; padding: 0 44px; border-radius: 6px; border: 1px solid rgba(var(--accent-rgb), .35); background: var(--surface);
  color: var(--text); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: rgba(var(--text-rgb), .45); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.search input::-webkit-search-cancel-button { display: none; }
.search__ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.search__x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.wall { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .wall { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .wall { grid-template-columns: repeat(3, 1fr); } }
.wall__status { text-align: center; color: var(--muted); padding: 18px 0 0; min-height: 1em; }
.wall__status:empty { padding: 0; }
.wall__more { display: flex; justify-content: center; padding-top: 22px; }

/* create your own page — the platform's invitation, kept quiet */
.create { padding-top: 40px; padding-bottom: 72px; }
.create__card { position: relative; overflow: hidden; display: grid; gap: 22px; align-items: center; padding: 30px 22px;
  border: 1px solid rgba(var(--accent-rgb), .28); border-radius: 10px; background: radial-gradient(120% 140% at 0% 100%, rgba(var(--accent-rgb), .12), transparent 55%), var(--surface); }
@media (min-width: 860px) { .create__card { grid-template-columns: 1fr auto; padding: 40px 48px 40px 220px; } }
.create__flowers { position: absolute; left: -40px; bottom: -40px; width: 260px; opacity: .55; pointer-events: none; display: none; }
@media (min-width: 860px) { .create__flowers { display: block; } }
.create h2 { margin-top: 12px; font-family: var(--font-display); text-transform: var(--heading-case); font-size: clamp(22px, 3.2vw, 28px); line-height: 1.18; }
.create__text > p:not(.kicker) { margin-top: 10px; color: rgba(var(--text-rgb), .8); max-width: 36em; }

/* footer */
.foot { border-top: 1px solid rgba(var(--accent-rgb), .2); padding: 40px 0 28px; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.4)); }
.foot__in { display: grid; gap: 24px; align-items: center; }
@media (min-width: 800px) { .foot__in { grid-template-columns: 1fr auto auto; gap: 40px; } }
.foot__brand p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.foot__logo { height: 36px; width: auto; }
.foot__social { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.foot__social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), .3); color: var(--text); }
.foot__social a:hover { color: var(--accent-2); border-color: var(--accent); }
.foot__lac { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13px; color: var(--muted); }
.foot__lac img { height: 22px; width: auto; opacity: .92; }
.foot__lac:hover img { opacity: 1; }
.foot__base { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(var(--text-rgb), .07); }
.foot__privacy { font-size: 12px; color: rgba(var(--text-rgb), .5); max-width: 60em; }
.foot__photo { display: block; margin-top: 6px; font-size: 9.5px; letter-spacing: .02em; color: rgba(var(--text-rgb), .38); }
.foot__photo a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.foot__credit { font-size: 13px; color: rgba(var(--text-rgb), .62); white-space: nowrap; }
.foot__credit a { color: rgba(var(--text-rgb), .8); text-decoration: none; }
.foot__credit a:hover { color: var(--accent-2); }
.foot__heart { color: #e25555; }

/* ---- dialogs ----------------------------------------------------------------- */
.modal { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid rgba(var(--accent-rgb), .3); border-radius: 12px;
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: auto; overscroll-behavior: contain; }
/* a slim scrollbar in the page's own colours, not the browser's white rail */
.modal { scrollbar-width: thin; scrollbar-color: rgba(var(--accent-rgb), .28) transparent; }
.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-track { background: transparent; margin-block: 12px; }
.modal::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb), .28); border-radius: 6px; }
.modal::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb), .5); }
.modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: rise .35s cubic-bezier(.2,.7,.2,1); }
/* The close button sticks to the top corner while a long window scrolls (faces, a loved one's candles),
   so it can be closed from anywhere. The negative bottom margin keeps it from pushing the content down. */
.modal__x { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 8px 8px -52px auto; padding: 0 0 3px; border: 1px solid rgba(var(--accent-rgb), .25); border-radius: 50%;
  background: rgba(var(--bg-rgb), .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgba(0,0,0,.35);
  color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s; }
.modal__x:hover, .modal__x:focus-visible { background: rgba(var(--bg-rgb), .92); border-color: var(--accent); }
.lform, .done { padding: 26px 20px 22px; }
@media (min-width: 560px) { .lform, .done { padding: 32px 32px 26px; } }
.lform__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-right: 30px; }
.lform__candle { width: 56px; height: auto; flex: none; filter: drop-shadow(0 0 18px rgba(var(--accent-rgb), .4)); }
.lform__head h2 { font-family: var(--font-display); text-transform: var(--heading-case); font-size: 24px; line-height: 1.08; }
.lform__head p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.field { display: block; margin-bottom: 14px; position: relative; }
.field > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: rgba(var(--text-rgb), .92); }
.field > span b { color: var(--accent); font-weight: 500; }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid rgba(var(--text-rgb), .16); background: rgba(var(--bg-rgb), .55);
  color: var(--text); font: inherit; font-size: 16px; line-height: 1.4; -webkit-appearance: none; appearance: none; }
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(var(--text-rgb), .38); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.field.is-bad input { border-color: #e07a6a; }
.field__count { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: var(--muted); pointer-events: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lform__err { margin: 4px 0 12px; padding: 10px 12px; border-radius: 6px; background: rgba(224, 122, 106, .14); color: #f2b0a4; font-size: 14px; }
.lform__note { font-size: 12px; color: var(--muted); margin: 2px 0 18px; }
.lform__actions { display: flex; gap: 10px; }
.lform__actions .btn--gold { flex: 1; }
.lform__actions .btn--ghost { flex: 0 0 auto; padding-inline: 18px; }
.lform__actions--center { justify-content: center; margin-top: 22px; }
.lform__actions--center .btn--gold { flex: 0 1 auto; }
.done { text-align: center; }
.done__candle { position: relative; width: 120px; margin: 0 auto 12px; }
.done__candle img { width: 100%; height: auto; animation: rise .8s cubic-bezier(.2,.7,.2,1); }
.done__glow { position: absolute; left: 50%; top: 17%; width: 130%; height: 40%; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,214,140,.5), rgba(255,170,70,.15) 45%, transparent 70%); mix-blend-mode: screen; animation: glow 2.6s ease-in-out infinite; }
.done h2 { font-family: var(--font-display); text-transform: var(--heading-case); font-size: 26px; line-height: 1.12; }
.done > p { margin-top: 8px; color: rgba(var(--text-rgb), .86); }
.done__share-t { margin-top: 22px !important; font-size: 14px; color: var(--muted) !important; }
.share { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.share__b { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), .4);
  background: rgba(var(--accent-rgb), .06); text-decoration: none; font-size: 14px; color: var(--text); cursor: pointer; }
.share__b:hover { border-color: var(--accent-2); color: var(--accent-2); }
.share__b .ic { width: 18px; height: 18px; }
.share__b--native { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--btn-text); border-color: transparent; }
.share__b--native:hover { color: var(--btn-text); }
.modal--read #read-body { padding: 34px 26px 28px; }
.modal--read h3 { font-size: 22px; font-weight: 500; padding-right: 30px; }
.modal--read .read__years { color: var(--muted); font-size: 14px; margin-top: 2px; }
.modal--read .read__msg { margin-top: 16px; font-size: 18px; line-height: 1.55; font-style: italic; white-space: pre-line; overflow-wrap: anywhere; }
.modal--read .read__meta { margin-top: 16px; color: var(--muted); font-size: 14px; }
body.has-modal { overflow: hidden; }

/* ---- motion ------------------------------------------------------------------- */
@keyframes glow { 0%, 100% { opacity: .78; transform: translate(-50%, -50%) scale(1); } 45% { opacity: 1; transform: translate(-50%, -52%) scale(1.06); } 70% { opacity: .86; transform: translate(-50%, -50%) scale(.97); } }
.count__flames i:nth-child(2) { animation-name: glow-dot; }
@keyframes glow-dot { 0%, 100% { box-shadow: 0 0 14px rgba(var(--accent-rgb), .35); } 50% { box-shadow: 0 0 22px rgba(var(--accent-rgb), .6); } }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-1deg); opacity: .95; } 30% { transform: scale(1.08, .94) rotate(2deg); opacity: 1; } 60% { transform: scale(.94, 1.06) rotate(-2deg); opacity: .88; } }
@keyframes drift { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 78% { opacity: .9; } 100% { transform: translateY(-112vh); opacity: 0; } }
@keyframes arrive { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: none; } 30% { transform: scale(1.14); color: #fff3d6; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .drift { display: none; }
}

/* ---- light form: who it's for, photo, candle ------------------------------------ */
.bound { margin-bottom: 14px; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(var(--accent-rgb), .4); background: rgba(var(--accent-rgb), .07); }
.bound__label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.bound__who { display: flex; align-items: center; gap: 12px; }
.bound__who b { display: block; font-size: 17px; font-weight: 500; }
.bound__who small { color: var(--muted); font-size: 13px; }
.bound__photo { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 1.5px solid var(--accent); background: #120d09 url() center/cover; }
.bound__photo:empty { display: none; }
.bound__photo img { width: 100%; height: 100%; object-fit: cover; }
.bound__x { margin-left: auto; background: none; border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; padding: 6px; }
.suggest { margin: -4px 0 14px; padding: 12px; border-radius: 8px; background: rgba(var(--bg-rgb), .6); border: 1px solid rgba(var(--accent-rgb), .3); }
.suggest__t { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.suggest__list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.suggest__list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; border: 1px solid rgba(var(--accent-rgb), .25); background: var(--surface); text-align: left; cursor: pointer; }
.suggest__list button:hover { border-color: var(--accent); }
.suggest__list .sg__photo { flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #120d09; border: 1px solid rgba(var(--accent-rgb), .5); }
.suggest__list .sg__photo img { width: 100%; height: 100%; object-fit: cover; }
.suggest__list .sg__txt { flex: 1; min-width: 0; font-size: 14px; }
.suggest__list .sg__txt small { display: block; color: var(--muted); font-size: 12px; }
.suggest__list .sg__go { font-size: 13px; color: var(--accent-2); white-space: nowrap; }
.suggest__no { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px 0; }
.drop { position: relative; display: grid; place-items: center; min-height: 104px; border-radius: 8px; border: 1.5px dashed rgba(var(--accent-rgb), .45);
  background: rgba(var(--bg-rgb), .45); cursor: pointer; transition: border-color .2s, background .2s; overflow: hidden; }
.drop:hover, .drop.is-over { border-color: var(--accent-2); background: rgba(var(--accent-rgb), .08); }
.drop__empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; text-align: center; font-size: 14px; color: var(--muted); }
.drop__empty .ic { width: 26px; height: 26px; color: var(--accent); }
.drop__busy { font-size: 14px; color: var(--muted); }
.drop__img { width: 100%; max-height: 220px; object-fit: contain; background: #0d0906; }
.drop__x { margin-top: 6px; background: none; border: 0; color: var(--accent); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px 0; }
.picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 520px) { .picker { grid-template-columns: repeat(6, 1fr); } }
.pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 8px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(var(--accent-rgb), .22); background: #0d0906; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .3); }
.pick:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.pick__stage { height: 72px; display: grid; place-items: end center; overflow: hidden; }
.pick__stage img { width: 40px; height: auto; }
.pick__name { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.2; }
/* ofrendas: three photo tiles, then which pan dulce for #2 */
.picker--ofrenda { grid-template-columns: repeat(3, 1fr); }
.pick--ofrenda { padding: 6px 6px 9px; }
.pick--ofrenda .pick__stage { height: auto; width: 100%; place-items: center; }
.pick--ofrenda .pick__stage img { width: 100%; max-width: 132px; aspect-ratio: 1; height: auto; object-fit: cover; object-position: 50% 92%; border-radius: 6px; }   /* the offering, not the flame */
.pick--ofrenda .pick__name { font-size: 12.5px; color: var(--text); }
.pan { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pan__t { font-size: 13px; color: var(--muted); margin-right: 4px; }
.pan__opt { position: relative; cursor: pointer; }
.pan__opt input { position: absolute; opacity: 0; }
.pan__opt span { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; border: 1px solid rgba(var(--accent-rgb), .35); color: var(--text); }
.pan__opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--btn-text); }
.pan__opt input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.clist__stage img.is-ofrenda { width: 40px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.done__candle img.is-ofrenda { width: 150px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.flames { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.flames__t { font-size: 13px; color: var(--muted); margin-right: 4px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 12px var(--sw); border: 2px solid transparent; }
.swatch input:checked + span { border-color: #fff; }
.swatch input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.done__candle { display: grid; place-items: end center; min-height: 150px; }
.done__candle img { width: 110px; height: auto; animation: rise .8s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 0 26px rgba(var(--accent-rgb), .45)); }
.done__note { margin-top: 6px !important; font-size: 14px; color: var(--accent-2) !important; }

/* person dialog */
.modal--person { width: min(680px, calc(100% - 24px)); }
.pm { padding: 26px 20px 22px; }
@media (min-width: 560px) { .pm { padding: 30px 30px 26px; } }
.pm__head { display: flex; align-items: center; gap: 16px; padding-right: 34px; }
.pm__photo { flex: none; width: 84px; height: 96px; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--accent); background: #0d0906; display: grid; place-items: center; }
.pm__photo img { width: 100%; height: 100%; object-fit: cover; }
.pm__photo img.is-candle { width: 46px; height: auto; object-fit: contain; }
.pm h2 { font-family: var(--font-display); text-transform: var(--heading-case); font-size: 26px; line-height: 1.1; }
.pm__years { color: var(--accent-2); margin-top: 4px; font-size: 15px; }
.pm__count { color: var(--muted); font-size: 14px; margin-top: 2px; }
.pm__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 16px; }
.pm__actions .btn { flex: 1 1 auto; }
.pm .clist { max-height: none; }

/* music */
.modal--music { width: min(420px, calc(100% - 24px)); }
.music { padding: 28px 24px 24px; text-align: center; }
.music__candle { margin: 0 auto 10px; width: 54px; height: auto; filter: drop-shadow(0 0 18px rgba(var(--accent-rgb), .45)); }
.music h2 { font-family: var(--font-display); text-transform: var(--heading-case); font-size: 22px; line-height: 1.15; }
.music p { margin-top: 8px; color: rgba(var(--text-rgb), .82); font-size: 15px; }
.audioctl { display: flex; align-items: center; gap: 2px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), .35); background: rgba(var(--bg-rgb), .35); }
.audioctl__btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--accent-2); cursor: pointer; display: grid; place-items: center; }
.audioctl__btn .ic--off { display: none; }
.audioctl.is-muted .audioctl__btn .ic--on { display: none; }
.audioctl.is-muted .audioctl__btn .ic--off { display: block; color: var(--muted); }
.audioctl.is-playing .audioctl__btn { animation: glow-dot 3s ease-in-out infinite; }
.audioctl__vol { width: 0; opacity: 0; transition: width .25s, opacity .25s, margin .25s; accent-color: var(--accent); }
.audioctl:hover .audioctl__vol, .audioctl:focus-within .audioctl__vol { width: 96px; opacity: 1; margin-right: 10px; }
@media (hover: none) { .audioctl__vol { display: none; } }
.drift__ph { display: block; width: 34px; height: 34px; margin: 0 auto 4px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(var(--accent-rgb), .8); box-shadow: 0 0 14px rgba(0,0,0,.6); }

/* faces of the ofrenda */
.modal--faces { width: min(1100px, calc(100% - 24px)); }
.faces { padding: 28px 20px 24px; }
@media (min-width: 640px) { .faces { padding: 32px 32px 28px; } }
.faces__head { padding-right: 36px; margin-bottom: 18px; }
.faces__head h2 { font-family: var(--font-display); text-transform: var(--heading-case); font-size: 26px; line-height: 1.1; }
.faces__head p { margin-top: 6px; color: var(--muted); }
/* Pinterest-style: each photo keeps its own shape; campaign.js drops each card into the shortest column */
.faces__grid { display: flex; align-items: flex-start; gap: 14px; }
.faces__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.face { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 0 12px; background: rgba(var(--text-rgb), .03); border: 1px solid rgba(var(--accent-rgb), .2); border-radius: 10px; overflow: hidden; cursor: pointer; text-align: center; transition: border-color .2s, transform .2s; animation: face-in .35s ease-out; }
@keyframes face-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .face { animation: none; } }
.face:hover, .face:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.face__ph { display: block; width: 100%; min-height: 80px; background: #0d0906; margin-bottom: 8px; }
.face__ph img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; object-position: 50% 30%; }   /* very tall photos are trimmed, not stretched */
.face__name { font-size: 15.5px; font-weight: 500; color: var(--text); padding: 0 10px; line-height: 1.25; overflow-wrap: anywhere; }
.face__years { font-size: 13px; color: var(--muted); }
.face__count { font-size: 13px; color: var(--accent-2); margin-top: 2px; }
.ofrenda__find { min-width: 0; }
/* how many loved ones the search covers — or how many it found — right under the box */
.wall__total { min-height: 1.5em; margin: 8px 2px 0; font-size: 13px; line-height: 1.5; letter-spacing: .04em; color: var(--accent-2); text-align: right; }   /* space kept while it loads, so nothing jumps */
.faces__more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
.faces__err { color: var(--muted); font-size: 14px; text-align: center; }
.faces__foot { display: flex; justify-content: center; margin-top: 18px; }
