.events-demo{margin-top:64px}.event-item{margin:0;position:relative;overflow:hidden;border-radius:14px;cursor:zoom-in;background:#e9e5ef;min-width:0}.event-item img{width:100%;height:100%;object-fit:cover;display:block}.event-item figcaption{position:absolute;inset:auto 0 0;padding:36px 20px 16px;background:linear-gradient(transparent,#0009);color:#fff;font-size:12px}.event-item:focus-visible{outline:3px solid var(--purple);outline-offset:-3px}
.wall-row{overflow:hidden;margin-top:20px}.wall-moving,.wall-group{display:flex;gap:20px;width:max-content}.wall-moving{animation:event-wall 35s linear infinite}.wall-row:nth-child(2) .wall-moving{animation-direction:reverse;animation-duration:42s}.wall-row:hover .wall-moving,.wall-row:focus-within .wall-moving{animation-play-state:paused}.wall-group .event-item{width:clamp(270px,30vw,440px);height:260px}.wall-group .event-item:nth-child(2){width:clamp(220px,24vw,340px)}@keyframes event-wall{to{transform:translateX(calc(-50% - 10px))}}
.event-film{display:flex;gap:24px;overflow-x:auto;scrollbar-width:none;cursor:grab;touch-action:pan-y pinch-zoom}.event-film::-webkit-scrollbar{display:none}.event-film .event-item{flex:0 0 68%;aspect-ratio:16/9}.event-film.dragging,.event-film.dragging .event-item{cursor:grabbing}.event-film img{-webkit-user-drag:none;user-select:none}
.event-stack{height:490px;position:relative;margin:32px auto 0;max-width:850px}.event-stack .event-item{position:absolute;inset:0 8%;height:100%;opacity:0;pointer-events:none;transition:transform .65s,opacity .65s;box-shadow:0 20px 50px #1a0c3626}.event-stack .event-item[data-depth="0"]{opacity:1;transform:rotate(0);z-index:3;pointer-events:auto}.event-stack .event-item[data-depth="1"]{opacity:1;transform:translate(34px,12px) rotate(5deg);z-index:2}.event-stack .event-item[data-depth="2"]{opacity:1;transform:translate(-30px,12px) rotate(-5deg);z-index:1}
.event-switch{display:flex;align-items:center;gap:24px;margin-top:40px;justify-content:center}.event-switch button{width:48px;height:48px;border:1px solid #dcd3e8;border-radius:50%;background:#fff;color:#490cf2;cursor:pointer;font-size:22px}.event-switch button:hover{background:#490cf2;color:#fff}.event-counter{font-size:13px;color:#82798b;font-variant-numeric:tabular-nums}

/* Align the event introduction to the page center. */
.events-section .framework-head{align-items:center;text-align:center}
.events-section .framework-head p{margin-inline:auto}
.event-story{display:grid;grid-template-columns:1.4fr 1fr;gap:clamp(32px,5vw,80px);align-items:center}.story-photos{position:relative;aspect-ratio:4/3}.story-photos .event-item{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .6s,transform .8s;transform:translateX(20px)}.story-photos .event-item.current{opacity:1;pointer-events:auto;transform:none}.story-eyebrow{font-size:11px;letter-spacing:.12em;color:#8f65c7}.story-copy h3{margin-top:24px;font-size:clamp(28px,3vw,44px);font-weight:900;line-height:1.3}.story-copy p{font-size:17px;line-height:1.85;color:#625b70;margin-top:24px}.story-copy small{display:block;font-size:12px;color:#94899f;margin-top:20px}.story-copy .event-switch{justify-content:flex-start}
.event-lightbox{width:100vw;height:100dvh;max-width:none;max-height:none;border:0;padding:60px;background:#08050eee;color:#fff;position:fixed;inset:0;margin:0}.event-lightbox::backdrop{background:#000b}.event-lightbox[open]{display:flex;align-items:center;justify-content:center}.event-lightbox img{max-width:100%;max-height:85vh;object-fit:contain}.event-lightbox button{position:absolute;right:24px;top:18px;width:44px;height:44px;border:0;border-radius:50%;background:#fff;color:#111;font-size:28px;cursor:pointer}
@media(max-width:760px){.events-demo{margin-top:40px}.wall-row:nth-child(2){display:none}.wall-moving{animation:none}.wall-row{overflow-x:auto}.wall-moving>.wall-group:nth-child(2){display:none}.wall-group .event-item{height:240px}.event-film .event-item{flex-basis:88%;aspect-ratio:4/3}.event-stack{height:300px;margin-top:20px}.event-stack .event-item{inset:0 10%}.event-story{grid-template-columns:1fr;gap:28px}.story-copy h3{margin-top:16px}.event-lightbox{padding:20px}}
@media(prefers-reduced-motion:reduce){.wall-moving{animation:none}.wall-row{overflow-x:auto}.event-item{transition:none!important}}

/* Full bleed photo rows, driven by drag-aware continuous motion. */
.events-demo.wall{width:100vw;position:relative;left:50%;margin-left:-50vw}
.wall-row{width:100%;overflow:hidden;touch-action:pan-y pinch-zoom;cursor:grab;user-select:none;-webkit-user-select:none}
.wall-moving,.wall-row:nth-child(2) .wall-moving{animation:none;will-change:transform;gap:20px}
.wall-row.dragging,.wall-row.dragging .event-item{cursor:grabbing}
.wall-group .event-item{cursor:grab}
.wall-group img{-webkit-user-drag:none;pointer-events:none}
@media(max-width:760px){.wall-row:nth-child(2){display:block}.wall-row{overflow:hidden}.wall-moving>.wall-group:nth-child(2){display:flex}.wall-group .event-item{width:270px;height:210px}.wall-group .event-item:nth-child(2){width:230px}}

.wall-group .event-item:has(img[src*="company-event-4"]){width:clamp(400px,42vw,600px)}
@media(max-width:760px){.wall-group .event-item:has(img[src*="company-event-4"]){width:373px}}
