/* The animated phone mockup with its invitation and table card (js/showcase.js) — homepage hero and sign-in pages. */
.phone2 { position: relative; width: min(330px, 80vw); aspect-ratio: 9 / 18.6; border-radius: 48px; background: #16130f; padding: 11px; box-shadow: 0 40px 90px rgba(31,27,22,.28), inset 0 0 0 2px #3a332b; }
.phone2::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 99px; background: #16130f; z-index: 5; }
.screen2 { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: var(--s-bg, #fbf8f3); }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; overflow: hidden; }
.scene.on { opacity: 1; }
.scroller { will-change: transform; }
.scene.on .scroller { animation: feed 5.2s ease-in-out .9s forwards; }
@keyframes feed { to { transform: translateY(-34%); } }
.m-hero { height: 250px; position: relative; display: flex; align-items: flex-end; color: #fff; padding: 18px 16px; overflow: hidden;
  background-color: var(--s-c); background-size: cover; background-position: center; }
.m-hero::before { content: ""; position: absolute; inset: 0; opacity: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='70' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V66l28 16 28-16v16L28 98z' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); }
.m-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 20%, rgba(0,0,0,.62)); }
.m-hero b { text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.m-hero .t { position: relative; z-index: 1; }
.m-hero small { font-size: 9px; letter-spacing: .2em; font-weight: 800; opacity: .92; }
.m-hero b { display: block; font-size: 29px; line-height: 1.05; margin: 5px 0 4px; }
.m-hero span { font-size: 11px; opacity: .9; }
.m-panel { margin: -12px 10px 0; position: relative; z-index: 2; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.m-hi { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.m-btn { background: var(--s-accent); color: var(--s-on); text-align: center; font-weight: 800; font-size: 12.5px; padding: 11px; border-radius: 11px; }
.m-sec { font-family: var(--serif); font-weight: 600; font-size: 15px; margin: 14px 12px 8px; display: flex; justify-content: space-between; align-items: center; }
.m-sec em { font-style: normal; font-family: var(--sans); font-size: 9.5px; font-weight: 700; background: #fff; border-radius: 7px; padding: 3px 7px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.m-post { margin: 0 10px 10px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.m-ph { display: flex; gap: 7px; align-items: center; padding: 8px 10px; font-size: 10.5px; }
.m-ph i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 800; font-size: 10px; }
.m-ph small { display: block; color: #8a8076; font-size: 9px; }
.m-album { padding: 0 10px 6px; }
.m-album small { font-size: 7.5px; letter-spacing: .15em; font-weight: 800; color: var(--s-ink); }
.m-album b { display: block; font-family: var(--serif); font-size: 15px; }
.m-col { display: grid; gap: 2px; grid-template-columns: repeat(3, 1fr); grid-template-rows: 118px 58px; }
.m-col .p:first-child { grid-column: span 3; }
.m-one { height: 170px; }
.m-one .p { height: 100%; }
.p { position: relative; overflow: hidden; display: grid; place-items: center; font-size: 38px; background: #ddd; }
.p img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p::before { content: none; position: absolute; inset: 0; background: radial-gradient(circle at 25% 30%, rgba(255,255,255,.35) 0 12%, transparent 13%), radial-gradient(circle at 75% 65%, rgba(255,255,255,.22) 0 16%, transparent 17%), radial-gradient(circle at 60% 20%, rgba(255,255,255,.18) 0 8%, transparent 9%); }
.p span { position: relative; filter: drop-shadow(0 4px 8px rgba(0,0,0,.18)); }
.m-col .p:first-child { font-size: 58px; }
.p .more, .p .play { z-index: 1; }
.p .more { position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 17px; font-weight: 800; display: grid; place-items: center; font-family: var(--sans); }
.p .play { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 13px; display: grid; place-items: center; }
.m-rx { display: flex; gap: 4px; padding: 7px 9px; font-size: 11px; }
.m-rx span { border: 1px solid #eee; border-radius: 99px; padding: 2px 7px; }
.m-rx span.on { background: var(--s-soft); border-color: transparent; }
.m-rx .c { margin-left: auto; color: #6b6157; }
@media (prefers-reduced-motion: reduce) { .scene.on .scroller { animation: none; } .scene { transition: none; } }
/* Hero: the matching invitation and table card fanned out behind the phone, changing design with each scene. */
.stage2 { position: relative; display: grid; place-items: center; }
.stage2 .phone2 { position: relative; z-index: 1; }
.d-inv, .d-card { position: absolute; z-index: 0; width: 50%; aspect-ratio: 100 / 143.5; }
.d-inv { left: -40%; top: 9%; transform: rotate(-8deg); }
.d-card { right: -36%; top: 33%; transform: rotate(7deg); }
.d-inv img, .d-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; opacity: 0;
  box-shadow: 0 1px 2px rgba(31, 27, 22, .08), 0 22px 44px rgba(31, 27, 22, .22); transform: translateY(10px) scale(.97);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.d-inv img.on, .d-card img.on { opacity: 1; transform: none; }
@media (max-width: 960px) { .d-inv { left: -30%; width: 46%; } .d-card { right: -27%; width: 44%; } }
@media (max-width: 480px) { .d-inv { left: -17%; width: 40%; } .d-card { right: -15%; width: 40%; } }
@media (prefers-reduced-motion: reduce) { .d-inv img, .d-card img { transition: opacity .3s; transform: none; } }

/* The "live" push notification that drops in over each scene while its feed scrolls. */
.m-toast { position: absolute; z-index: 4; left: 8px; right: 8px; top: 40px; display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 16px;
  background: rgba(250,248,244,.9); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); box-shadow: 0 8px 24px rgba(0,0,0,.2);
  color: #1f1b16; font-size: 10.5px; line-height: 1.3; opacity: 0; transform: translateY(-120%); pointer-events: none; }
.m-toast .m-ic { flex: none; width: 26px; height: 26px; border-radius: 7px; background: #1f1b16; display: grid; place-items: center; }
.m-toast .m-ic svg { width: 19px; height: 19px; }
.m-toast div { min-width: 0; }
.m-toast b { display: flex; justify-content: space-between; font-size: 10.5px; }
.m-toast b em { font-style: normal; font-weight: 500; color: #8a8076; }
.m-toast span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene.on .m-toast { animation: m-toast 5.6s cubic-bezier(.2,.8,.2,1) .6s both; }
@keyframes m-toast { 0% { opacity: 0; transform: translateY(-120%); } 9%, 78% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-60%); } }
@media (prefers-reduced-motion: reduce) { .scene.on .m-toast { animation: none; opacity: 1; transform: none; } }
