/* Homepage "What you can do": three equal cards on one grid. Subgrid lines up the top row, heading, body and the
   live visual across the cards; each visual plays only once its card has risen in, and holds a still final
   frame for reduced motion or no JS. Transform and opacity only. */
.wyd { grid-auto-rows: auto; row-gap: 0; }
.wyd-card {
  display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 14px;
  position: relative; overflow: hidden; isolation: isolate; padding: 26px;
  background: linear-gradient(180deg, rgba(29, 31, 36, .6), transparent 40%), var(--card);
}
.wyd-card::before {
  content: ''; position: absolute; z-index: -1; right: -30%; top: -40%; width: 90%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 175, 255, .22), transparent); opacity: .45;
  transition: opacity .5s var(--ease), transform .8s var(--ease); pointer-events: none;
}
.wyd-card:hover { border-color: rgba(0, 175, 255, .45); }
.wyd-card:hover::before { opacity: 1; transform: scale(1.12); }
@media (max-width: 960px) { .wyd { row-gap: 18px; } .wyd-card { grid-row: auto; grid-template-rows: auto; } }

.wyd-top { display: flex; align-items: center; gap: 12px; }
.wyd-top .glyph { width: 44px; height: 44px; border-radius: 14px; }
.wyd-top .glyph svg { width: 22px; height: 22px; }
.wyd-top .eyebrow { font-size: 15px; font-weight: 600; color: var(--accent-soft); }
.wyd-card h3 { font-size: 22px; align-self: start; }
.wyd-card > p { align-self: start; font-size: 16px; }

.wyd-vis { position: relative; height: 216px; margin-top: 8px; border-radius: 20px; background: var(--raised); border: 1px solid var(--line); overflow: hidden; display: grid; align-items: center; padding: 14px; }
.wyd-vis .pill { height: 30px; padding: 0 12px; font-size: 12px; }

/* Meet: an event ticket; people keep joining and the seat gets saved. */
.wv-ticket { border-radius: 16px; background: var(--sheet); border: 1px solid var(--line-strong); overflow: hidden; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .8), 0 0 40px -24px rgba(0, 175, 255, .6); }
.wv-cover { position: relative; height: 56px; background: radial-gradient(120% 140% at 85% 0%, #1f3a4d, var(--sheet) 70%); overflow: hidden; }
.wv-cover::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(93, 204, 255, .18), transparent); transform: translateX(-120%); }
.wv-cover span { position: absolute; left: 12px; top: 10px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(14, 15, 18, .65); border: 1px solid rgba(242, 242, 240, .12); }
.wv-body { display: flex; align-items: center; gap: 12px; padding: 0 12px; margin-top: -18px; position: relative; }
.wv-body .date { width: 46px; height: 46px; background: var(--bone); color: var(--night); border: 0; box-shadow: 0 0 0 4px var(--sheet); font-size: 18px; flex: none; }
.wv-body .date small { color: #46484e; font-weight: 600; }
.wv-what { padding-top: 16px; min-width: 0; }
.wv-what b { display: block; font-weight: 600; font-size: 15px; }
.wv-what span { font-size: 12px; color: var(--mist); }
.wv-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; }
.wv-going { display: flex; align-items: center; min-width: 0; }
.wv-going img { width: 26px; height: 26px; border-radius: 50%; background: var(--bone); border: 2px solid var(--sheet); margin-left: -8px; }
.wv-going img:first-child { margin-left: 0; }
.wv-going span { margin-left: 8px; font-size: 12px; color: var(--mist); }
.wv-rsvp { position: relative; display: inline-grid; flex: none; }
.wv-rsvp > span { grid-area: 1 / 1; }
.wv-rsvp .a { opacity: 0; }
.wyd-card.in .wv-cover::after { animation: wv-sheen 5s var(--ease) 1s infinite; }
.wyd-card.in .wv-going img:last-of-type { animation: wv-pop 6s var(--ease) infinite; }
.wyd-card.in .wv-rsvp .a { animation: wv-swap-a 6s var(--ease) infinite; }
.wyd-card.in .wv-rsvp .b { animation: wv-swap-b 6s var(--ease) infinite; }
.wyd-card.in .wv-rsvp { animation: wv-press 6s var(--ease) infinite; }
@keyframes wv-sheen { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(320%); } }
@keyframes wv-pop { 0%, 8% { opacity: 0; transform: scale(.4); } 18%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.4); } }
@keyframes wv-swap-a { 0%, 38% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes wv-swap-b { 0%, 38% { opacity: 0; } 44%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wv-press { 0%, 36% { transform: none; } 40% { transform: scale(.92); } 46%, 100% { transform: none; } }

/* Keep up: a feed that ticks over, one item at a time. The last item repeats the first so the loop is seamless. */
.wyd-vis:has(.wv-feed) { align-items: start; }
.wv-feed { height: 186px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.wv-roll { display: grid; gap: 10px; }
.wv-item { display: flex; align-items: center; gap: 10px; height: 78px; padding: 12px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line-strong); min-width: 0; }
.wv-item img { width: 34px; height: 34px; border-radius: 50%; background: var(--bone); flex: none; }
.wv-g { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; color: var(--accent-soft); background: var(--night); border: 1px solid var(--line-strong); }
.wv-g svg { width: 18px; height: 18px; }
.wv-item > div { flex: 1; min-width: 0; }
.wv-item b { display: block; font-size: 13px; font-weight: 600; }
.wv-item span:not(.wv-g) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; line-height: 1.35; color: var(--ash); }
.wv-item em { flex: none; font-style: normal; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ash); }
.wv-item em.on { background: var(--bone); color: var(--night); border-color: var(--bone); }
.wyd-card.in .wv-roll { animation: wv-tick 9s var(--ease) infinite; }
@keyframes wv-tick { 0%, 26% { transform: translateY(0); } 33%, 59% { transform: translateY(-88px); } 66%, 92% { transform: translateY(-176px); } 100% { transform: translateY(-264px); } }

/* Make your move: HUGO types, says he found a role, and the role rises in. */
.wv-hugo { display: grid; gap: 10px; }
.wv-say { display: flex; align-items: flex-end; gap: 8px; }
.wv-say img { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.wv-say p { position: relative; margin: 0; padding: 10px 14px; border-radius: 16px 16px 16px 5px; background: var(--sheet); border: 1px solid rgba(0, 175, 255, .35); font-size: 13px; color: var(--bone); }
.wv-dots { position: absolute; left: 14px; top: 50%; display: flex; gap: 4px; transform: translateY(-50%); opacity: 0; }
.wv-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }
.wv-role { border-radius: 16px; background: var(--sheet); border: 1px solid var(--line-strong); padding: 12px 14px; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .8), 0 0 40px -24px rgba(0, 175, 255, .6); }
.wv-role b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; margin-top: 2px; }
.wv-role .pills { margin-top: 10px; }
.wyd-card.in .wv-dots { animation: wv-dots 8s linear infinite; }
.wyd-card.in .wv-dots i { animation: wv-blink 1s ease-in-out infinite; }
.wyd-card.in .wv-dots i:nth-child(2) { animation-delay: .15s; }
.wyd-card.in .wv-dots i:nth-child(3) { animation-delay: .3s; }
.wyd-card.in .wv-text { animation: wv-text 8s var(--ease) infinite; }
.wyd-card.in .wv-role { animation: wv-role 8s var(--ease) infinite; }
@keyframes wv-dots { 0%, 8% { opacity: 1; } 11%, 100% { opacity: 0; } }
@keyframes wv-blink { 50% { transform: translateY(-3px); opacity: .5; } }
@keyframes wv-text { 0%, 9% { opacity: 0; } 14%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wv-role { 0%, 14% { opacity: 0; transform: translateY(14px) scale(.97); } 22%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(6px); } }

#going-on > .caption { margin-top: 22px; }
@media (max-width: 420px) { .wyd-card { padding: 22px; } .wyd-vis { padding: 12px; } }
