:root {
  --paper: #f5f0e6;
  --paper-2: #ece4d4;
  --card: #fbf8f1;
  --ink: #1d3828;
  --ink-2: #3f5446;
  --ink-3: #6f7d71;
  --sage: #8ea08f;
  --gold: #a7814a;
  --gold-2: #c6a66e;
  --line: rgba(29, 56, 40, .14);
  --shadow: 0 1px 2px rgba(29,56,40,.06), 0 8px 24px -8px rgba(29,56,40,.18);
  --shadow-lg: 0 2px 4px rgba(29,56,40,.06), 0 24px 60px -20px rgba(29,56,40,.35);
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --sans: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(198,166,110,.16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(142,160,143,.14), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
header, main, footer { position: relative; z-index: 1; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--ink); }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.only-coarse { display: none; }
@media (pointer: coarse) { .only-fine { display: none; } .only-coarse { display: inline; } }

/* ---------- decorative sprigs ---------- */
.sprigs { position: absolute; top: 0; left: 0; width: 100%; height: 420px; overflow: hidden; pointer-events: none; z-index: 0; }
.sprig { position: absolute; z-index: 0; color: var(--sage); pointer-events: none; }
.sprig svg { width: 100%; height: 100%; }
.sprig--tl { top: -30px; left: -18px; width: 150px; height: 340px; transform: rotate(168deg); opacity: .8; }
.sprig--tr { top: -40px; right: -10px; width: 130px; height: 300px; transform: rotate(-160deg) scaleX(-1); opacity: .65; }
@media (max-width: 760px) {
  .sprig--tl { width: 90px; height: 200px; top: -20px; left: -22px; }
  .sprig--tr { width: 80px; height: 180px; top: -26px; right: -18px; }
}

/* ---------- rule with heart ---------- */
.rule { display: flex; align-items: center; gap: 14px; color: var(--gold); max-width: 320px; }
.rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); }
.rule svg { width: 16px; height: 16px; flex: none; }

/* ---------- hero ---------- */
.hero {
  max-width: 1120px; margin: 0 auto; padding: clamp(56px, 9vw, 110px) 24px 40px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero__script {
  font-family: var(--script); font-size: clamp(30px, 4vw, 44px); color: var(--gold);
  margin: 0 0 -6px; line-height: 1.2;
  opacity: 0; animation: rise 1s var(--ease) .1s forwards;
}
.hero__name {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.01em;
  font-size: clamp(48px, 7.4vw, 92px); line-height: .98; margin: 0 0 22px; color: var(--ink);
  opacity: 0; animation: rise 1s var(--ease) .25s forwards;
}
.hero__nick { font-style: italic; color: var(--gold); font-weight: 400; white-space: nowrap; }
.hero .rule { opacity: 0; animation: rise 1s var(--ease) .4s forwards; }
.hero__dates {
  font-family: var(--serif); font-size: clamp(20px, 2.2vw, 24px); color: var(--ink-2);
  letter-spacing: .06em; margin: 14px 0 22px; font-variant-numeric: oldstyle-nums;
  opacity: 0; animation: rise 1s var(--ease) .5s forwards;
}
.hero__lede {
  max-width: 34em; color: var(--ink-2); margin: 0 0 30px; font-size: 18px;
  opacity: 0; animation: rise 1s var(--ease) .6s forwards;
}
.hero__lede strong { color: var(--ink); font-weight: 500; }
.hero__cta { opacity: 0; animation: rise 1s var(--ease) .7s forwards; }

.hero__photo { margin: 0; justify-self: center; position: relative; opacity: 0; animation: settle 1.4s var(--ease) .3s forwards; }
.print {
  background: #fffdf8; padding: 14px 14px 64px; border-radius: 4px; box-shadow: var(--shadow-lg);
  transform: rotate(2.2deg); max-width: 400px;
}
.print img { border-radius: 2px; aspect-ratio: 4/5; object-fit: cover; width: 100%; height: auto; filter: saturate(.92) contrast(1.02); }
.hero__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
  font-family: var(--script); font-size: 30px; color: var(--ink-2); transform: rotate(2.2deg);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(20px) rotate(-3deg); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 56px; padding-bottom: 24px; }
  .hero__photo { order: -1; }
  .print { max-width: 210px; padding: 9px 9px 40px; }
  .hero__photo figcaption { font-size: 22px; bottom: 6px; }
  .hero { gap: 26px; }
  .hero__dates { font-size: 18px; letter-spacing: .03em; margin: 12px 0 16px; }
  .hero__lede { margin-bottom: 24px; }
  .hero .rule { margin: 0 auto; }
  .hero__lede { margin-left: auto; margin-right: auto; font-size: 17px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 500; font-size: 16px; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); color: #f8f3e8; box-shadow: 0 6px 18px -6px rgba(29,56,40,.55); }
.btn--primary:hover { background: #24452f; box-shadow: 0 10px 26px -8px rgba(29,56,40,.6); transform: translateY(-1px); }
.btn--primary:disabled { opacity: .55; cursor: default; transform: none; }
.btn--ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn--dark { background: var(--ink); color: #f8f3e8; }
.btn--dark:hover { background: #24452f; }
.linklike { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-2); text-underline-offset: 3px; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- share card ---------- */
.share { max-width: 780px; margin: 0 auto; padding: 40px 20px 30px; scroll-margin-top: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(26px, 5vw, 48px); box-shadow: var(--shadow); text-align: center;
}
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 46px); line-height: 1.1; margin: 0 0 6px; }
.card__sub { color: var(--ink-3); margin: 0 0 28px; }
.card__sub strong { color: var(--ink); font-weight: 600; }
.share__note { text-align: center; color: var(--ink-3); font-size: 15px; margin: 18px 0 0; }

.drop {
  position: relative; border: 1.5px dashed rgba(167,129,74,.55); border-radius: 18px;
  padding: clamp(36px, 7vw, 60px) 20px; cursor: pointer; background: rgba(255,253,248,.7);
  transition: background .25s, border-color .25s, transform .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.drop:hover, .drop.is-over { background: #fffdf7; border-color: var(--gold); }
.drop.is-over { transform: scale(1.01); }
.drop__icon { width: 64px; height: 64px; margin: 0 auto 14px; color: var(--gold); display: grid; place-items: center; border-radius: 50%; background: rgba(198,166,110,.14); }
.drop__icon svg { width: 34px; height: 34px; }
.drop__title { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 0 0 4px; color: var(--ink); }
.drop__hint { color: var(--ink-3); font-size: 14px; margin: 0; letter-spacing: .02em; }
.drop__hint u { text-decoration-color: var(--gold-2); text-underline-offset: 3px; }

/* tray */
.tray { text-align: left; animation: rise .5s var(--ease); }
.tray__grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.row {
  display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center;
  background: #fffdf9; border: 1px solid var(--line); border-radius: 16px; padding: 8px 12px 8px 8px;
  animation: pop .4s var(--ease) both;
}
.row .tile { animation: none; border-radius: 10px; }
.row .tile__x { width: 24px; height: 24px; font-size: 16px; top: 4px; right: 4px; }
.row .tile__badge { left: 4px; bottom: 4px; }
.row .tile__warn { font-size: 9.5px; }
.row .tile__state svg { width: 36px; height: 36px; }
.row .tile.is-error .tile__state { font-size: 10.5px; }
.row__cap { position: relative; display: block; }
.row__input {
  width: 100%; font: italic 19px/1.3 var(--serif); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 10px 34px 10px 2px; outline: none; border-radius: 0;
  transition: border-color .2s;
}
.row__input:focus { border-bottom-color: var(--gold); }
.row__input::placeholder { color: #a3a99f; }
.row__input:disabled { opacity: .7; }
.row__count { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.row-add {
  width: 100%; min-height: 56px; border: 1.5px dashed rgba(167,129,74,.5); border-radius: 16px; background: transparent;
  color: var(--gold); cursor: pointer; font-size: 15px; font-weight: 500;
}
.row-add span { font-size: 20px; font-weight: 300; margin-right: 4px; }
.row-add em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.row-add:hover { background: rgba(255,253,248,.8); }
@media (max-width: 560px) { .row { grid-template-columns: 76px 1fr; gap: 12px; } .row__input { font-size: 18px; } }
.tile {
  position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--paper-2);
  box-shadow: 0 1px 2px rgba(0,0,0,.06); animation: pop .4s var(--ease) both;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile__ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--gold); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(135deg, #efe7d6, #e6dcc6); }
.tile__ph svg { width: 30px; height: 30px; }
.tile__spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(167,129,74,.25); border-top-color: var(--gold); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tile__badge {
  position: absolute; left: 6px; bottom: 6px; background: rgba(15,25,18,.7); color: #fff;
  font-size: 11px; padding: 2px 7px 2px 5px; border-radius: 99px; display: flex; align-items: center; gap: 3px;
}
.tile__badge svg { width: 12px; height: 12px; }
.tile__x {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: rgba(255,253,248,.92); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.tile__x::before { content: ""; position: absolute; inset: -8px; }
.tile__state { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(245,240,230,.55); backdrop-filter: blur(1px); transition: opacity .4s; }
.tile__state svg { width: 46px; height: 46px; }
.tile__state .ring-bg { stroke: rgba(29,56,40,.15); }
.tile__state .ring { stroke: var(--ink); transition: stroke-dashoffset .3s; }
.tile.is-done .tile__state { background: rgba(29,56,40,.35); }
.tile.is-done .tile__state svg { color: #fff; animation: pop .4s var(--ease); }
.tile.is-error .tile__state { background: rgba(120,30,20,.45); color: #fff; font-size: 12px; padding: 6px; text-align: center; }
.tile--add {
  border: 1.5px dashed rgba(167,129,74,.5); background: transparent; display: grid; place-items: center;
  color: var(--gold); cursor: pointer; font-size: 13px; text-align: center; line-height: 1.3;
}
.tile--add span { display: block; font-size: 28px; font-weight: 300; line-height: 1; margin-bottom: 4px; }
.tile--add:hover { background: rgba(255,253,248,.8); }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

.tray__count { color: var(--ink-3); font-size: 14px; margin: 12px 0 22px; text-align: center; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: .02em; }
.field__label em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #fffdf9;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; outline: none;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(198,166,110,.18); }
.field input.is-invalid { border-color: #b5523b; box-shadow: 0 0 0 4px rgba(181,82,59,.12); }
.field input::placeholder, .field textarea::placeholder { color: #a3a99f; }
.form__actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.form__actions .btn--primary { flex: 1; max-width: 320px; margin-left: auto; }
@media (max-width: 560px) { .form__actions { flex-direction: column-reverse; } .form__actions .btn--primary { max-width: none; margin: 0; } }

.progress { margin-top: 4px; }
.progress__bar { height: 6px; background: rgba(29,56,40,.1); border-radius: 99px; overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ink), #3c6b4e); border-radius: inherit; transition: width .3s var(--ease); }
.progress__label { text-align: center; color: var(--ink-3); font-size: 14px; margin: 10px 0 0; }

/* thanks */
.thanks { padding: 10px 0 4px; animation: rise .6s var(--ease); }
.thanks__heart { width: 34px; height: 34px; color: var(--gold); animation: beat 2.4s ease-in-out infinite; }
.thanks__title { font-family: var(--serif); font-weight: 500; font-size: 36px; margin: 6px 0 6px; }
.thanks__text { color: var(--ink-2); max-width: 30em; margin: 0 auto 24px; }
.thanks__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } }

/* ---------- wall ---------- */
.wall { max-width: 1240px; margin: 0 auto; padding: 60px 20px 40px; scroll-margin-top: 10px; }
.wall__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.wall__meta { margin: 0; color: var(--ink-3); display: flex; align-items: center; gap: 10px; font-size: 15px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #5d9a6c; box-shadow: 0 0 0 0 rgba(93,154,108,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(93,154,108,.55); } 70% { box-shadow: 0 0 0 9px rgba(93,154,108,0); } 100% { box-shadow: 0 0 0 0 rgba(93,154,108,0); } }
.wall__tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(29,56,40,.07); border: 1px solid var(--line); }
.seg__btn {
  display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--ink-3);
  font: 500 14px var(--sans); letter-spacing: .02em; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  transition: background .25s, color .25s, box-shadow .25s; -webkit-tap-highlight-color: transparent;
}
.seg__btn svg { width: 16px; height: 16px; }
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-on { background: #fffdf8; color: var(--ink); box-shadow: 0 1px 3px rgba(29,56,40,.15); }
@media (max-width: 560px) {
  .wall__head .btn { width: 100%; }
  .wall__tools { width: 100%; flex-direction: column-reverse; align-items: stretch; }
  .seg { width: 100%; } .seg__btn { flex: 1; justify-content: center; }
}

.wall__grid { columns: 4 250px; column-gap: 22px; }
.memory {
  break-inside: avoid; margin: 0 0 22px; background: #fffdf8; padding: 9px 9px 12px; border-radius: 4px;
  box-shadow: var(--shadow); cursor: zoom-in; position: relative; display: block; width: 100%;
  border: 0; text-align: left; font: inherit; color: inherit;
  transform: rotate(var(--tilt, 0deg)); transition: transform .35s var(--ease), box-shadow .35s;
}
.memory:hover, .memory:focus-visible { transform: rotate(0) translateY(-3px) scale(1.015); box-shadow: var(--shadow-lg); z-index: 2; }
.memory__img { position: relative; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.memory__img img { width: 100%; height: auto; opacity: 0; transition: opacity .6s; }
.memory__img img.is-loaded { opacity: 1; }
.memory__frame { width: 100%; height: auto; display: block; opacity: 0; transition: opacity .6s; pointer-events: none; }
.memory__frame.is-loaded { opacity: 1; }
.memory__ph--video {
  aspect-ratio: 4/5; background: radial-gradient(ellipse at 50% 40%, #2a4a36, #142219); color: #e9dfc8;
  align-items: end; padding: 0 12px 18px; font-size: 17px; text-align: center;
}
.tile__warn {
  position: absolute; left: 4px; right: 4px; top: 4px; background: rgba(167,129,74,.92); color: #fff;
  font-size: 10.5px; line-height: 1.25; padding: 3px 6px; border-radius: 6px; text-align: center;
}
.form.is-busy .form__actions { display: none; }
#send { gap: .3em; }
@media (max-width: 560px) {
  .form__actions .btn--ghost { border-color: transparent; min-height: 44px; font-size: 15px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
  .wall__head .btn { background: transparent; color: var(--ink); border-color: var(--line); }
}
.memory__ph { aspect-ratio: 4/5; display: grid; place-items: center; color: var(--ink-3); font-family: var(--serif); font-style: italic; }
.memory__play {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,253,248,.9); display: grid; place-items: center; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.memory__play svg { width: 22px; height: 22px; margin-left: 3px; }
.memory__cap { padding: 10px 4px 0; }
.memory__yours {
  position: absolute; top: 8px; left: 8px; background: rgba(255,253,248,.92); color: var(--ink);
  font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.lightbox__remove {
  display: inline-block; margin: 0 0 14px; background: none; border: 1px solid rgba(239,232,216,.25); color: #efe8d8;
  font: 500 13px var(--sans); letter-spacing: .04em; padding: 7px 14px; border-radius: 99px; cursor: pointer; opacity: .8;
}
.lightbox__remove:hover { opacity: 1; border-color: rgba(239,232,216,.5); }
.lightbox__remove.is-armed { background: #9b3b2a; border-color: #9b3b2a; opacity: 1; }
.lightbox__own { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.lightbox__own .lightbox__remove { margin: 0; }
.lbedit { display: grid; gap: 10px; width: min(560px, 86vw); margin: 0 auto; }
.lbedit__input {
  width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(239,232,216,.3); color: #efe8d8; border-radius: 10px;
  padding: 12px 14px; font: italic 20px/1.3 var(--serif); text-align: center; outline: none;
}
.lbedit__input:focus { border-color: var(--gold-2); background: rgba(255,255,255,.12); }
.lbedit__input::placeholder { color: rgba(239,232,216,.45); }
.lbedit__row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.lbedit__row .lightbox__remove { margin: 0; }
.lbedit__count { margin-right: auto; font: 13px var(--sans); color: rgba(239,232,216,.65); }
.lbedit__save { background: var(--gold-2); border-color: var(--gold-2); color: #1d3828; opacity: 1; }
.lbedit__save:hover { border-color: var(--gold-2); }
.memory__name { font-family: var(--script); font-size: 23px; color: var(--gold); line-height: 1.15; margin-top: 2px; }
.memory__msg {
  font-family: var(--serif); font-style: italic; font-size: 16.5px; color: var(--ink-2); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.memory.is-new { animation: arrive 1.2s var(--ease) both; }
.memory.is-new::after {
  content: ""; position: absolute; inset: -3px; border-radius: 6px; pointer-events: none;
  box-shadow: 0 0 0 2px var(--gold-2), 0 0 30px 4px rgba(198,166,110,.55); animation: glow 4s ease-out forwards;
}
@keyframes arrive { from { opacity: 0; transform: translateY(-30px) scale(1.06) rotate(calc(var(--tilt, 0deg) * -3)); filter: blur(6px); } to { opacity: 1; transform: rotate(var(--tilt, 0deg)); filter: none; } }
@keyframes glow { 0%, 40% { opacity: 1; } 100% { opacity: 0; } }

.wall__empty { text-align: center; padding: 40px 20px 60px; color: var(--ink-3); font-family: var(--serif); font-size: 22px; font-style: italic; }
.wall__empty .btn { font-style: normal; margin-top: 8px; }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 40px 20px 60px; color: var(--ink-3); font-size: 15px; }
.foot .rule { margin: 0 auto 20px; }
.foot p { margin: 4px 0; }
.foot__small { font-family: var(--script); font-size: 24px; color: var(--gold); margin-top: 10px !important; }

/* ---------- drag cover ---------- */
.dragcover {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; pointer-events: none;
  background: rgba(245,240,230,.86); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s;
}
.dragcover { visibility: hidden; }
.dragcover.is-on { opacity: 1; visibility: visible; }
.dragcover__inner { text-align: center; border: 2px dashed var(--gold); border-radius: 28px; padding: 60px clamp(24px, 6vw, 80px); max-width: calc(100vw - 40px); transform: scale(.96); transition: transform .3s var(--ease); }
.dragcover.is-on .dragcover__inner { transform: none; }
.dragcover svg { width: 42px; height: 42px; color: var(--gold); }
.dragcover p { font-family: var(--serif); font-size: 36px; margin: 10px 0 0; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60; background: rgba(12,20,15,.985); display: flex; align-items: center; justify-content: center;
  animation: fade .3s; padding: 20px;
}
@keyframes fade { from { opacity: 0; } }
.lightbox__fig { margin: 0; width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.lightbox__media { width: 100%; display: flex; justify-content: center; min-width: 0; }
.lightbox__media img, .lightbox__media video { width: auto; height: auto; object-fit: contain; }
.lightbox__media img, .lightbox__media video { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__cap { color: #efe8d8; text-align: center; margin-top: 18px; max-width: 40em; }
.lightbox__cap .n { font-family: var(--script); font-size: 30px; color: var(--gold-2); }
.lightbox__cap .m { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.35; margin-bottom: 2px; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.08); border: 0; color: #efe8d8; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; display: grid; place-items: center;
  transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.18); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox__nav { top: auto; bottom: 16px; transform: none; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #f6f0e2; padding: 12px 20px; border-radius: 999px; font-size: 15px;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); transition: opacity .3s, transform .3s var(--ease);
  pointer-events: none; max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
