* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #09061a;
  overflow-x: hidden;
}

.festival-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 20%, rgba(239, 42, 168, 0.28), transparent 32%),
    radial-gradient(circle at 84% 72%, rgba(61, 53, 255, 0.28), transparent 36%),
    linear-gradient(90deg, rgba(8, 4, 27, 0.93) 0%, rgba(8, 4, 27, 0.78) 48%, rgba(8, 4, 27, 0.46) 100%),
    url("assets/hero-bg.webp") center / cover no-repeat;
}

.festival-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: clamp(26px, 5vw, 82px);
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(32px, 7vw, 88px) 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.festival-logo {
  display: block;
  width: min(320px, 68vw);
  height: auto;
  margin: 0 0 clamp(26px, 4vw, 44px);
}

.event-meta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 15px;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.88;
  font-weight: 950;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead {
  max-width: 570px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2.5vw, 26px);
  line-height: 1.35;
  font-weight: 760;
}

.ticket-cta {
  display: inline-flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  padding: 0 30px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #3d35ff 0%, #8a00ff 48%, #ef2aa8 100%);
  box-shadow: 0 18px 42px rgba(239, 42, 168, 0.34);
  font-size: 18px;
  font-weight: 950;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.ticket-cta:hover,
.ticket-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(239, 42, 168, 0.44);
}

.hero-lineup {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(8, 4, 27, 0.48);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(14px);
}

.lineup-kicker {
  margin: 0 0 16px;
  color: #ffcf33;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.artist-marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 10px 0 28px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.artist-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: artist-marquee 52s linear infinite;
}

.artist-marquee:hover .artist-track {
  animation-play-state: paused;
}

.artist-set {
  display: flex;
  gap: 18px;
}

.artist-card {
  flex: 0 0 auto;
  width: clamp(156px, 14vw, 206px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
  transform: translateY(0) rotate(-1deg);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.artist-card:nth-child(even) {
  transform: translateY(18px) rotate(1deg);
}

.artist-card:hover {
  border-color: rgba(255, 207, 51, 0.72);
  box-shadow: 0 28px 68px rgba(239, 42, 168, 0.3);
  transform: translateY(-6px) scale(1.02);
}

.artist-card:nth-child(even):hover {
  transform: translateY(10px) scale(1.02);
}

.artist-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #15102d;
}

.artist-card h3 {
  margin: 0;
  padding: 15px 16px 17px;
  color: #fff;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

@keyframes artist-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@media (max-width: 860px) {
  .festival-page {
    background:
      radial-gradient(circle at 50% 20%, rgba(239, 42, 168, 0.28), transparent 36%),
      linear-gradient(180deg, rgba(8, 4, 27, 0.72) 0%, rgba(8, 4, 27, 0.95) 68%, #08041b 100%),
      url("assets/hero-bg.webp") center / cover no-repeat;
  }

  .festival-hero {
    min-height: 100svh;
    grid-template-columns: 1fr;
    width: min(100% - 32px, 620px);
    gap: 28px;
    text-align: center;
  }

  h1,
  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .festival-logo {
    margin-inline: auto;
  }

  .ticket-cta {
    width: min(100%, 360px);
  }

  .hero-lineup {
    width: 100%;
    padding: 16px;
    text-align: left;
  }

  .artist-card {
    width: 178px;
  }
}

@media (max-width: 430px) {
  .festival-hero {
    width: min(100% - 24px, 620px);
    padding: 22px 0 34px;
  }

  .event-meta {
    min-height: 34px;
    font-size: 11px;
  }

  .festival-logo {
    width: min(250px, 74vw);
    margin-bottom: 20px;
  }

  .lead {
    margin-top: 18px;
  }

  .ticket-cta {
    min-height: 56px;
    margin-top: 26px;
    font-size: 16px;
  }

  .lineup-kicker {
    text-align: center;
  }

  .artist-track,
  .artist-set {
    gap: 14px;
  }

  .artist-card {
    width: 154px;
    border-radius: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .artist-track {
    width: auto;
    overflow-x: auto;
    padding: 0 18px;
    animation: none;
    scroll-snap-type: x mandatory;
  }

  .artist-set[aria-hidden="true"] {
    display: none;
  }

  .artist-card {
    scroll-snap-align: center;
  }
}
