/* =========================================================================
   /memories · the experience itself.
   Compact sticky header → the Memory Floor → videos → messages → add → share.
   The visitor already came through the front door, so no second introduction.
   ========================================================================= */
:root {
  --tb-h: 68px;
  --gold-line: rgba(215, 178, 95, 0.3);
  --floor-ink: #0b0b0c;
}
body { background: #080808; }

/* ---------- Compact sticky header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60; height: var(--tb-h);
  background: rgba(5, 5, 5, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-line);
}
.topbar-inner {
  max-width: 1440px; height: 100%; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.tb-brand { display: flex; align-items: baseline; gap: 0.28em; text-decoration: none; white-space: nowrap; }
.tb-word {
  font-family: "Cinzel", Georgia, serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  font-size: clamp(14px, 1.35vw, 20px);
  background: linear-gradient(180deg, #fff6d8 0%, #f0d799 34%, #c9a24a 60%, #f6e5ae 82%, #b8862a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tb-script { font-family: "Great Vibes", cursive; font-size: clamp(12px, 1vw, 15px); color: #e9edf2; }
.tb-nav { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.8rem); }
.tb-nav a {
  font-family: var(--font-ui, "Manrope", system-ui, sans-serif); font-weight: 700; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: #e8eaee; text-decoration: none; padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.tb-nav a:hover { color: #f3e0a8; border-bottom-color: #f3e0a8; }
.tb-add {
  font-family: var(--font-ui, "Manrope", system-ui, sans-serif); font-weight: 800; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #171308; cursor: pointer; white-space: nowrap;
  padding: 11px 18px; border: 0; border-radius: 22px;
  background: linear-gradient(180deg, #fff6d2 0%, #f5dd95 30%, #e3c164 55%, #caa23f 78%, #f1d78f 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.tb-add:hover { filter: brightness(1.06); }
.tb-add-short { display: none; }

/* ---------- The floor opens straight away ---------- */
.floor-open {
  max-width: 1440px; margin: 0 auto; padding: clamp(1.6rem, 3vh, 2.4rem) 1.25rem clamp(1rem, 2vh, 1.4rem);
  text-align: center; max-height: 180px;
}
.fo-kicker { margin: 0; font-family: "Cinzel", Georgia, serif; font-weight: 600; font-size: 12px; letter-spacing: 0.34em; margin-right: -0.34em; text-transform: uppercase; color: #f3e0a8; }
.fo-title {
  margin: 6px 0 0; font-family: "Cinzel", Georgia, serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(28px, 4vw, 54px); line-height: 1.05; letter-spacing: 0.05em; margin-right: -0.05em;
  background: linear-gradient(180deg, #ffffff 0%, #e6ebf2 34%, #aab4c2 62%, #f2f5f9 84%, #97a2b1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fo-count { margin: 10px 0 0; font-weight: 800; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #f3e0a8; }
.fo-hint { margin: 6px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.62); }

/* ---------- The Memory Floor ---------- */
.floor-rows {
  padding: 0 0 clamp(2rem, 5vh, 3.5rem);
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(215, 178, 95, 0.07), transparent 70%),
    linear-gradient(180deg, #080808 0%, #111111 50%, #0b0b0c 100%);
}
.frow {
  display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; cursor: grab;
}
.frow::-webkit-scrollbar { display: none; }
.frow:active { cursor: grabbing; }
.fstrip { display: flex; gap: 10px; padding: 5px clamp(0.5rem, 1vw, 1rem); }
.ftile {
  flex: none; height: clamp(150px, 19vw, 240px); min-width: 90px; padding: 0; border: 0; background: #16161a; cursor: pointer;
  border-radius: 3px; overflow: hidden; line-height: 0;
  box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.28), 0 10px 26px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s cubic-bezier(.2, .7, .2, 1), box-shadow 0.3s, filter 0.3s;
}
.ftile img { height: 100%; width: 100%; object-fit: cover; max-width: none; display: block; filter: saturate(0.96) brightness(0.94); transition: filter 0.3s; }
@media (hover: hover) and (pointer: fine) {
  .ftile:hover, .ftile:focus-visible {
    transform: translateY(-4px) scale(1.06); z-index: 2;
    box-shadow: 0 0 0 2px #f3e0a8, 0 0 0 4px rgba(226, 232, 240, 0.35), 0 18px 40px rgba(0, 0, 0, 0.6);
  }
  .ftile:hover img { filter: saturate(1.06) brightness(1.06); }
}

/* ---------- The sections below ---------- */
main { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem); }
.stack { padding: clamp(2rem, 5vh, 3.4rem) 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.stack-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.stack h2 {
  margin: 0; font-family: "Cinzel", Georgia, serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(20px, 2.2vw, 30px); letter-spacing: 0.08em; color: #f2f4f7;
}
.stack .hint { color: rgba(255, 255, 255, 0.6); }
.add-cta { text-align: center; }
.add-cta p { color: rgba(255, 255, 255, 0.78); margin: 0.6rem 0 1.4rem; }
.add-cta .btn { margin: 0 0.4rem 0.6rem; }
.help-line { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem) 2rem; color: rgba(255, 255, 255, 0.45); font-size: 13px; text-align: center; }

/* ---------- The upload drawer sits over the floor, not beside it ---------- */
#uploader::backdrop, dialog::backdrop { background: rgba(3, 3, 4, 0.72); backdrop-filter: blur(6px); }
#uploader {
  margin: auto; inset: 0;                 /* centred over the floor, not pinned to a corner */
  width: 580px; max-width: 92vw; max-height: 88vh; padding: 0; border: 1px solid var(--gold-line);
  border-radius: 14px; overflow: hidden; background: #0e0e10;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
#uploader .sheet { max-height: 88vh; overflow-y: auto; padding: clamp(1.2rem, 3vw, 2rem); }
.file-limit { margin: 0.6rem 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.up-details { margin-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 0.7rem; }
.up-details > summary { cursor: pointer; font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(243, 224, 168, 0.85); }
.up-details > summary::marker { color: rgba(243, 224, 168, 0.6); }
.up-details .phone-tip, .up-details .drop-hint { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.up-details .check { display: block; margin-top: 0.6rem; font-size: 13px; color: rgba(255, 255, 255, 0.75); }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  .tb-nav { gap: 1rem; }
  .tb-nav a { font-size: 11px; letter-spacing: 0.12em; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  :root { --tb-h: 60px; }
  .topbar-inner { padding: 0 14px; }
  .tb-word { font-size: 13px; }
  .tb-script { font-size: 11px; }
  .tb-nav a { display: none; }                    /* the sections are one scroll away; the action stays */
  .tb-add { font-size: 11px; padding: 9px 13px; letter-spacing: 0.08em; }
  .tb-add-full { display: none; }
  .tb-add-short { display: inline; }
  .tb-brand { min-width: 0; overflow: hidden; }
  .floor-open { padding: 1.1rem 1rem 0.8rem; max-height: 150px; }
  .fo-kicker { font-size: 10px; letter-spacing: 0.26em; margin-right: -0.26em; }
  .fo-title { font-size: 26px; }
  .fo-count { font-size: 10.5px; margin-top: 8px; }
  .fo-hint { font-size: 12px; }
  .ftile { height: 128px; }
  .fstrip { gap: 8px; }
  #uploader { width: 100%; max-width: 100%; max-height: 100svh; height: 100svh; border-radius: 0; border: 0; }
  #uploader .sheet { max-height: 100svh; padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ftile { transition: none; }
}

/* ---------- Atmosphere: motion that never competes with the photographs ---------- */
.floor-open { position: relative; overflow: hidden; }
.atmos {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity 2s ease; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 40%, transparent 78%);
  mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 40%, transparent 78%);
}
.atmos.is-playing { opacity: 0.38; }
.thanks-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.9s ease; mix-blend-mode: screen; border-radius: 12px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 92%);
}
.thanks-bg.is-on { opacity: 0.5; }
#upDone { position: relative; }
#upDone > *:not(.thanks-bg) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .atmos, .thanks-bg { display: none; } }

/* =========================================================================
   Revision 12 · built to the approved layout: gold floor title with the script
   accent, an outlined action in the header, the two-column closing under a gold
   ribbon, and a centred footer. Champagne gold, soft cream, restrained silver.
   ========================================================================= */
body { font-size: 16px; }

/* ---------- Header ---------- */
.tb-brand { flex-direction: column; align-items: flex-start; gap: 2px; }
.tb-title { display: flex; align-items: baseline; gap: 0.28em; }
.tb-event {
  font-family: var(--font-ui, "Manrope", system-ui, sans-serif); font-weight: 700; font-size: 9.5px;
  letter-spacing: 0.2em; margin-right: -0.2em; text-transform: uppercase; color: rgba(243, 224, 168, 0.85);
}
.tb-nav a { font-size: 13px; }
.tb-nav a:first-of-type { color: #fff; border-bottom-color: #d7b25f; }   /* you are on the photos */
.tb-add {                                  /* outlined, so it does not fight the filled action further down */
  background: transparent; color: #f6efdc; border: 1px solid rgba(215, 178, 95, 0.75);
  box-shadow: none; padding: 13px 22px; min-height: 52px; font-size: 13px;
}
.tb-add:hover { background: rgba(215, 178, 95, 0.14); filter: none; }
.tb-menu { display: none; }

/* ---------- Floor title in gold, with the script line beside it ---------- */
.fo-title {
  background: linear-gradient(180deg, #fff6d8 0%, #f3e0a8 30%, #d7b25f 58%, #f6e5ae 80%, #c39a3c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(215, 178, 95, 0.25));
}
.fo-count { color: #f3e0a8; letter-spacing: 0.24em; margin-right: -0.24em; }
.fo-hint { font-size: 12.5px; letter-spacing: 0.14em; margin-right: -0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.fo-script {
  position: absolute; right: clamp(1rem, 4vw, 4rem); bottom: 14px; margin: 0; text-align: center;
  font-family: "Great Vibes", cursive; font-size: clamp(18px, 2vw, 30px); line-height: 1.05; color: #e8c879;
  opacity: 0.85; pointer-events: none;
}
.fo-script span { display: block; margin-left: 1.2em; }

/* ---------- The photographs keep their own light ---------- */
.ftile img { filter: none; }
@media (hover: hover) and (pointer: fine) { .ftile:hover img { filter: brightness(1.04); } }

/* ---------- Closing: two columns under a gold ribbon ---------- */
.closing { position: relative; overflow: hidden; border-top: 0; padding-top: clamp(3rem, 7vh, 5rem); }
.closing-glow { position: absolute; inset: 0; pointer-events: none; }
.ribbon { position: absolute; top: 0; left: -2%; width: 104%; height: clamp(90px, 12vw, 180px); opacity: 0.85; }
.closing-60 {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  font-family: "Cinzel", Georgia, serif; font-weight: 700; font-size: clamp(180px, 26vw, 420px); line-height: 1;
  color: rgba(215, 178, 95, 0.05); letter-spacing: -0.02em;
}
.closing-grid {
  position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1px 1fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: start;
}
.closing-col:not(.share-col) { grid-column: 1; grid-row: 1; }
.share-col { grid-column: 3; grid-row: 1; }
.closing-grid::before {
  content: ""; grid-column: 2; grid-row: 1; width: 1px; height: 100%; justify-self: center;
  background: linear-gradient(180deg, transparent, rgba(215, 178, 95, 0.35) 18%, rgba(215, 178, 95, 0.35) 82%, transparent);
}
.closing-col { text-align: center; display: grid; justify-items: center; }
.col-eyebrow { margin: 0; font-family: "Cinzel", Georgia, serif; font-weight: 600; font-size: 15px; letter-spacing: 0.34em; margin-right: -0.34em; text-transform: uppercase; color: #efe3c6; }
.col-title {
  margin: 6px 0 0; font-family: "Cinzel", Georgia, serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 3.6vw, 50px); line-height: 1.06; letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff6d8 0%, #f3e0a8 32%, #d7b25f 62%, #f6e5ae 84%, #c39a3c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.col-title::after { content: ""; display: block; width: 90px; height: 1px; margin: 18px auto 0; background: linear-gradient(90deg, transparent, #d7b25f, transparent); }
.col-copy { margin: 18px 0 26px; max-width: 30rem; font-size: 17px; line-height: 1.55; color: #e9e6df; }
.col-btn {
  min-height: 58px; padding: 0 34px; border-radius: 29px; border: 0; cursor: pointer;
  font-family: var(--font-ui, "Manrope", system-ui, sans-serif); font-weight: 800; font-size: 16px;
  letter-spacing: 0.12em; text-transform: uppercase; color: #171308;
  background: linear-gradient(180deg, #fff6d2 0%, #f5dd95 28%, #e3c164 52%, #caa23f 72%, #f1d78f 100%);
  box-shadow: 0 0 26px rgba(215, 178, 95, 0.28), 0 14px 30px rgba(0, 0, 0, 0.5);
}
.col-btn:hover { filter: brightness(1.05); }
.share-col .col-btn { background: transparent; color: #f6efdc; border: 1px solid rgba(215, 178, 95, 0.8); box-shadow: none; }
.share-col .col-btn:hover { background: rgba(215, 178, 95, 0.14); }
.col-link {
  margin-top: 18px; background: none; border: 0; cursor: pointer; padding: 6px 2px;
  font-family: var(--font-ui, "Manrope", system-ui, sans-serif); font-size: 16px; color: #f3e0a8;
  border-bottom: 1px solid rgba(243, 224, 168, 0.5);
}
.col-link:hover { color: #fff6d8; border-bottom-color: #fff6d8; }
.col-tags { margin: 22px 0 0; font-size: 14px; letter-spacing: 0.04em; color: rgba(243, 224, 168, 0.85); }
.col-tags span { margin: 0 0.5em; }
.closing .copied { margin: 10px 0 0; font-size: 15px; color: #f3e0a8; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-foot {
  border-top: 1px solid rgba(215, 178, 95, 0.18); padding: 22px 1.25rem; text-align: center;
  display: grid; justify-items: center; gap: 4px; background: #060606;
}
.foot-name { margin: 0; font-family: "Cinzel", Georgia, serif; font-weight: 600; font-size: 16px; letter-spacing: 0.22em; margin-right: -0.22em; text-transform: uppercase; color: #f4f2ee; }
.foot-sub { margin: 0; font-weight: 700; font-size: 12px; letter-spacing: 0.24em; margin-right: -0.24em; text-transform: uppercase; color: rgba(243, 224, 168, 0.9); }
.foot-line { margin: 10px 0 0; font-size: 11.5px; letter-spacing: 0.22em; margin-right: -0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); }
.foot-line::before { content: ""; display: block; width: 70px; height: 1px; margin: 0 auto 10px; background: linear-gradient(90deg, transparent, rgba(215, 178, 95, 0.55), transparent); }
.foot-links { margin: 12px 0 0; display: flex; gap: 0.9rem; align-items: center; font-size: 14px; }
.foot-links a { color: rgba(255, 255, 255, 0.72); }
.foot-links a:hover { color: #f3e0a8; }
.foot-links span { color: rgba(215, 178, 95, 0.6); }

/* ---------- Buttons everywhere keep an easy target ---------- */
.stack .btn { min-height: 52px; font-size: 16px; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .tb-event { font-size: 8px; letter-spacing: 0.14em; margin-right: -0.14em; }
  .tb-add { padding: 10px 14px; min-height: 44px; font-size: 11px; }
  .tb-menu {
    display: inline-block; background: transparent; border: 1px solid rgba(215, 178, 95, 0.6); color: #f6efdc;
    border-radius: 18px; padding: 9px 13px; font-weight: 800; font-size: 11px; letter-spacing: 0.12em;
    text-transform: uppercase; cursor: pointer;
  }
  .tb-drop {
    position: absolute; top: 100%; left: 0; right: 0; background: #0b0b0b; border-bottom: 1px solid rgba(215, 178, 95, 0.3);
    display: grid; padding: 6px 14px 12px; z-index: 61;
  }
  .tb-drop a { padding: 14px 2px; font-size: 16px; color: #f2f3f5; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .fo-script { display: none; }
  .closing-grid { grid-template-columns: 1fr; gap: 3rem; }
  .closing-col:not(.share-col), .share-col { grid-column: 1; grid-row: auto; }
  .closing-grid::before { display: none; }
  .col-eyebrow { font-size: 13px; letter-spacing: 0.26em; margin-right: -0.26em; }
  .col-title { font-size: 30px; }
  .col-copy { font-size: 16px; margin: 16px 0 24px; }
  .col-btn { width: 100%; max-width: 330px; min-height: 56px; font-size: 15px; padding: 0 18px; }
  .closing-60 { font-size: 220px; top: 48%; }
  .site-foot { padding: 20px 1rem; }
}

/* ---------- Tablet: the same compact header as phones, so nothing runs off the edge ---------- */
@media (min-width: 768px) and (max-width: 900px) {
  .tb-nav a { display: none; }
  .tb-menu {
    display: inline-block; background: transparent; border: 1px solid rgba(215, 178, 95, 0.6); color: #f6efdc;
    border-radius: 18px; padding: 10px 15px; font-weight: 800; font-size: 12px; letter-spacing: 0.12em;
    text-transform: uppercase; cursor: pointer;
  }
  .tb-drop {
    position: absolute; top: 100%; left: 0; right: 0; background: #0b0b0b; z-index: 61;
    border-bottom: 1px solid rgba(215, 178, 95, 0.3); display: grid; padding: 6px 18px 14px;
  }
  .tb-drop a { padding: 14px 2px; font-size: 16px; color: #f2f3f5; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .tb-add { padding: 11px 16px; font-size: 12px; }
}

/* =========================================================================
   Revision 13 · brushed metal, and motion that stays out of the way.
   - THE MEMORY FLOOR and the header action are brushed silver
   - the header action turns brushed gold on hover and while pressed
   - falling gold lights drift behind the whole page at low opacity
   - the drifting embers live behind "Your Moment Belongs Here"
   ========================================================================= */

/* ---------- Brushed silver: fine vertical grain over cool metal ---------- */
.fo-title {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, rgba(0, 0, 0, 0.07) 2px 3px, rgba(255, 255, 255, 0) 3px 6px),
    linear-gradient(180deg, #ffffff 0%, #e3e8ee 20%, #a8b1bb 46%, #f4f7fa 60%, #bcc4cd 76%, #8b939d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(226, 232, 240, 0.25)) drop-shadow(0 3px 12px rgba(0, 0, 0, 0.8));
}

/* ---------- Header action: brushed silver, gold when you reach for it ---------- */
.tb-add {
  color: #0d0d0f; border: 1px solid rgba(255, 255, 255, 0.55); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 2px, rgba(0, 0, 0, 0.06) 2px 3px, rgba(255, 255, 255, 0) 3px 6px),
    linear-gradient(180deg, #fdfefe 0%, #e2e7ec 28%, #b2bac3 54%, #eef2f6 74%, #9ea6b0 100%);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.tb-add:hover, .tb-add:focus-visible, .tb-add:active {
  color: #171308; border-color: rgba(255, 246, 210, 0.75); filter: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, rgba(0, 0, 0, 0.06) 2px 3px, rgba(255, 255, 255, 0) 3px 6px),
    linear-gradient(180deg, #fff6d2 0%, #f5dd95 28%, #e3c164 54%, #caa23f 74%, #f1d78f 100%);
  box-shadow: 0 0 22px rgba(215, 178, 95, 0.4), 0 6px 16px rgba(0, 0, 0, 0.45);
}

/* ---------- Falling lights behind the whole page ---------- */
.page-atmos {
  position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none;
  opacity: 0; transition: opacity 2.4s ease;
}
.page-atmos.is-playing { opacity: 0.12; }
body { background: #060606; }
.floor-rows { position: relative; }      /* the photographs keep their own solid floor */

/* ---------- Embers behind the closing section ---------- */
.closing .atmos {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 2s ease; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 80% 78% at 50% 50%, #000 45%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 78% at 50% 50%, #000 45%, transparent 85%);
}
.closing .atmos.is-playing { opacity: 0.16; }
.closing::after {                         /* a dark wash over the motion, so the words stay first */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(6, 6, 6, 0.55), rgba(6, 6, 6, 0.8) 75%);
}
.closing-glow, .closing-grid { z-index: 1; }

@media (prefers-reduced-motion: reduce) { .page-atmos, .closing .atmos { display: none; } }

/* =========================================================================
   Revision 14 · one button family, and the closing section on moving gold.
   Primary   · brushed champagne gold fill, black text
   Secondary · dark fill, brushed gold outline, cream text
   Pressed   · both fall to soft brushed silver with black text
   Tertiary  · text links with a thin gold rule, never a box
   ========================================================================= */
:root {
  --btn-radius: 30px;
  --btn-h: 58px;
  --brush-gold:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, rgba(0, 0, 0, 0.05) 2px 3px, rgba(255, 255, 255, 0) 3px 6px),
    linear-gradient(180deg, #fff6d2 0%, #f5dd95 28%, #e3c164 54%, #caa23f 74%, #f1d78f 100%);
  --brush-gold-bright:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 2px, rgba(0, 0, 0, 0.04) 2px 3px, rgba(255, 255, 255, 0) 3px 6px),
    linear-gradient(180deg, #fffbe6 0%, #fbe9ae 28%, #eccd78 54%, #d8b154 74%, #ffeaa9 100%);
  --brush-silver:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 2px, rgba(0, 0, 0, 0.06) 2px 3px, rgba(255, 255, 255, 0) 3px 6px),
    linear-gradient(180deg, #fdfefe 0%, #e2e7ec 28%, #b2bac3 54%, #eef2f6 74%, #9ea6b0 100%);
}

/* ---------- Primary ---------- */
.col-btn, .tb-add, .btn.btn-gold {
  min-height: var(--btn-h); border-radius: var(--btn-radius); padding: 0 34px; border: 1px solid rgba(160, 122, 40, 0.55);
  font-family: var(--font-ui, "Manrope", system-ui, sans-serif); font-weight: 800; font-size: 16px;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; color: #171308;
  background: var(--brush-gold);
  box-shadow: 0 0 22px rgba(215, 178, 95, 0.25), 0 12px 26px rgba(0, 0, 0, 0.5);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.col-btn:hover, .btn.btn-gold:hover {
  background: var(--brush-gold-bright); transform: translateY(-1px); filter: none;
  box-shadow: 0 0 30px rgba(215, 178, 95, 0.4), 0 14px 30px rgba(0, 0, 0, 0.5);
}
.col-btn:active, .tb-add:active, .btn.btn-gold:active {
  background: var(--brush-silver); color: #0d0d0f; transform: translateY(0);
  box-shadow: 0 0 16px rgba(226, 232, 240, 0.3), 0 8px 18px rgba(0, 0, 0, 0.5);
}

/* ---------- Secondary: the header action, and the outlined buttons ---------- */
.tb-add, .btn.btn-line {
  background: rgba(10, 10, 11, 0.55); color: #f6efdc; border: 1px solid rgba(215, 178, 95, 0.75); box-shadow: none;
}
.tb-add { min-height: 52px; padding: 0 22px; font-size: 13px; letter-spacing: 0.14em; }
.tb-add:hover, .btn.btn-line:hover {
  background: rgba(215, 178, 95, 0.16); border-color: rgba(243, 224, 168, 0.95); color: #fff6d8;
}
.btn.btn-line:active { background: var(--brush-silver); color: #0d0d0f; border-color: rgba(255, 255, 255, 0.6); }

/* ---------- Tertiary: words, not boxes ---------- */
.col-link, .foot-links a, .stack-head .btn.btn-line {
  font-size: 16px; letter-spacing: 0.02em; text-transform: none;
}
.stack-head .btn.btn-line {
  background: none; border: 0; border-bottom: 1px solid rgba(243, 224, 168, 0.5); border-radius: 0;
  padding: 6px 2px; min-height: 0; color: #f3e0a8; font-weight: 700;
}
.stack-head .btn.btn-line:hover { background: none; color: #fff6d8; border-bottom-color: #fff6d8; }

/* ---------- The closing section: moving gold behind two dark panels ---------- */
.closing { padding: clamp(3rem, 7vh, 5rem) 0 clamp(2.4rem, 5vh, 3.4rem); }
.closing-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 2s ease;
}
.closing-bg.is-playing { opacity: 0.55; }
.closing-wash {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(4, 4, 5, 0.45), rgba(4, 4, 5, 0.72) 70%),
    linear-gradient(180deg, rgba(4, 4, 5, 0.9) 0, rgba(4, 4, 5, 0.35) 22%, rgba(4, 4, 5, 0.35) 78%, rgba(4, 4, 5, 0.9) 100%);
}
.closing::after { display: none; }                 /* the wash replaces the old overlay */
.closing-grid { z-index: 2; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.closing-grid::before { display: none; }           /* the panels carry the gold now, not a divider */
.closing-col:not(.share-col) { grid-column: 1; }
.share-col { grid-column: 2; }
.closing-col {
  background: rgba(6, 6, 7, 0.62); border: 1px solid rgba(215, 178, 95, 0.55); border-radius: 4px;
  padding: clamp(1.8rem, 3.4vw, 3rem) clamp(1.2rem, 2.5vw, 2.4rem);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}
.col-title { color: #fff; background: none; -webkit-background-clip: border-box; background-clip: border-box; }
.col-eyebrow { color: #f0e6cd; }
.col-copy { color: #ece9e2; }
.col-tags { color: rgba(243, 224, 168, 0.9); }

@media (prefers-reduced-motion: reduce) { .closing-bg { display: none; } }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .closing-grid { grid-template-columns: 1fr; }
  .closing-col:not(.share-col), .share-col { grid-column: 1; }
  .closing-col { padding: 1.8rem 1.2rem; }
  .col-btn { width: 100%; max-width: 330px; min-height: 56px; font-size: 15px; padding: 0 16px; }
  .tb-add { min-height: 44px; padding: 0 14px; font-size: 11px; }
}

/* Both closing actions are primary: same gold fill, same black letters */
.share-col .col-btn {
  background: var(--brush-gold); color: #171308; border: 1px solid rgba(160, 122, 40, 0.55);
  box-shadow: 0 0 22px rgba(215, 178, 95, 0.25), 0 12px 26px rgba(0, 0, 0, 0.5);
}
.share-col .col-btn:hover { background: var(--brush-gold-bright); color: #171308; }
.share-col .col-btn:active { background: var(--brush-silver); color: #0d0d0f; }

/* Let the gold read through: the wash only needs to protect the words */
.closing-bg.is-playing { opacity: 0.7; }
.closing-wash {
  background:
    radial-gradient(ellipse 78% 66% at 50% 50%, rgba(4, 4, 5, 0.3), rgba(4, 4, 5, 0.6) 72%),
    linear-gradient(180deg, rgba(4, 4, 5, 0.92) 0, rgba(4, 4, 5, 0.2) 20%, rgba(4, 4, 5, 0.2) 80%, rgba(4, 4, 5, 0.92) 100%);
}

/* =========================================================================
   Revision 15 · the photographs are the motion on this page.
   The page-wide dotted layer is gone, and the only other movement is a faint
   gold drift kept inside the two closing panels.
   ========================================================================= */
.page-atmos, .closing-bg, .closing-wash { display: none !important; }

.closing-col { position: relative; overflow: hidden; background: #07070a; backdrop-filter: none; }
.panel-motion {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.8s ease;
}
.panel-motion.is-playing { opacity: 0.16; }
.closing-col::before {                 /* the overlay that keeps the words first */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 85% 80% at 50% 45%, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.82) 80%);
}
.closing-col > *:not(.panel-motion) { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .panel-motion { display: none; } }

/* Anchored sections stop clear of the sticky header instead of sliding under it */
#floor, #videos, #messages, #allphotos, .closing { scroll-margin-top: calc(var(--tb-h) + 14px); }

/* Who shared what: a plain row of names, so one guest's photos can be seen on their own */
.who-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.who-filter .who {
  font-family: var(--font-ui, "Manrope", system-ui, sans-serif); font-weight: 700; font-size: 14px;
  color: #e8eaee; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(215, 178, 95, 0.35);
  border-radius: 999px; padding: 9px 16px; min-height: 40px; cursor: pointer;
}
.who-filter .who:hover { border-color: rgba(243, 224, 168, 0.8); color: #fff6d8; }
.who-filter .who.on { background: rgba(215, 178, 95, 0.18); border-color: #d7b25f; color: #fff6d8; }
#vPlay { white-space: nowrap; }

/* The header action is the one primary button on the page: solid brushed gold */
.tb-add {
  background: var(--brush-gold); color: #171308; border: 1px solid rgba(160, 122, 40, 0.55);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.tb-add:hover, .tb-add:focus-visible { background: var(--brush-gold-bright); color: #171308; }
.tb-add:active { background: var(--brush-silver); color: #0d0d0f; }
/* the gallery link in the section head reads as a button, not a bare word */
#showAll { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 26px;
  border: 1px solid rgba(215, 178, 95, 0.7); background: rgba(10, 10, 11, 0.6); color: #f1ede4;
  font-weight: 800; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
#showAll:hover { background: rgba(215, 178, 95, 0.16); color: #fff6d8; }

[hidden] { display: none !important; }        /* the menu really is closed until it is opened */

/* =========================================================================
   Buttons · smooth gold, squared corners, smaller footprint
   ========================================================================= */
:root {
  --btn-radius: 7px;
  --btn-h: 48px;
  --brush-gold: linear-gradient(180deg, #fbeab4 0%, #efd694 30%, #dcbb66 55%, #cfa94f 78%, #e8cd85 100%);
  --brush-gold-bright: linear-gradient(180deg, #fff6d8 0%, #f7e3ab 30%, #ebcc7c 55%, #dcb95f 78%, #f6e2a4 100%);
  --brush-silver: linear-gradient(180deg, #f7f9fb 0%, #e4e9ee 30%, #c3cad2 55%, #d9e0e7 78%, #eef2f6 100%);
}
.tb-add, .col-btn, .btn.btn-gold, .btn.btn-line, .g-chip, .g-load, .gv-full, .g-full-back, #showAll, .cta-primary {
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-h) !important;
  font-size: 13.5px !important;
  letter-spacing: 0.1em !important;
  padding-left: 22px !important; padding-right: 22px !important;
}
.tb-add, .col-btn, .btn.btn-gold, .gv-full, .cta-primary {
  background: var(--brush-gold) !important;
  color: #171308 !important;
  border: 1px solid rgba(150, 115, 40, 0.5) !important;
  box-shadow: 0 1px 0 rgba(255, 250, 225, 0.55) inset, 0 8px 20px rgba(0, 0, 0, 0.45) !important;
}
.tb-add:hover, .col-btn:hover, .btn.btn-gold:hover, .gv-full:hover, .cta-primary:hover {
  background: var(--brush-gold-bright) !important;
}
.tb-add:active, .col-btn:active, .btn.btn-gold:active, .gv-full:active, .cta-primary:active {
  background: var(--brush-silver) !important; color: #0d0d0f !important;
}
.g-chip.on { background: var(--brush-gold) !important; color: #171308 !important; }
.g-chip:active, .btn.btn-line:active, .g-load:active, .g-full-back:active {
  background: var(--brush-silver) !important; color: #0d0d0f !important;
}

.col-btn { padding: 0 26px !important; }
.col-link { font-size: 15px; }
.tb-add { min-height: 42px !important; font-size: 12px !important; padding-left: 16px !important; padding-right: 16px !important; }

/* =========================================================================
   Two views of one page. The Memory Floor is what people land on; the Full
   Gallery is one tap away and never leaves the page, so the upload box,
   the header and the footer are the same in both.
   ========================================================================= */
#galleryView { display: none; }
body.view-gallery #galleryView { display: block; }
body.view-gallery .floor-open,
body.view-gallery .floor-rows,
body.view-gallery main { display: none; }
.g-back {
  margin-left: auto; min-height: 42px; padding: 0 18px; border-radius: var(--btn-radius, 7px); cursor: pointer;
  font-family: var(--font-ui, "Manrope", system-ui, sans-serif); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: #f1ede4; background: rgba(10, 10, 11, 0.6); border: 1px solid rgba(215, 178, 95, 0.55);
}
.g-back:hover { background: rgba(215, 178, 95, 0.16); color: #fff6d8; }
@media (max-width: 767px) { .g-back { width: 100%; margin-left: 0; } }

/* The wordmark artwork in the sticky header */
.tb-pic { display: block; }
.tb-mark { display: block; height: 42px; width: auto; max-width: min(48vw, 460px); }
@media (max-width: 900px) { .tb-mark { height: 26px; max-width: 52vw; } }
@media (max-width: 767px) { .tb-mark { height: 22px; max-width: 54vw; } }

/* On a phone the header becomes two rows: the strip artwork, then the actions */
.tb-strip { display: none; }
@media (max-width: 767px) {
  :root { --tb-h: 104px; }
  .topbar-inner { flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding: 0; }
  .tb-brand { order: 1; width: 100%; }
  .tb-mark, .tb-event { display: none; }
  .tb-strip { display: block; width: 100%; height: auto; }
  .tb-nav { order: 2; justify-content: flex-end; gap: 0.6rem; padding: 6px 14px 0; }
  .tb-drop { top: 100%; }
}
