/* Mobile closer-look tour; desktop stays on its original viewer. */
.events-mobile { display: none; }
@media (max-width: 700px) {
  .has-mobile-events { position: relative; padding: 64px 0 80px; }
  .has-mobile-events .events-inner { position: static; max-width: none; }
  .has-mobile-events .events-inner > h2 { width: 87.5%; margin: 0 auto 40px; text-align: left; font-size: 32px; line-height: 1.125; letter-spacing: -.025em; }
  .has-mobile-events .events-viewer { display: none; }
  .events-mobile { --em-inset: 6.25%; --em-radius: 28px; --em-video-width: min(70vw, 288px); display: block; position: relative; height: 640px; isolation: isolate; }
  .em-stage { position: absolute; inset: 0; background: #fff; clip-path: inset(0 var(--em-inset) round var(--em-radius)); }
  .em-scenes { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
  .em-scene { position: absolute; inset: 44px 0 160px; display: grid; place-items: center; opacity: 0; visibility: hidden; pointer-events: none; }
  .em-scene.is-current { opacity: 1; visibility: visible; }
  .em-video-position { transition: transform .65s cubic-bezier(.22,1,.36,1); }
  .is-open .em-video-position { transform: translateY(-34px) scale(.93); }
  .em-video-frame { position: relative; width: var(--em-video-width); aspect-ratio: 9 / 16; overflow: hidden; border-radius: 18px; background: #000; }
  .em-video { display: block; width: 100%; height: 100%; object-fit: contain; }
  .em-toolbar { position: absolute; z-index: 4; inset: 10px 10px auto; display: flex; justify-content: space-between; pointer-events: none; }
  .em-toolbar .em-round { width: 28px; height: 28px; color: #f5f5f7; background: rgb(29 29 31 / .52); box-shadow: inset 0 0 0 1px rgb(245 245 247 / .18); backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%); pointer-events: auto; }
  .em-toolbar .em-round::after { inset: -8px; }
  .em-toolbar .em-sound svg { width: 16px; height: 16px; }
  .em-toolbar .em-play svg { width: 28px; height: 28px; }
  .em-round { display: grid; place-items: center; position: relative; width: 36px; height: 36px; border: 0; padding: 0; border-radius: 50%; color: #1d1d1f; background: rgb(232 232 237 / .8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); cursor: pointer; }
  .em-round::after { content: ''; position: absolute; inset: -4px; }
  .em-round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .em-play svg { width: 36px; height: 36px; fill: currentColor; stroke: none; }
  .em-play svg > path { display: none; }
  .em-play[data-state="paused"] .em-play-symbol, .em-play[data-state="playing"] .em-pause-symbol, .em-play[data-state="ended"] .em-replay-symbol { display: block; }
  .em-sound[aria-pressed="false"] .em-sound-on, .em-sound[aria-pressed="true"] .em-sound-off { display: none; }
  .em-close-boundary { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; pointer-events: none; }
  .em-close { position: absolute; top: 20px; right: 20px; margin: 0; opacity: 0; visibility: hidden; transform: scale(.7); transition: opacity .2s, transform .42s cubic-bezier(.22,1,.36,1), visibility 0s .42s; }
  .is-open .em-close { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: .18s,.12s,0s; }
  .em-close svg { width: 20px; height: 20px; stroke-width: 3.5; }
  /* Sticky is bounded by the viewer in both directions of scroll. */
  .em-controls-boundary { position: absolute; z-index: 3; inset: 0; display: flex; align-items: flex-end; overflow: clip; pointer-events: none; }
  .em-controls { position: sticky; bottom: 0; margin-top: -20px; width: 100%; height: 250px; padding-bottom: 20px; display: flex; align-items: flex-end; opacity: 0; pointer-events: none; }
  .is-ready .em-controls { opacity: 1; }
  .em-menu { display: flex; gap: 12px; align-items: center; width: 100%; padding: 0 6.25%; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; pointer-events: auto; transition: opacity .2s, transform .42s cubic-bezier(.22,1,.36,1); }
  .em-menu::-webkit-scrollbar { display: none; }
  .em-choice { position: relative; flex: 0 0 auto; height: 56px; display: flex; align-items: center; gap: 10px; border: 0; padding: 0 24px 0 16px; border-radius: 28px; color: #1d1d1f; background: rgb(232 232 237 / .86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
  .em-choice svg { width: 24px; height: 24px; fill: none; stroke: currentColor; }
  .em-choice .em-plus { stroke-width: 2; stroke-linecap: round; }
  .is-open .em-menu { opacity: 0; transform: translateY(24px); pointer-events: none; }
  .em-detail { position: absolute; bottom: 20px; left: 50%; width: calc(100% - 80px); min-height: 108px; transform: translateX(-50%); visibility: hidden; pointer-events: none; }
  .is-open .em-detail { visibility: visible; pointer-events: auto; }
  .em-detail-surface { position: absolute; inset: 0; border-radius: 28px; background: rgb(232 232 237 / .86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transform-origin: top left; }
  .em-description { position: relative; display: grid; place-items: center; min-height: 108px; padding: 24px; text-align: center; color: #1d1d1f; opacity: 0; transform: translateY(24px); transition: opacity .2s ease-out, transform .3s ease-out; }
  .is-open .em-description { opacity: 1; transform: none; transition: opacity .42s .2s ease-out, transform .42s ease-out; }
  .em-description p { margin: 0; font-size: 14px; line-height: 20px; letter-spacing: -.012em; font-weight: 400; }
  .em-description strong { font-weight: 600; }
  .em-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 88px; padding: 0; border: 0; background: transparent; color: #1d1d1f; cursor: pointer; }
  .em-prev { left: -40px; }
  .em-next { right: -40px; }
  .em-arrow span { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: rgb(232 232 237 / .86); }
  .em-prev span { left: -28px; }
  .em-next span { right: -28px; }
  .em-arrow svg { position: absolute; top: 10px; width: 36px; height: 36px; fill: currentColor; }
  .em-prev svg { left: 22px; }
  .em-next svg { right: 22px; }
  .em-arrow:disabled { opacity: 0; pointer-events: none; }
  .em-error { position: absolute; left: 24px; right: 24px; top: 68px; margin: 0; text-align: center; font-size: 13px; color: #6e6e73; }
  .events-mobile button:focus-visible { outline: 3px solid #0071e3; outline-offset: 3px; }
  .events-mobile button:active { filter: brightness(.95); }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .has-mobile-events:not(.em-title-entered) .events-inner > h2 { opacity: 0; transform: translateY(22px); }
  .has-mobile-events.em-title-entered .events-inner > h2 { transition: opacity .65s ease, transform .65s cubic-bezier(.16,1,.3,1); }
  .events-mobile:not(.is-ready) .em-video-frame { opacity: 0; transform: translateY(24px) scale(.84); }
  .events-mobile.is-ready .em-video-frame { transition: opacity .7s, transform .85s cubic-bezier(.16,1,.3,1); }
  .events-mobile.is-ready .em-choice { animation: em-choice-enter .65s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--em-index) * 55ms); }
  @keyframes em-choice-enter { from { opacity: 0; clip-path: inset(0 calc(50% - 28px) round 28px); transform: translateY(48px) scale(.8); } 25% { opacity: 1; } to { opacity: 1; clip-path: inset(0 round 28px); transform: none; } }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .events-mobile *, .events-inner > h2 { animation: none !important; transition: none !important; }
  .events-mobile .em-video-position { transform: none; }
  .events-mobile .em-scene { bottom: 165px; }
}
