@font-face {
  font-family: 'Mestizo';
  src: url('/assets/MestizoFont.woff2') format('woff2'),
       url('/assets/MestizoFont.woff') format('woff'),
       url('/assets/MestizoFont.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg-1: #050914;
  --bg-2: #0b1a44;
  --bg-3: #130d2d;
  --bg-4: #09122f;
  --ink: #eff3ff;
  --muted: #b7bfdb;
  --gold: #f8b42d;
  --gold-soft: #ffd875;
  --cyan: #43e9ff;
  --magenta: #ff5fa8;
  --panel: rgba(8, 15, 45, 0.72);
  --panel-border: rgba(255, 216, 117, 0.28);
  --ring-shadow: rgba(0, 0, 0, 0.72);
  --mouse-x: 50vw;
  --mouse-y: 40vh;
  --active-frame-ratio: 0;
  --selection-glow: 0.72;
}

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  background:
    radial-gradient(circle at 20% 35%, rgba(67, 233, 255, 0.22), transparent 35%),
    radial-gradient(circle at 82% 70%, rgba(255, 95, 168, 0.2), transparent 34%),
    linear-gradient(130deg, #090f2d 0%, #12103b 48%, #0a163f 100%);
  transition: opacity 0.6s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

#loading-video {
  animation: loaderPulse 2.1s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

html,
body {
  min-height: 100vh;
}

html {
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 52%, var(--bg-3) 100%);
  overflow-x: hidden;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(248, 180, 45, 0.16), transparent 22%),
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(67, 233, 255, 0.14), transparent 30%),
    radial-gradient(circle at 76% 22%, rgba(255, 95, 168, 0.11), transparent 32%),
    radial-gradient(circle at 50% 74%, rgba(67, 233, 255, 0.08), transparent 28%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 48%, var(--bg-4) 74%, var(--bg-3) 100%);
  background-attachment: fixed;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: -15vh -20vw;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at calc(10% + var(--active-frame-ratio) * 70%) 25%, rgba(248, 180, 45, 0.16), transparent 34%),
    radial-gradient(circle at 85% 80%, rgba(67, 233, 255, 0.12), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 48%);
  filter: blur(14px);
  animation: hazeDrift 12s ease-in-out infinite alternate;
}

body::after {
  background:
    radial-gradient(circle at 50% 52%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.46) 100%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 26px);
  mix-blend-mode: screen;
  opacity: 0.58;
}

@keyframes hazeDrift {
  from {
    transform: translate3d(-2vw, -1vh, 0) rotate(-1deg);
  }

  to {
    transform: translate3d(2vw, 1vh, 0) rotate(1deg);
  }
}

h1,
h2,
h3 {
  font-family: 'Mestizo', Georgia, serif;
}

/* Apply Mestizo font to event names specifically */
.event-card-name, 
#activeEventTitle, 
.active-showcase__title, 
.active-showcase__title span,
#modalTitle,
#selected-events-title,
.card h3,
[data-events] h3,
.events-react-root .events-preview-card span {
  font-family: 'Mestizo', sans-serif !important;
}

nav {
  background: transparent;
  border-bottom: none;
}

#desktop-nav a,
#mobile-menu a {
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

#desktop-nav a:hover,
#mobile-menu a:hover {
  color: var(--gold-soft);
  text-shadow: 0 0 16px rgba(248, 180, 45, 0.5);
}

#mobile-menu {
  background: linear-gradient(180deg, rgba(15, 28, 75, 0.86), rgba(10, 17, 48, 0.86));
  border-top: 1px solid rgba(255, 216, 117, 0.25);
  border-bottom: 1px solid rgba(67, 233, 255, 0.22);
}

.bg-decoration {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-decoration::before,
.bg-decoration::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
}

.bg-decoration::before {
  width: min(36vw, 420px);
  height: min(36vw, 420px);
  top: 8%;
  right: 5%;
  background: radial-gradient(circle, rgba(248, 180, 45, 0.24) 0%, rgba(248, 180, 45, 0) 68%);
  animation: ornamentFloat 8s ease-in-out infinite;
}

.bg-decoration::after {
  width: min(32vw, 360px);
  height: min(32vw, 360px);
  left: 4%;
  bottom: 7%;
  background: radial-gradient(circle, rgba(67, 233, 255, 0.22) 0%, rgba(255, 216, 117, 0) 68%);
  animation: ornamentFloat 10s ease-in-out infinite reverse;
}

@keyframes ornamentFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-14px) scale(1.04);
  }
}

main {
  min-height: calc(100vh - 5rem);
}

.selected-work {
  position: relative;
  width: min(1560px, 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: clamp(1rem, 1.8vw, 1.35rem);
  min-height: calc(100vh - 8rem);
  padding-bottom: clamp(0.5rem, 1.5vw, 1.25rem);
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 216, 117, 0.92), transparent);
}

.section-eyebrow::after {
  transform: scaleX(-1);
}

.active-showcase {
  position: relative;
  display: grid;
  gap: clamp(0.55rem, 1.2vw, 0.95rem);
  justify-items: center;
  width: min(100%, 60rem);
  margin: 0 auto;
  padding: clamp(1.4rem, 2.5vw, 2rem) clamp(1.1rem, 3vw, 2.75rem) clamp(1.3rem, 2.2vw, 1.9rem);
  border: 1px solid var(--panel-border);
  border-radius: clamp(1.25rem, 2.4vw, 2rem);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 50% 0%, rgba(67, 233, 255, 0.1), transparent 58%),
    var(--panel);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 216, 117, 0.04);
  backdrop-filter: blur(14px);
  overflow: hidden;
  isolation: isolate;
  z-index: 3;
}

.active-showcase::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 15% 15%, rgba(248, 180, 45, 0.14), transparent 32%),
    radial-gradient(circle at 84% 22%, rgba(67, 233, 255, 0.12), transparent 30%);
  opacity: 0.9;
  pointer-events: none;
}

.active-showcase > * {
  position: relative;
  z-index: 1;
}

.active-showcase__count {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0 0.95rem;
  border: 1px solid rgba(255, 216, 117, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.active-showcase__title {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-size: clamp(1.8rem, 4.35vw, 4.15rem);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 400;
  white-space: nowrap;
  overflow: visible;
  text-align: center;
  background: linear-gradient(88deg, #ffe090 0%, #f8b42d 34%, #43e9ff 68%, #fff1bb 100%);
  background-size: 220% 220%;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: titleShimmer 7s ease-in-out infinite;
  text-shadow: 0 0 32px rgba(248, 180, 45, 0.24);
}

.active-showcase__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  width: min(100%, 38rem);
  color: var(--muted);
  font-size: clamp(0.96rem, 1.3vw, 1.04rem);
  line-height: 1.6;
}

.active-showcase__detail {
  max-width: 24ch;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.active-showcase__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.72rem 1.22rem;
  border: 1px solid rgba(255, 216, 117, 0.45);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(20, 36, 95, 0.95), rgba(8, 16, 50, 0.96));
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 216, 117, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.active-showcase__cta:hover,
.active-showcase__cta:focus-visible {
  color: #fff8da;
  border-color: rgba(255, 216, 117, 0.72);
  transform: translateY(-1px);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(248, 180, 45, 0.16);
  outline: none;
}

@keyframes titleShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.film-stage-wrap {
  --cylinder-axis-y: 35%;
  --cylinder-core-y: 15%;
  position: relative;
  width: min(1440px, 100%);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  place-items: center;
  margin-top: clamp(19rem, 28vw, 24rem);
  padding-bottom: clamp(3rem, 5vw, 4.4rem);
  z-index: 1;
}

.film-strip-shell {
  position: relative;
  overflow: hidden;
  width: min(1440px, 100%);
  padding: 0 0 0.4rem;
}

.cylinder-shell {
  position: relative;
  width: 100%;
}

.cylinder-stage {
  position: relative;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  perspective: 1200px;
  perspective-origin: 50% 42%;
  isolation: isolate;
  overflow: visible;
}

.cylinder-core {
  position: absolute;
  top: var(--cylinder-core-y);
  left: 50%;
  width: clamp(280px, 48vw, 720px);
  height: clamp(180px, 28vw, 380px);
  transform: translate(-50%, -48%);
  border-radius: 999px;
  border: 1px solid rgba(255, 216, 117, 0.16);
  background:
    radial-gradient(circle at 50% 50%, rgba(248, 180, 45, 0.12), rgba(15, 22, 54, 0.1) 48%, rgba(4, 8, 27, 0) 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  box-shadow: 0 0 60px rgba(248, 180, 45, 0.14);
  pointer-events: none;
  z-index: -1;
}

.cylinder-core::after {
  content: '';
  position: absolute;
  inset: 10% 14%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(248, 180, 45, calc(0.32 * var(--selection-glow))), transparent 58%),
    radial-gradient(circle at 50% 44%, rgba(67, 233, 255, calc(0.22 * var(--selection-glow))), transparent 62%);
  filter: blur(16px);
}

.cylinder-glow {
  position: absolute;
  top: calc(var(--cylinder-axis-y) - 10%);
  width: clamp(90px, 10vw, 180px);
  height: clamp(220px, 28vw, 360px);
  border-radius: 999px;
  transform: translateY(-50%);
  filter: blur(26px);
  opacity: 0.44;
  pointer-events: none;
  z-index: 1;
}

.cylinder-glow-left {
  left: 0;
  background: linear-gradient(180deg, rgba(67, 233, 255, 0.18), rgba(67, 233, 255, 0));
}

.cylinder-glow-right {
  right: 0;
  background: linear-gradient(180deg, rgba(255, 95, 168, 0.18), rgba(255, 95, 168, 0));
}

.cylinder-viewport {
  position: relative;
  height: clamp(20rem, 42vw, 28rem);
  overflow: visible;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  perspective: 1200px;
  perspective-origin: 50% var(--cylinder-axis-y);
  transform-style: preserve-3d;
  z-index: 2;
}

.cylinder-viewport:active {
  cursor: grabbing;
}

.cylinder-viewport::before,
.cylinder-viewport::after {
  content: none;
}

.film-strip {
  --reel-gap: 0.02rem;
  position: relative;
  display: flex;
  gap: var(--reel-gap);
  padding: 0 0.9rem;
  width: auto;
  overflow: visible;
  transform-style: preserve-3d;
  will-change: transform;
}

.film-strip::before,
.film-strip::after {
  content: none;
}

.film-strip .event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 0 0 clamp(6.05rem, 7.1vw, 7.65rem);
  height: clamp(8.3rem, 14.9vw, 10.5rem);
  border-radius: 14px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(16, 29, 80, 0.96), rgba(9, 15, 43, 0.94) 42%, rgba(7, 13, 36, 0.95) 100%),
    radial-gradient(circle at 70% 18%, rgba(67, 233, 255, 0.15), transparent 38%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  transition:
    box-shadow 0.28s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.26s ease,
    filter 0.26s ease,
    transform 0.35s ease;
  will-change: transform, opacity, filter;
  transform: perspective(800px) rotateY(calc(var(--card-index, 0) * 8deg)) translateZ(120px);
}

.film-strip .event-card::before {
  content: '';
  position: absolute;
  inset: -18% -40%;
  background: linear-gradient(120deg, rgba(67, 233, 255, 0), rgba(67, 233, 255, 0.2), rgba(248, 180, 45, 0.16), rgba(67, 233, 255, 0));
  transform: translateX(-44%) rotate(5deg);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
  pointer-events: none;
  z-index: 2;
}

.film-strip .event-card::after {
  content: none;
}

.film-strip .event-card:hover::before,
.film-strip .event-card:focus-visible::before {
  opacity: 1;
  transform: translateX(35%) rotate(5deg);
}

.film-strip .event-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  gap: 0.68rem;
  min-height: 100%;
  padding: 0.95rem 0.95rem 1rem;
}

.film-strip .event-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.film-strip .event-card-rank {
  color: rgba(255, 231, 174, 0.78);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.film-strip .event-card-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 216, 117, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.18));
  overflow: hidden;
  padding: 0.7rem;
}

.film-strip .event-card-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 14%, rgba(67, 233, 255, 0.13), transparent 42%);
  pointer-events: none;
}

.film-strip .event-card-frame img {
  width: 100%;
  height: clamp(6.2rem, 11.1vw, 8.2rem);
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.38)) saturate(1.08);
  transition: transform 0.28s ease, filter 0.28s ease;
}

.film-strip .event-card-body {
  display: grid;
  gap: 0.38rem;
}

.film-strip .event-card-name {
  margin: 0;
  color: #ffeaad;
  text-align: center;
  font-size: clamp(0.92rem, 1.9vw, 1.14rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.film-strip .event-card-category {
  margin: 0;
  color: rgba(157, 235, 247, 0.84);
  text-align: center;
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
}

.film-strip .event-card.is-active-frame {
  z-index: 20;
  border-color: transparent;
  box-shadow:
    0 28px 58px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(248, 180, 45, 0.34),
    0 0 30px rgba(248, 180, 45, 0.2),
    0 0 24px rgba(67, 233, 255, 0.14);
}

.film-strip .event-card.is-active-frame .event-card-frame img {
  transform: scale(1.04);
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.4)) saturate(1.18);
}

.film-nav-arrow {
  position: absolute;
  top: calc(var(--cylinder-axis-y) - 15%);
  z-index: 60;
  width: 3.7rem;
  height: 3.7rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 233, 165, 0.92);
  color: #fff2c5;
  background:
    radial-gradient(circle at 35% 28%, rgba(67, 233, 255, 0.32), rgba(8, 16, 50, 0.9) 60%),
    linear-gradient(180deg, rgba(14, 34, 98, 0.97), rgba(9, 15, 44, 0.96));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.48),
    0 0 22px rgba(248, 180, 45, 0.34),
    0 0 0 1px rgba(255, 233, 165, 0.22);
  transform: translateY(-50%);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.film-nav-arrow:hover {
  border-color: #ffe7a0;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.54), 0 0 28px rgba(248, 180, 45, 0.3);
}

.film-nav-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.film-nav-arrow svg {
  width: 1.45rem;
  height: 1.45rem;
  stroke-width: 2.8;
}

.film-nav-prev {
  left: clamp(1rem, 2.2vw, 2.2rem);
}

.film-nav-next {
  right: clamp(1rem, 2.2vw, 2.2rem);
}

.film-pagination {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.film-pagination-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 216, 117, 0.6);
  background: rgba(255, 216, 117, 0.24);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, width 0.22s ease;
  cursor: pointer;
}

.film-pagination-dot:hover {
  transform: scale(1.18);
  background: rgba(255, 216, 117, 0.56);
}

.film-pagination-dot.is-active {
  width: 1.8rem;
  border-color: #ffe7a0;
  background: linear-gradient(90deg, #ffd875, #43e9ff);
  box-shadow: 0 0 22px rgba(67, 233, 255, 0.55);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  animation: riseReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes riseReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#modal {
  backdrop-filter: blur(8px);
}

#modal .modal-content {
  width: min(940px, 95vw);
  background:
    radial-gradient(circle at 22% 15%, rgba(67, 233, 255, 0.12), transparent 38%),
    linear-gradient(150deg, rgba(11, 23, 70, 0.98), rgba(8, 15, 44, 0.98));
  border-color: rgba(255, 216, 117, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.66), 0 0 34px rgba(248, 180, 45, 0.35);
}

#closeModal {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 216, 117, 0.55);
  border-radius: 999px;
  line-height: 1;
  background: linear-gradient(180deg, rgba(20, 36, 95, 0.94), rgba(8, 16, 50, 0.9));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

#closeModal:hover,
#closeModal:focus-visible {
  color: #fff7d8;
  border-color: rgba(255, 216, 117, 0.9);
  background: linear-gradient(180deg, rgba(24, 44, 115, 0.96), rgba(10, 20, 64, 0.94));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42), 0 0 18px rgba(248, 180, 45, 0.26);
}

#ropLinkBtn {
  color: #081032 !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-color: rgba(255, 216, 117, 0.88) !important;
  background: linear-gradient(135deg, #ffe89f 0%, #ffd875 52%, #f8b42d 100%) !important;
  box-shadow: 0 14px 30px rgba(248, 180, 45, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

#ropLinkBtn:hover,
#ropLinkBtn:focus-visible {
  color: #040c28 !important;
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(248, 180, 45, 0.38), 0 0 24px rgba(255, 216, 117, 0.2);
}

#modalTitle {
  text-shadow: 0 0 24px rgba(248, 180, 45, 0.32);
}

#modalDesc {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 1rem;
}

#modalDesc::-webkit-scrollbar {
  width: 8px;
}

#modalDesc::-webkit-scrollbar-track {
  background: rgba(8, 16, 50, 0.8);
  border-radius: 10px;
}

#modalDesc::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: linear-gradient(180deg, #ffd875, #f8b42d);
  border: 2px solid rgba(8, 16, 50, 0.88);
}

@media (max-aspect-ratio: 4/3) {
  .modal-event-head-wrapper {
    display: none;
  }
}

@media (min-width: 1024px) {
  .modal-event-head-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
  }

  .modal-event-head-wrapper img {
    max-width: 250px;
    height: auto;
  }

  #modalDesc {
    max-height: 350px;
  }
}

::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  background: #090f2f;
}

::-webkit-scrollbar-thumb {
  border-radius: 8px;
  border: 2px solid #090f2f;
  background: linear-gradient(180deg, #ffd875, #f8b42d 56%, #43e9ff);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffe7a0, #ffc74f 56%, #72f0ff);
}

@media (max-width: 980px) {
  .selected-work {
    gap: 1rem;
    min-height: calc(100vh - 7.5rem);
  }

  .active-showcase__title {
    font-size: clamp(2.55rem, 10vw, 4.8rem);
  }

  .film-stage-wrap {
    width: 100%;
    margin-top: 13rem;
  }

  .film-nav-prev {
    left: 0.35rem;
  }

  .film-nav-next {
    right: 0.35rem;
  }

  .cylinder-core,
  .cylinder-glow {
    opacity: 0.66;
  }
}

@media (max-width: 767px) {
  .film-stage-wrap {
    margin-top: 10.5rem;
  }

  .selected-work {
    gap: 0.9rem;
    min-height: calc(100vh - 7rem);
    padding-bottom: 0.4rem;
  }

  .section-eyebrow {
    gap: 0.55rem;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
  }

  .section-eyebrow::before,
  .section-eyebrow::after {
    width: 34px;
  }

  .active-showcase {
    padding: 1.15rem 0.9rem 1.3rem;
    gap: 0.65rem;
  }

  .active-showcase__count {
    min-height: 2.15rem;
    padding: 0 0.8rem;
    font-size: 0.66rem;
  }

  .active-showcase__title {
    max-width: 9.5ch;
    font-size: clamp(2.45rem, 11vw, 4rem);
    line-height: 0.9;
  }

  .active-showcase__meta {
    gap: 0.55rem 0.85rem;
    font-size: 0.88rem;
  }

  .active-showcase__cta {
    min-height: 2.8rem;
    padding: 0.68rem 1rem;
  }

  .film-strip {
    --reel-gap: 0.16rem;
    gap: var(--reel-gap);
    padding: 0 0.5rem;
  }

  .film-strip .event-card {
    flex-basis: clamp(45vw, 48vw, 50vw);
    height: clamp(10.4rem, 50vw, 12.35rem);
  }

  .film-strip .event-card-frame img {
    height: clamp(8.1rem, 35.2vw, 9.6rem);
  }

  .cylinder-viewport {
    height: clamp(17rem, 64vw, 21.5rem);
  }

  .film-nav-arrow {
    width: 3rem;
    height: 3rem;
  }

  .film-nav-prev {
    left: 0.3rem;
  }

  .film-nav-next {
    right: 0.3rem;
  }

  .film-nav-arrow svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .film-pagination {
    bottom: 0;
    gap: 0.65rem;
  }

  .film-pagination-dot.is-active {
    width: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  body::before,
  body::after,
  .bg-decoration,
  .bg-decoration::before,
  .bg-decoration::after {
    display: none !important;
  }
}

/* React events page sizing overrides. */
.events-react-root {
  position: relative;
  isolation: isolate;
  color: #f4f7ff;
  background: radial-gradient(circle at top, rgba(33, 52, 109, 0.28), rgba(5, 10, 24, 0.92) 58%, rgba(2, 5, 14, 1) 100%);
  min-height: 100vh;
}

.events-react-root > .mx-auto {
  position: relative;
  z-index: 1;
}

.events-react-root .bg-decoration {
  z-index: 0;
  opacity: 0.22;
  filter: saturate(0.72) blur(1px);
}

.events-react-root .selected-work {
  min-height: auto;
  padding-bottom: 0;
  color: inherit;
}

.events-react-root .film-stage-wrap {
  margin-top: clamp(1.5rem, 3.5vw, 3rem);
}

.events-react-root .film-strip-shell,
.events-react-root .cylinder-stage {
  min-height: clamp(20rem, 38vh, 30rem);
}

.events-react-root .cylinder-viewport {
  position: relative;
  overflow: hidden;
  min-height: clamp(18rem, 36vh, 30rem);
  max-height: 30rem;
}

.events-react-root .react-carousel-host,
.events-react-root .react-carousel-canvas {
  position: absolute;
  inset: 0;
}

.events-react-root .film-nav-arrow {
  top: 50%;
  transform: translateY(-50%);
}

.events-react-root .events-preview-rail {
  width: min(1400px, 100%);
  margin: 0.8rem auto 1.15rem;
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  background: linear-gradient(180deg, rgba(6, 12, 34, 0.92), rgba(5, 10, 24, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: clamp(4.75rem, 9vh, 6.75rem);
  z-index: 30;
}

.events-react-root .events-preview-card {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: clamp(150px, 15vw, 220px);
  padding: 0;
  border: 1px solid rgba(255, 216, 117, 0.26);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(7, 12, 32, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  color: var(--ink);
  text-align: left;
  transform: translateZ(0);
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.events-react-root .events-preview-card:hover,
.events-react-root .events-preview-card.is-active {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 216, 117, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.events-react-root .events-preview-card {
  scroll-snap-align: start;
}

.events-react-root .events-preview-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.events-react-root .events-preview-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(3, 8, 24, 0.9));
  font-family: Georgia, serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.events-react-root .active-showcase {
  color: #f7f9ff;
}

.events-react-root .active-showcase__count,
.events-react-root .active-showcase__detail,
.events-react-root .section-eyebrow,
.events-react-root .carousel-hint {
  color: rgba(244, 247, 255, 0.82);
}

.events-react-root .active-showcase__title {
  color: #ffffff;
}

.events-react-root .active-showcase__cta {
  color: #081032;
  border-color: rgba(255, 227, 152, 0.88);
  background: linear-gradient(135deg, #ffe89f 0%, #ffd875 48%, #f8b42d 100%);
  box-shadow: 0 14px 34px rgba(248, 180, 45, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.events-react-root .active-showcase__cta span {
  display: inline-block;
  font-size: 1.05em;
  transition: transform 0.22s ease;
}

.events-react-root .active-showcase__cta:hover,
.events-react-root .active-showcase__cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(248, 180, 45, 0.38), 0 0 24px rgba(255, 216, 117, 0.22);
}

.events-react-root .active-showcase__cta:hover span,
.events-react-root .active-showcase__cta:focus-visible span {
  transform: translateX(3px);
}

.events-react-root .film-strip-shell,
.events-react-root .cylinder-stage,
.events-react-root .cylinder-viewport {
  background: rgba(6, 10, 24, 0.28);
}

/* 3D ring carousel overrides matching the sandboxed Card demo. */
.film-stage-wrap {
  --carousel-radius: 500px;
  position: relative;
  width: min(1400px, 100%);
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  display: grid;
  place-items: center;
  padding-bottom: clamp(3rem, 5vw, 4.4rem);
  z-index: 1;
}

.film-strip-shell {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: visible;
}

.cylinder-stage {
  position: relative;
  width: 100%;
  perspective: 2200px;
  perspective-origin: 50% 48%;
  isolation: isolate;
  overflow: visible;
}

.cylinder-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(74vw, 980px);
  height: min(24vw, 340px);
  transform: translate(-50%, -42%);
  border-radius: 999px;
  border: 1px solid rgba(67, 233, 255, 0.22);
  background:
    radial-gradient(circle at 50% 50%, rgba(248, 180, 45, 0.12), rgba(15, 22, 54, 0.12) 52%, rgba(4, 8, 27, 0) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  box-shadow: 0 0 70px rgba(248, 180, 45, 0.16);
  pointer-events: none;
  z-index: -1;
}

.cylinder-core::after {
  content: '';
  position: absolute;
  inset: 10% 14%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(248, 180, 45, calc(0.3 * var(--selection-glow))), transparent 58%),
    radial-gradient(circle at 50% 44%, rgba(67, 233, 255, calc(0.24 * var(--selection-glow))), transparent 64%);
  filter: blur(18px);
}

.cylinder-glow {
  position: absolute;
  top: 50%;
  width: clamp(90px, 10vw, 180px);
  height: clamp(220px, 28vw, 360px);
  border-radius: 999px;
  transform: translateY(-50%);
  filter: blur(28px);
  opacity: 0.62;
  pointer-events: none;
  z-index: 1;
}

.cylinder-glow-left {
  left: 0;
  background: linear-gradient(180deg, rgba(67, 233, 255, 0.18), rgba(67, 233, 255, 0));
}

.cylinder-glow-right {
  right: 0;
  background: linear-gradient(180deg, rgba(255, 95, 168, 0.18), rgba(255, 95, 168, 0));
}

.cylinder-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(20rem, 36vw, 31rem);
  overflow: visible;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  perspective: 2200px;
  perspective-origin: 50% 50%;
  z-index: 2;
}

.cylinder-viewport:active {
  cursor: grabbing;
}

.film-strip.cylinder-ring {
  position: relative;
  width: 100%;
  height: clamp(18.5rem, 32vw, 26rem);
  transform-style: preserve-3d;
  will-change: transform;
}

.film-strip.cylinder-ring .event-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(76px, 11vw, 132px);
  height: clamp(106px, 15.5vw, 184px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: opacity 0.28s ease, filter 0.28s ease, transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform, opacity, filter;
}

.film-strip.cylinder-ring .event-card-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.film-strip.cylinder-ring .event-card::before {
  content: none;
}

.film-strip.cylinder-ring .event-card-inner {
  position: relative;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  gap: 0.6rem;
  padding: 0.78rem 0.78rem 0.9rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 216, 117, 0.16);
  background:
    linear-gradient(180deg, rgba(16, 29, 80, 0.96), rgba(9, 15, 43, 0.94) 42%, rgba(7, 13, 36, 0.95) 100%),
    radial-gradient(circle at 70% 18%, rgba(67, 233, 255, 0.15), transparent 38%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.film-strip.cylinder-ring .event-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.film-strip.cylinder-ring .event-card-face-back {
  transform: rotateY(180deg) scaleX(-1);
  border-color: rgba(114, 238, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(7, 21, 58, 0.92), rgba(6, 12, 34, 0.9) 42%, rgba(5, 9, 26, 0.93) 100%),
    radial-gradient(circle at 50% 84%, rgba(248, 180, 45, 0.18), transparent 42%);
}

.film-strip.cylinder-ring .event-card-face-back::before {
  content: none;
}

.film-strip.cylinder-ring .event-card-face-back .event-card-frame {
  border-color: transparent;
  background: transparent;
}

.film-strip.cylinder-ring .event-card-face-back .event-card-frame img {
  filter: none;
}

.film-strip.cylinder-ring .event-card-face-back .event-card-name,
.film-strip.cylinder-ring .event-card-face-back .event-card-category {
  opacity: 0.98;
}

.film-stage-wrap .cylinder-core,
.film-stage-wrap .cylinder-core::after {
  display: none;
}

.film-strip.cylinder-ring .event-card.is-back-facing .event-card-face-back {
  border-color: transparent;
  box-shadow: none;
}

.film-strip.cylinder-ring .event-card.is-back-facing {
  filter: none;
}

.film-strip.cylinder-ring .event-card-inner::before {
  content: none;
}

.film-strip.cylinder-ring .event-card-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  border-radius: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  padding: 0;
}

.film-strip.cylinder-ring .event-card-frame::before {
  content: none;
}

.film-strip.cylinder-ring .event-card-frame::after {
  content: none;
}

.film-strip.cylinder-ring .event-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  transition: transform 0.28s ease;
  position: relative;
  z-index: 1;
}

.film-strip.cylinder-ring .event-card-body {
  display: grid;
  gap: 0.22rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.film-strip.cylinder-ring .event-card-name {
  margin: 0;
  color: #ffeaad;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: clamp(0.56rem, 0.92vw, 0.74rem);
  line-height: 1.1;
  overflow-wrap: break-word;
  word-break: break-word;
}

.film-strip.cylinder-ring .event-card-category {
  margin: 0;
  color: rgba(157, 235, 247, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.6rem;
}

.film-strip.cylinder-ring .event-card:hover .event-card-inner,
.film-strip.cylinder-ring .event-card:focus-visible .event-card-inner {
  border-color: rgba(255, 216, 117, 0.44);
}

.film-strip.cylinder-ring .event-card.is-active-frame .event-card-inner {
  border-color: transparent;
  box-shadow:
    0 28px 58px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(248, 180, 45, 0.34),
    0 0 30px rgba(248, 180, 45, 0.2),
    0 0 24px rgba(67, 233, 255, 0.14);
}

.film-strip.cylinder-ring .event-card.is-active-frame .event-card-face-back {
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.26),
    0 0 20px rgba(67, 233, 255, 0.12);
}

.film-strip.cylinder-ring .event-card.is-active-frame .event-card-frame img {
  transform: scale(1.02);
  filter: none;
}

.film-nav-arrow {
  position: absolute;
  top: 50%;
  z-index: 60;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 233, 165, 0.92);
  color: #fff2c5;
  background:
    radial-gradient(circle at 35% 28%, rgba(67, 233, 255, 0.32), rgba(8, 16, 50, 0.9) 60%),
    linear-gradient(180deg, rgba(14, 34, 98, 0.97), rgba(9, 15, 44, 0.96));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.48),
    0 0 22px rgba(248, 180, 45, 0.34),
    0 0 0 1px rgba(255, 233, 165, 0.22);
  transform: translateY(-50%);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.film-nav-arrow:hover {
  border-color: #ffe7a0;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.54), 0 0 28px rgba(248, 180, 45, 0.3);
}

.film-nav-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.film-nav-arrow svg {
  width: 1.45rem;
  height: 1.45rem;
  stroke-width: 2.8;
}

.film-nav-prev {
  left: clamp(0.7rem, 1.8vw, 1.8rem);
}

.film-nav-next {
  right: clamp(0.7rem, 1.8vw, 1.8rem);
}

.film-pagination {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  transform: none;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto clamp(0.65rem, 1.4vw, 1rem);
  padding: 0.78rem 1.1rem;
  border: 1px solid rgba(255, 216, 117, 0.2);
  border-radius: 999px;
  background: rgba(8, 15, 45, 0.54);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.film-pagination-dot {
  display: none;
}

.carousel-hint {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.68rem;
}

@media (max-width: 980px) {
  .film-stage-wrap {
    margin-top: 12rem;
  }

  .cylinder-viewport {
    height: clamp(18.5rem, 49vw, 29rem);
  }

  .film-strip.cylinder-ring {
    height: clamp(17rem, 47vw, 24rem);
  }

  .film-nav-prev {
    left: 0.45rem;
  }

  .film-nav-next {
    right: 0.45rem;
  }

  .film-strip.cylinder-ring .event-card {
    width: var(--carousel-card-width, 108px);
    height: var(--carousel-card-height, 152px);
  }

  .film-strip.cylinder-ring .event-card-name {
    font-size: 0.82rem;
  }

  .film-pagination {
    padding: 0.72rem 0.95rem;
  }
}

@media (max-width: 767px) {
  .film-stage-wrap {
    --carousel-radius: 300px;
    margin-top: 9.2rem;
  }

  .selected-work {
    gap: 0.8rem;
    min-height: calc(100vh - 6.5rem);
    padding-bottom: 0.4rem;
  }

  .active-showcase {
    padding: 1.05rem 0.9rem 1.2rem;
    gap: 0.55rem;
  }

  .active-showcase__title {
    font-size: clamp(2.35rem, 11vw, 3.9rem);
  }

  .film-strip.cylinder-ring {
    height: clamp(15rem, 63vw, 19.25rem);
  }

  .cylinder-viewport {
    height: clamp(15rem, 63vw, 19.625rem);
  }

  .film-strip.cylinder-ring .event-card {
    width: var(--carousel-card-width, 86px);
    height: var(--carousel-card-height, 124px);
  }

  .film-strip.cylinder-ring .event-card-inner {
    gap: 0.42rem;
    padding: 0.58rem 0.58rem 0.72rem;
    border-radius: 1rem;
  }

  .film-strip.cylinder-ring .event-card-name {
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .film-strip.cylinder-ring .event-card-category {
    font-size: 0.52rem;
    letter-spacing: 0.16em;
  }

  .film-nav-arrow {
    width: 2.9rem;
    height: 2.9rem;
  }

  .film-nav-arrow svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  .film-pagination {
    padding: 0.6rem 0.85rem;
  }

  .carousel-hint {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
  }
}

  /* Final single-ring design system overrides. */
  .events-react-root {
    display: block !important;
    background:
      radial-gradient(circle at 50% -8%, rgba(67, 108, 215, 0.23), transparent 44%),
      radial-gradient(circle at 18% 68%, rgba(37, 128, 176, 0.14), transparent 39%),
      radial-gradient(circle at 84% 70%, rgba(232, 173, 83, 0.12), transparent 41%),
      linear-gradient(180deg, #030717 0%, #050b1f 48%, #02050f 100%) !important;
  }

  .events-react-root .selected-work {
    width: min(1220px, 100%) !important;
    margin: 0 auto !important;
    min-height: auto !important;
    padding: clamp(0.75rem, 1.6vw, 1.4rem) clamp(0.6rem, 1.2vw, 1.2rem) clamp(2rem, 3.2vw, 2.8rem) !important;
  }

  .events-react-root .events-preview-rail,
  .events-react-root .events-preview-card {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .events-react-root .active-showcase {
    width: min(980px, 100%) !important;
    margin: 0 auto clamp(0.7rem, 1.4vw, 1.15rem) !important;
    padding: clamp(0.95rem, 1.8vw, 1.4rem) clamp(1.1rem, 2.2vw, 1.8rem) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 225, 148, 0.26) !important;
    background: linear-gradient(180deg, rgba(9, 20, 56, 0.78), rgba(5, 11, 32, 0.64)) !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 225, 148, 0.08) inset !important;
    backdrop-filter: blur(10px) !important;
  }

  .events-react-root .active-showcase__title {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(1.55rem, 3.85vw, 3.65rem) !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-align: center !important;
  }

  .events-react-root .active-showcase__cta {
    border-radius: 999px !important;
    padding: 0.78rem 1.5rem !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    box-shadow: 0 10px 26px rgba(248, 180, 45, 0.28) !important;
  }

  .events-react-root .film-stage-wrap {
    --carousel-stage-height: clamp(20rem, 38vh, 30rem);
    margin-top: clamp(0.7rem, 1.4vw, 1.1rem) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-bottom: clamp(1.2rem, 2.2vw, 1.8rem) !important;
    overflow: hidden;
  }

  .events-react-root .film-strip-shell,
  .events-react-root .cylinder-stage {
    border-radius: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .events-react-root .cylinder-viewport {
    min-height: var(--carousel-stage-height) !important;
    height: var(--carousel-stage-height) !important;
    max-height: 30rem !important;
    background: transparent !important;
    overflow: hidden !important;
    clip-path: none !important;
    padding-inline: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  .events-react-root .react-carousel-host,
  .events-react-root .react-carousel-canvas {
    display: block !important;
    visibility: visible !important;
  }

  .events-react-root .react-carousel-canvas {
    filter: saturate(1.04) contrast(1.04) drop-shadow(0 26px 44px rgba(0, 0, 0, 0.26)) !important;
  }

  .events-react-root .cylinder-glow {
    display: none !important;
  }

  .events-react-root .film-nav-arrow {
    width: 3.35rem !important;
    height: 3.35rem !important;
    border-color: rgba(255, 232, 169, 0.7) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.44), 0 0 18px rgba(248, 180, 45, 0.24) !important;
  }

  .events-react-root .film-nav-prev {
    left: max(0.65rem, env(safe-area-inset-left)) !important;
  }

  .events-react-root .film-nav-next {
    right: max(0.65rem, env(safe-area-inset-right)) !important;
  }

  .events-react-root .film-pagination {
    margin: 0 auto clamp(0.6rem, 1.2vw, 0.9rem) !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 225, 148, 0.18) !important;
    background: rgba(6, 11, 31, 0.32) !important;
    box-shadow: none !important;
    backdrop-filter: blur(6px) !important;
  }

  @media (min-width: 1400px) {
    .events-react-root .film-stage-wrap {
      margin-top: clamp(0.65rem, 1vw, 0.9rem) !important;
      --carousel-stage-height: clamp(21rem, 36vh, 30rem);
    }
  }

  @media (max-width: 767px) {
    .events-react-root .selected-work {
      padding-top: 0.25rem !important;
      padding-bottom: 1.1rem !important;
      gap: 0.45rem !important;
    }

    .events-react-root .active-showcase {
      margin-bottom: 0 !important;
      padding: 0.85rem 0.9rem 1rem !important;
      border-radius: 22px !important;
    }

    .events-react-root .active-showcase__title {
      font-size: clamp(1rem, 4.9vw, 1.55rem) !important;
      max-width: 100% !important;
      line-height: 1.08 !important;
    }

    .events-react-root .active-showcase__meta {
      gap: 0.65rem !important;
    }

    .events-react-root .active-showcase__cta {
      min-height: 2.85rem !important;
      padding: 0.68rem 1.2rem !important;
    }

    .events-react-root .film-stage-wrap {
      --carousel-stage-height: clamp(17rem, 42vh, 22rem);
      width: 100% !important;
      max-width: 100% !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      padding-inline: 0 !important;
      padding-bottom: 0.95rem !important;
    }

    .events-react-root .cylinder-viewport {
      width: 100% !important;
      max-width: 100% !important;
      margin-left: 0 !important;
      min-height: var(--carousel-stage-height) !important;
      height: var(--carousel-stage-height) !important;
      max-height: 22rem !important;
      overflow: hidden !important;
    }

    .events-react-root .film-nav-prev {
      left: max(0.7rem, env(safe-area-inset-left)) !important;
    }

    .events-react-root .film-nav-next {
      right: max(0.7rem, env(safe-area-inset-right)) !important;
    }

    .events-react-root .film-pagination {
      margin: 0 auto 0.55rem !important;
      padding: 0.58rem 0.82rem !important;
    }
  }

/* Event category filter panel — leaderboard table aesthetic */
.events-react-root .ev-cat-panel {
  position: relative;
  z-index: 4;
  width: min(940px, 100%);
  margin: 0 auto clamp(0.85rem, 1.6vw, 1.25rem);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 18%, rgba(154, 196, 255, 0.2), transparent 28%),
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.6px),
    radial-gradient(circle at 92% 18%, rgba(255, 215, 106, 0.18) 0 1px, transparent 1.6px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(96, 121, 205, 0.07) 42%, rgba(255, 255, 255, 0.06));
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.36),
    0 0 48px rgba(117, 154, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px) saturate(1.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
  overflow: hidden;
}

.events-react-root .ev-cat-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 22% 0%, rgba(205, 220, 255, 0.12), transparent 28%),
    radial-gradient(circle at 84% 100%, rgba(255, 215, 106, 0.07), transparent 26%);
  pointer-events: none;
}

.events-react-root .ev-cat-panel__meta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 14px 14px 16px;
}

.events-react-root .ev-cat-panel__kicker {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.events-react-root .ev-cat-panel__title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(18px, 2.6vw, 30px);
  font-weight: 400;
  letter-spacing: 0.16em;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(154, 196, 255, 0.16);
  text-align: left;
}

.events-react-root .ev-cat-panel__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.events-react-root .ev-cat-btn--all.is-active {
  border-color: rgba(255, 225, 148, 0.42);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 225, 148, 0.2), transparent 24px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(248, 180, 45, 0.1));
}

.events-react-root .ev-cat-btn {
  position: relative;
  min-width: 132px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.74);
  font-family: 'Rajdhani', sans-serif;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.events-react-root .ev-cat-btn strong,
.events-react-root .ev-cat-btn span {
  display: block;
}

.events-react-root .ev-cat-btn strong {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.08em;
}

.events-react-root .ev-cat-btn span {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  line-height: 1.35;
}

.events-react-root .ev-cat-btn:hover,
.events-react-root .ev-cat-btn:focus-visible {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(150, 180, 255, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.04);
  outline: none;
}

.events-react-root .ev-cat-btn.is-active {
  border-color: rgba(255, 255, 255, 0.32);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.18), transparent 24px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(120, 150, 255, 0.08));
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(150, 180, 255, 0.14),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.events-react-root .ev-cat-btn.is-active strong {
  color: #fff;
}

.events-react-root .ev-cat-btn.is-active span {
  color: rgba(255, 255, 255, 0.62);
}

/* Category filter drawer — slides in from right, no layout shift */
.ev-filter-drawer {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 100;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.ev-filter-toggle {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 76px;
  padding: 10px 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-right: none;
  border-radius: 10px 0 0 10px;
  background:
    radial-gradient(circle at 60% 12%, rgba(212, 175, 55, 0.12), transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1.6px),
    linear-gradient(160deg, rgba(212, 175, 55, 0.06), rgba(96, 121, 205, 0.03) 48%, rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(212, 175, 55, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.ev-filter-toggle__icon {
  display: block;
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: opacity 0.25s ease, transform 0.25s ease;
  margin-top: 2px;
}

.ev-filter-toggle__label {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 1.5;
  font-weight: 400;
  transition: color 0.25s ease;
}

.ev-filter-toggle__dot {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 rgba(212, 175, 55, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  margin-top: auto;
}

.ev-filter-toggle:hover {
  color: rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(circle at 60% 12%, rgba(212, 175, 55, 0.18), transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1.6px),
    linear-gradient(160deg, rgba(212, 175, 55, 0.1), rgba(96, 121, 205, 0.05) 48%, rgba(255, 255, 255, 0.05));
  transform: translateX(-2px) scale(1.03);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(212, 175, 55, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ev-filter-toggle:hover .ev-filter-toggle__icon {
  opacity: 0.9;
  transform: scale(1.1);
}

.ev-filter-toggle.is-open {
  color: rgba(212, 175, 55, 0.85);
  border-color: rgba(212, 175, 55, 0.35);
  background:
    radial-gradient(circle at 60% 12%, rgba(212, 175, 55, 0.2), transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1.6px),
    linear-gradient(160deg, rgba(212, 175, 55, 0.12), rgba(96, 121, 205, 0.04) 48%, rgba(255, 255, 255, 0.04));
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(212, 175, 55, 0.1),
    inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.ev-filter-toggle.is-open .ev-filter-toggle__icon {
  opacity: 1;
}

.ev-filter-toggle.is-open .ev-filter-toggle__dot {
  background: rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
}

.ev-filter-drawer__panel {
  position: absolute;
  top: 50%;
  right: 40px;
  width: 260px;
  transform: translateY(-50%) translateX(20px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.ev-filter-drawer__panel.is-open {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Panel overrides inside drawer */
.ev-filter-drawer__panel .ev-cat-panel {
  width: 100%;
  margin: 0;
}

.ev-filter-drawer__panel .ev-cat-panel__meta {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  padding: 10px 10px 10px 12px;
}

.ev-filter-drawer__panel .ev-cat-panel__kicker {
  display: none;
}

.ev-filter-drawer__panel .ev-cat-panel__title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  padding: 2px 0;
  flex-shrink: 0;
  min-width: auto;
  font-weight: 300;
  text-shadow: none;
  line-height: 1.6;
}

.ev-filter-drawer__panel .ev-cat-panel__summary {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
  justify-content: flex-start;
}

.ev-filter-drawer__panel .ev-cat-btn {
  min-width: 0;
  padding: 6px 10px;
  text-align: left;
}

.ev-filter-drawer__panel .ev-cat-btn strong {
  font-size: 12px;
}

.ev-filter-drawer__panel .ev-cat-btn span {
  font-size: 8px;
  margin-top: 2px;
}

.events-filter-stage {
  position: relative;
  width: 100%;
  display: grid;
  gap: inherit;
}

.events-filter-stage.is-filter-enter .active-showcase {
  animation: eventsFilterReveal 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.events-filter-stage.is-filter-enter .film-stage-wrap {
  animation: eventsFilterReveal 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.07s both;
}

.events-filter-stage.is-filter-enter .active-showcase__title span {
  animation: eventsTitleSwap 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

.events-filter-stage.is-filter-enter .active-showcase__count {
  animation: eventsCountPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.events-react-root .ev-cat-panel.is-filter-sheen::after {
  content: '';
  position: absolute;
  inset: -40% -18%;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.2) 48%, transparent 64%);
  opacity: 0;
  transform: translateX(-42%);
  pointer-events: none;
  animation: evCatSheen 0.82s ease both;
}

.events-react-root .ev-cat-panel.is-filter-sheen .ev-cat-btn.is-active {
  animation: evCatBtnPulse 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes eventsFilterReveal {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes eventsTitleSwap {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    letter-spacing: 0.04em;
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0;
  }
}

@keyframes eventsCountPop {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }

  70% {
    transform: scale(1.04);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes evCatSheen {
  0% {
    opacity: 0;
    transform: translateX(-42%);
  }

  18% {
    opacity: 0.65;
  }

  100% {
    opacity: 0;
    transform: translateX(42%);
  }
}

@keyframes evCatBtnPulse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .events-filter-stage.is-filter-enter .active-showcase,
  .events-filter-stage.is-filter-enter .film-stage-wrap,
  .events-filter-stage.is-filter-enter .active-showcase__title span,
  .events-filter-stage.is-filter-enter .active-showcase__count,
  .events-react-root .ev-cat-panel.is-filter-sheen::after,
  .events-react-root .ev-cat-panel.is-filter-sheen .ev-cat-btn.is-active {
    animation: none !important;
  }
}

@media (max-width: 767px) {
  .ev-filter-drawer {
    top: auto;
    bottom: 80px;
    transform: none;
  }

  .ev-filter-toggle {
    width: 34px;
    height: 64px;
    padding: 8px 0;
    border-radius: 8px 0 0 8px;
    gap: 5px;
  }

  .ev-filter-toggle__icon {
    width: 12px;
    height: 12px;
  }

  .ev-filter-toggle__label {
    font-size: 7px;
    letter-spacing: 0.14em;
  }

  .ev-filter-drawer__panel {
    width: 220px;
    right: 34px;
  }

  .ev-filter-drawer__panel .ev-cat-panel__title {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .ev-filter-drawer__panel .ev-cat-btn {
    padding: 5px 8px;
  }

  .ev-filter-drawer__panel .ev-cat-btn strong {
    font-size: 11px;
  }

  .ev-filter-drawer__panel .ev-cat-btn span {
    font-size: 7px;
  }

  .events-react-root .ev-cat-panel {
    padding: 10px;
    margin-bottom: 0.7rem;
  }

  .events-react-root .ev-cat-panel__meta {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 10px 14px;
  }

  .events-react-root .ev-cat-panel__title {
    font-size: 18px;
    letter-spacing: 0.12em;
    text-align: center;
  }

  .events-react-root .ev-cat-panel__kicker {
    text-align: center;
  }

  .events-react-root .ev-cat-panel__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    justify-content: stretch;
  }

  .events-react-root .ev-cat-btn {
    min-width: 0;
    padding: 9px 8px;
  }

  .events-react-root .ev-cat-btn strong {
    font-size: 11px;
  }

  .events-react-root .ev-cat-btn span {
    font-size: 7px;
    letter-spacing: 0.1em;
  }
}
