:root {
  --bg-main: #0c0c0c;
  --bg-soft: #171717;
  --text: #f6f6f6;
  --muted: #b8b8b8;
  --onyx-purple: #c7a6ff;
  --onyx-purple-strong: #9f6bff;
  --accent-soft: #f1e8ff;
  --line: #2b2b2b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-main);
  color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

em {
  color: var(--onyx-purple);
  font-style: normal;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 36vw;
  height: 36vw;
  top: -8vw;
  right: -8vw;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(199, 166, 255, 0.38), rgba(199, 166, 255, 0));
}

body::after {
  width: 48vw;
  height: 28vw;
  bottom: -10vw;
  left: -12vw;
  transform: rotate(-8deg);
  background: linear-gradient(120deg, rgba(159, 107, 255, 0.24), rgba(159, 107, 255, 0));
}

.hero {
  height: calc(100vh - clamp(3.25rem, 6vh, 4.5rem));
  height: calc(100svh - clamp(3.25rem, 6vh, 4.5rem));
  min-height: 480px;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.92), rgba(12, 12, 12, 1));
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.2) 60%),
    linear-gradient(0deg, rgba(12, 12, 12, 1) 4%, rgba(12, 12, 12, 0) 55%);
}

.topbar {
  position: absolute;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0 clamp(1rem, 2.5vw, 2.5rem);
}

.hero-banner-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-banner-track {
  position: relative;
  height: 100%;
}

.hero-banner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(5.8rem, 9vh, 7rem) clamp(1rem, 2.5vw, 2.5rem) 2rem;
  border-radius: 0;
  border: none;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1500ms ease;
  background: var(--hero-bg) center/cover no-repeat;
}

.hero-banner.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(94deg, rgba(8, 8, 10, 0.86), rgba(8, 8, 10, 0.28) 62%),
    linear-gradient(0deg, rgba(8, 8, 10, 0.78), rgba(8, 8, 10, 0.02) 50%);
}

.hero-nav-group {
  display: none;
}

.hero-nav-btn {
  position: static;
  width: clamp(2.3rem, 3.4vw, 2.8rem);
  height: clamp(2.3rem, 3.4vw, 2.8rem);
  border: 1px solid rgba(199, 166, 255, 0.38);
  border-radius: 0.7rem;
  background: rgba(8, 8, 14, 0.68);
  color: #f7f0ff;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.hero-nav-btn:hover {
  transform: scale(1.03);
  border-color: rgba(199, 166, 255, 0.78);
  background: rgba(26, 18, 42, 0.86);
}

.hero-pagination {
  position: absolute;
  right: clamp(1rem, 2.5vw, 2.5rem);
  left: auto;
  transform: none;
  bottom: 2rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(241, 232, 255, 0.48);
  background: rgba(10, 10, 12, 0.45);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.hero-dot:hover,
.hero-dot:focus-visible {
  transform: scale(1.12);
  border-color: rgba(241, 232, 255, 0.85);
}

.hero-dot.is-active {
  background: var(--onyx-purple);
  border-color: rgba(241, 232, 255, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: clamp(3.75rem, 7vw, 6.875rem);
}

.brand picture {
  display: block;
  width: 100%;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  text-decoration: none;
  background: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.45rem;
}

.top-social {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.top-social svg {
  width: 1.1rem;
  height: 1.1rem;
}

.top-cta:hover {
  transform: translateY(-2px);
}

.top-social:hover {
  transform: translateY(-2px);
}

.top-social:focus-visible,
.top-cta:focus-visible {
  outline: 2px solid var(--onyx-purple);
  outline-offset: 2px;
}

.hero-content {
  max-width: 680px;
  margin-top: auto;
  position: relative;
  z-index: 2;
  padding: clamp(0.95rem, 2vw, 1.35rem) clamp(0.95rem, 2.2vw, 1.45rem);
  border-radius: 0.85rem;
  background: linear-gradient(120deg, rgba(8, 8, 12, 0.86), rgba(8, 8, 12, 0.68));
  border: 1px solid rgba(241, 232, 255, 0.18);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(2px);
  animation: slideIn 600ms ease-out both;
}

.eyebrow {
  margin: 0;
  color: var(--accent-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.7rem, 4.3vw, 3.5rem);
  line-height: 1.04;
}

.hero-copy {
  margin: 0 0 1.4rem;
  font-size: clamp(1.02rem, 1.1vw, 1.18rem);
  line-height: 1.62;
  letter-spacing: 0.004em;
  color: #f5f5f5;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  text-decoration: none;
  padding: 0.78rem 1.2rem;
  border-radius: 0.4rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.btn-solid {
  background: linear-gradient(135deg, #8f56ff, #6f39df);
  color: #fff;
  border-color: rgba(241, 232, 255, 0.34);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow: 0 10px 20px rgba(28, 14, 56, 0.35);
}

.btn-solid:hover,
.btn-solid:focus-visible {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.08) saturate(1.08);
  box-shadow:
    0 14px 30px rgba(32, 14, 66, 0.55),
    0 0 0 1px rgba(241, 232, 255, 0.24) inset,
    0 0 18px rgba(159, 107, 255, 0.35);
}

.btn-solid:active {
  transform: translateY(0) scale(0.995);
}

.btn-ghost {
  background: rgba(11, 11, 16, 0.62);
  color: #f7efff;
  border-color: rgba(199, 166, 255, 0.52);
  box-shadow: 0 8px 20px rgba(6, 6, 10, 0.35);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-2px) scale(1.015);
  background: rgba(24, 16, 38, 0.82);
  border-color: rgba(199, 166, 255, 0.85);
  box-shadow:
    0 14px 28px rgba(8, 8, 14, 0.5),
    0 0 0 1px rgba(199, 166, 255, 0.25) inset;
}

.btn-ghost:active {
  transform: translateY(0) scale(0.995);
}

.rows-wrap {
  padding-bottom: 3rem;
  overflow-x: clip;
}

.row {
  margin-top: 1rem;
  overflow-x: clip;
}

.row-head {
  padding: 0 clamp(1rem, 2.5vw, 2.5rem);
}

.row-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

.scroller-wrap {
  position: relative;
}

.scroll-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(2.8rem, 5vw, 4.5rem);
  z-index: 10;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 100;
  line-height: 1;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  /* prevent text selecting the chevron on fast clicks */
  user-select: none;
}

.scroll-btn--prev {
  left: 0;
  background: linear-gradient(90deg, rgba(12, 12, 12, 0.92) 30%, transparent);
}

.scroll-btn--next {
  right: 0;
  background: linear-gradient(270deg, rgba(12, 12, 12, 0.92) 30%, transparent);
}

/* only show a button when JS has determined that direction is scrollable */
.row:hover .scroller-wrap.has-prev .scroll-btn--prev,
.row:hover .scroller-wrap.has-next .scroll-btn--next {
  opacity: 1;
  pointer-events: auto;
}

.scroll-btn:hover {
  opacity: 1 !important;
  color: var(--onyx-purple);
}

.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 26vw, 360px);
  gap: 1.1rem;
  overflow-x: auto;
  /* vertical padding gives scaled cards room so they don't hit the clip edge */
  padding: 1.5rem clamp(1rem, 2.5vw, 2.5rem);
  /* hide scrollbar visually while keeping it functional */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  align-items: start;
}

.scroller::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

.event-card {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  padding: 0;
  transform-origin: center bottom;
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
  position: relative;
  will-change: transform;
  overflow: hidden;
  border-radius: 0.4rem;
}

.event-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}

.event-card .card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 0.75rem 0.55rem;
  border-radius: 0 0 0.4rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: linear-gradient(to top, rgba(12, 12, 12, 1) 0%, rgba(8, 4, 18, 0.82) 55%, rgba(8, 4, 18, 0.00) 100%);
  color: var(--text);
  text-shadow: none;
  pointer-events: none;
}

.event-card .card-label-title {
  font-size: clamp(1rem, 1.28vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.32;
  color: #f5ecff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  font-family: "Archivo Narrow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 100%);
  mask-image: linear-gradient(to right, #000 70%, transparent 100%);
}

.event-card .card-label-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.event-card .card-label-time, .event-card .card-label-tag {
  display: inline-flex;
  padding: 0.15rem 0.60rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #f7f1ff;
  background: rgba(12, 12, 16, 0.82);
  border: 1px solid rgba(199, 166, 255, 0.58);
  box-shadow:
  0 0 0 1px rgba(255, 255, 255, 0.08) inset,
  0 4px 12px rgba(10, 8, 18, 0.42);
}

.event-card .card-label-tag {
    align-items: center;
    text-transform: uppercase;
    color: #efe8fb;
    background: linear-gradient(135deg, rgba(95, 52, 176, 0.88), rgba(67, 35, 134, 0.9));
    border: 1px solid rgba(219, 197, 255, 0.66);
}

.event-card .card-label-time p {
  margin: 0;
  font-weight: 400;
}

.event-card .card-label-time em,
.event-card .card-label-time strong {
  color: inherit;
  font-style: normal;
  font-weight: 400;
}

.event-card:hover,
.event-card:focus-visible {
  transform: scale(1.08);
  z-index: 5;
  filter: saturate(1.1);
  outline: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow-y: auto;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
  z-index: 40;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal-panel {
  position: relative;
  max-width: 820px;
  margin: auto;
  width: min(92vw, 820px);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, var(--bg-soft), #0e0e14);
  border: 1px solid #1f1f2a;
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 25px 70px rgba(0, 0, 0, 0.5);
  transform: translateY(18px);
  transition: transform 230ms ease;
}

.modal.is-open .modal-panel {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 1px solid rgba(199, 166, 255, 0.45);
  background: rgba(199, 166, 255, 0.12);
  color: var(--accent-soft);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
}

.modal h3 {
  margin: 0 2rem 0.75rem 0;
  font-size: clamp(1.2rem, 2.7vw, 1.9rem);
  font-weight: 800;
  color: var(--onyx-purple);
  line-height: 1.3;
}

.modal-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 1rem;
  border: 1px solid #1f1f2a;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0 0 1.1rem;
}

.meta-grid > div {
  border: 1px solid rgba(159, 107, 255, 0.25);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  background: rgba(18, 18, 24, 0.7);
}

.meta-grid dt {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-grid dd {
  margin: 0.25rem 0 0;
  font-weight: 400;
  color: var(--accent-soft);
}

#modalDescription {
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

#modalDescription p {
  margin: 0 0 0.75rem;
}

#modalDescription p:last-child {
  margin-bottom: 0;
}

#modalDescription a {
  color: var(--onyx-purple);
  text-decoration-color: rgba(199, 166, 255, 0.78);
  text-underline-offset: 0.14em;
  text-decoration-thickness: 0.08em;
}

#modalDescription a:hover,
#modalDescription a:focus-visible {
  color: var(--accent-soft);
  text-decoration-color: var(--accent-soft);
}

#modalDescription ul,
#modalDescription ol {
  margin: 0 0 0.75rem 1.1rem;
  color: var(--muted);
}

#modalLink {
  display: inline-block;
  margin-top: 0.9rem;
}

.no-scroll {
  overflow: hidden;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .hero {
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .topbar {
    position: relative;
    top: 0;
    left: auto;
    right: auto;
    padding: 0.7rem clamp(0.9rem, 4vw, 1.2rem);
    align-items: center;
    gap: 0.6rem;
    background: #08080c;
    border-bottom: 1px solid rgba(241, 232, 255, 0.14);
  }

  .hero-banner-wrap {
    position: relative;
    inset: auto;
    display: block;
  }

  .hero-banner-track {
    position: relative;
    height: auto;
    min-height: auto;
    overflow: hidden;
  }

  .topbar-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .top-social {
    width: 2.1rem;
    height: 2.1rem;
  }

  .hero-banner {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: minmax(clamp(12rem, 42vh, 17rem), auto) auto;
    padding: 0;
    border-radius: 0;
    background: #08080c;
    background-color: #08080c;
  }

  .hero-banner.is-active {
    position: relative;
    inset: auto;
    z-index: 1;
    animation: none;
  }

  .hero-banner::before {
    content: "";
    position: relative;
    grid-row: 1;
    display: block;
    min-height: clamp(12rem, 42vh, 17rem);
    background:
      linear-gradient(180deg, rgba(8, 8, 10, 0.28) 0%, rgba(8, 8, 10, 0.12) 48%, rgba(8, 8, 10, 0) 100%),
      var(--hero-bg) center top / cover no-repeat;
  }

  .hero-content {
    max-width: none;
    grid-row: 2;
    margin-top: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 0.8rem clamp(0.85rem, 3.5vw, 1.05rem) 0.9rem;
    background: #08080c;
    box-shadow: none;
    animation: none;
  }

  .hero h1 {
    margin: 0.38rem 0 0.72rem;
    font-size: clamp(1.55rem, 6.2vw, 2.1rem);
    line-height: 1.08;
  }

  .hero-copy {
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
    line-height: 1.48;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .hero-actions .btn {
    padding: 0.64rem 0.9rem;
    font-size: 0.86rem;
  }

  .top-cta {
    padding: 0.58rem 0.92rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .hero-nav-group {
    bottom: 0.75rem;
    right: 0.9rem;
    gap: 0.4rem;
  }

  .hero-nav-btn {
    height: 2.35rem;
    width: 2.15rem;
    border-radius: 0.65rem;
    font-size: 1.5rem;
  }

  .hero-pagination {
    position: relative;
    left: auto;
    right: auto;
    transform: none;
    bottom: auto;
    align-self: center;
    justify-content: center;
    width: 100%;
    padding: 0.55rem 0 0.85rem;
    gap: 0.45rem;
  }

  .hero-dot {
    width: 0.56rem;
    height: 0.56rem;
  }

  .hero-nav-btn:hover {
    transform: scale(1.03);
  }

  .scroller {
    grid-auto-columns: clamp(220px, 72vw, 320px);
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) {
  .event-card:hover,
  .event-card:focus-visible,
  .btn-solid:hover,
  .btn-solid:focus-visible,
  .btn-ghost:hover,
  .btn-ghost:focus-visible,
  .top-cta:hover,
  .top-social:hover,
  .hero-dot:hover,
  .hero-dot:focus-visible,
  .hero-nav-btn:hover {
    transform: none;
    filter: none;
    box-shadow: none;
  }

  .event-card:hover {
    z-index: auto;
  }
}
