/* =========================================
   ARWFEST 2026 — HOMEPAGE
   Festival-poster layout inspired by the supplied reference,
   while preserving the existing pink / plum ARW palette.
   ========================================= */

/* --- HOME FRAME + NAV --- */
body {
  background: #241620;
}

main,
.site-footer {
  width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}

main {
  margin-top: 78px;
  overflow: hidden;
  box-shadow: none;
}

.navbar {
  left: 0;
  transform: none;
  width: 100%;
  min-height: 78px;
  padding: 0 3.5rem;
  background: rgba(84, 51, 60, 0.98);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.navbar.navbar-scrolled {
  padding: 0 3.5rem;
  background: rgba(69, 39, 50, .96);
}
.nav-logo { height: 46px; }
.nav-links { gap: 2.2rem; }
.nav-links a { font-size: .72rem; letter-spacing: .13em; opacity: .78; }
.nav-actions { margin-left: 1.2rem; }

/* --- HERO --- */
.hero-section {
  position: relative;
  min-height: calc(100vh - 78px);
  min-height: calc(100svh - 78px);
  height: calc(100vh - 78px);
  height: calc(100svh - 78px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #542f48;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 239, 228, .38) 0 3%, transparent 18%),
    radial-gradient(circle at 20% 18%, rgba(255, 166, 183, .28), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(255, 203, 187, .24), transparent 30%),
    linear-gradient(145deg, #8f4266 0%, #b95d7b 30%, #69354f 62%, #2a1727 100%);
}
.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  top: -12%;
  width: 36%;
  height: 95%;
  background: linear-gradient(180deg, rgba(255,245,230,.42), rgba(255,117,163,.04) 70%);
  filter: blur(8px);
  opacity: .62;
  clip-path: polygon(44% 0, 62% 0, 100% 100%, 0 100%);
}
.hero-media::before { left: 9%; transform: rotate(-12deg); }
.hero-media::after { right: 9%; transform: rotate(12deg); }

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(30, 12, 24, .18), rgba(30, 12, 24, .22) 48%, rgba(26, 16, 22, .72) 100%),
    repeating-linear-gradient(90deg, transparent 0 6%, rgba(255,255,255,.018) 6.1% 6.25%);
}

.hero-content {
  width: min(900px, 88%);
  margin-top: -1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 3;
}
.hero-kicker {
  margin-bottom: .8rem;
  color: #ffd7df;
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: .72rem;
  font-weight: 700;
}
.hero-main-logo {
  width: clamp(330px, 42vw, 640px);
  max-width: 82%;
  margin: 0;
  filter: drop-shadow(0 18px 28px rgba(20, 5, 14, .42));
}
.hero-tagline {
  margin-top: .35rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 2rem);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff;
}
.hero-date {
  margin-top: 1rem;
  color: #ffe8ed;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero-cta {
  margin-top: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.7rem;
  border-radius: 4px;
  background: #ff9aac;
  color: #4e263c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(45, 10, 30, .25);
}

.hero-decorations {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 125px;
  z-index: 2;
  pointer-events: none;
}
.mountain-svg { width: 100%; height: 125px; display: block; }
.mountain-svg path { fill: #2b1725 !important; stroke: none !important; opacity: .9 !important; }

.hero-section::after { display: none; }

/* --- MARQUEE --- */
.festival-marquee {
  position: relative;
  z-index: 8;
  width: 100%;
  padding: .72rem 0;
  overflow: hidden;
  white-space: nowrap;
  background: #5d344f;
  border-block: 1px solid rgba(255,255,255,.12);
}
.marquee-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: scroll-marquee 26s linear infinite;
  will-change: transform;
}
.marquee-group {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
}
.marquee-track span {
  flex: none;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .11em;
  color: #fff3f5;
  text-transform: uppercase;
}
@keyframes scroll-marquee {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}

/* --- SHARED SECTION TYPOGRAPHY --- */
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4.2vw, 4.25rem);
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
}
.section-kicker,
.rhythm-kicker {
  margin: 0 0 .7rem;
  color: #ed3f83;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .27em;
  text-transform: uppercase;
}
.section-desc {
  max-width: 390px;
  color: rgba(255,255,255,.78);
  font-size: .96rem;
  line-height: 1.6;
}


/* --- COUNTDOWN / FESTIVAL INFO (poster-paper section) --- */
.festival-info-section {
  position: relative;
  padding: 5.2rem clamp(2rem, 6vw, 6.5rem) 5.8rem;
  color: #351d2c;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.34), transparent 22%),
    radial-gradient(circle at 88% 70%, rgba(144,69,107,.13), transparent 24%),
    #f0c6cd;
}
.festival-info-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.festival-info-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255,255,255,.35);
  opacity: .5;
}

.ornament-line {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto 3.2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  color: #b74c74;
}
.ornament-line span {
  height: 8px;
  background: repeating-radial-gradient(ellipse at center, transparent 0 7px, currentColor 8px 10px, transparent 11px 16px);
}
.ornament-line b { font-size: 1.2rem; }
.info-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 3rem;
  margin-bottom: 2.8rem;
}
.dark-title { color: #351d2c; }
.dark-desc { color: rgba(53,29,44,.72); }

.rhythm-countdown-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto 2rem;
  padding: 2.7rem clamp(1.2rem, 3vw, 2.5rem);
  box-sizing: border-box;
  border: 1px solid rgba(84, 45, 67, .15);
  background: rgba(255, 245, 247, .44);
  box-shadow: 0 24px 50px rgba(91, 43, 64, .10);
}
.countdown-kicker {
  margin: 0 0 1.65rem;
  color: #8e4568;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .33em;
  text-transform: uppercase;
  text-align: center;
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
}
.countdown-box {
  min-width: 0;
  padding: 1.25rem .75rem;
  text-align: center;
  border-right: 1px solid rgba(94, 50, 72, .18);
}
.countdown-box:last-child { border-right: 0; }
.countdown-box span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.2vw, 5rem);
  line-height: 1;
  color: #b34a72;
}
.countdown-box small {
  display: block;
  margin-top: .7rem;
  color: #4f2a3d;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.rhythm-until {
  margin-top: 1.7rem;
  text-align: center;
  color: #74405b;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.stats-bento {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.glass-panel {
  border-radius: 0;
  border: 1px solid rgba(75, 37, 57, .16);
  background: rgba(255,255,255,.28);
  box-shadow: 0 18px 34px rgba(93, 43, 66, .08);
}
.stat-panel {
  min-height: 140px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1;
  color: #5c3049;
}
.stat-label {
  margin-top: .65rem;
  color: #9f466a;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.action-panel {
  position: relative;
  z-index: 1;
  padding: 1.55rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: #74445f;
  border-color: rgba(255,255,255,.12);
}
.action-kicker {
  margin: 0 0 .35rem;
  color: #f7c6d1;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.action-text {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  text-transform: uppercase;
}
.bento-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.6rem;
  border-radius: 3px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.bento-btn { background: #fff8fa; color: #5b3048; }

/* --- MAIN EVENTS --- */
.main-events-section {
  padding: 5.8rem clamp(2rem, 6vw, 6.5rem) 6.2rem;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,180,196,.18), transparent 30%),
    linear-gradient(180deg, #8a536e 0%, #59354e 100%);
}
.sotm-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.main-events-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  transform: none !important;
}
.track-item {
  min-width: 0;
  height: clamp(280px, 28vw, 390px);
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,.18);
  background: #321b2a;
  box-shadow: 0 20px 36px rgba(28, 9, 22, .22);
}
.track-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover !important;
  background-position: center !important;
  transform: none !important;
  transition: transform .6s var(--expo-out), filter .6s ease;
}
.track-image::after,
.track-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,9,18,.04) 18%, rgba(25,9,20,.22) 48%, rgba(20,7,17,.94) 100%);
  pointer-events: none;
}
.track-item::after { z-index: 2; }
.track-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 1.25rem 1.3rem;
}
.track-date {
  display: block;
  margin-bottom: .45rem;
  color: #ff9dbd;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.track-title {
  max-width: calc(100% - 42px);
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.track-arrow {
  position: absolute;
  right: 1.15rem;
  bottom: 1.15rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #ff77ae;
  border-radius: 50%;
  color: #fff;
  background: rgba(50, 19, 39, .58);
}
.events-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}
.outline-btn {
  border: 1px solid rgba(255,255,255,.46);
  color: #fff;
  background: rgba(255,255,255,.06);
}

/* --- RHYTHM / GENRES --- */
.rhythm-section {
  padding: 5.6rem clamp(2rem, 6vw, 6.5rem) 6.8rem;
  background:
    radial-gradient(circle at 78% 0%, rgba(255,154,173,.18), transparent 26%),
    linear-gradient(180deg, #3e2637 0%, #241620 100%);
}
.rhythm-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 3rem;
  margin-bottom: 2.4rem;
}
.genre-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .85rem;
}
.genre-card {
  min-height: 235px;
  padding: 1.2rem .8rem 1.1rem;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 0;
  box-shadow: 0 16px 26px rgba(15,5,12,.16);
}
.genre-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 32%, rgba(8,3,9,.38) 100%);
}
.genre-card > * { position: relative; z-index: 1; }
/* --- PREMIUM GENRE BADGES --- */
.genre-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 115px; /* Increased from 80px for a bolder, anchor presence */
  height: 115px;
  margin: 0 auto 1.5rem; 
  background: transparent !important;
  perspective: 1000px; /* Enables deeper 3D physics */
}

.genre-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  /* Replaces the harsh black drop-shadow with a soft, ambient rim shadow */
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25)) drop-shadow(0 2px 4px rgba(255, 255, 255, 0.05));
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.6s ease;
  will-change: transform;
}

/* A sophisticated, floating magnetic lift instead of a rigid tilt */
.genre-card:hover .genre-icon img {
  transform: translateY(-10px) scale(1.08) rotate(4deg);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.genre-card h3 {
  margin: 0 0 .35rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem; /* Scaled up slightly to balance the larger icons */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.genre-card h3 {
  margin: 0 0 .35rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
}
.genre-card p {
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: .72rem;
  line-height: 1.45;
}
.pop{background:linear-gradient(160deg,#8b194c,#261323);}
.rock{background:linear-gradient(160deg,#c32d42,#241323);}
.hiphop{background:linear-gradient(160deg,#1474b9,#13233d);}
.edm{background:linear-gradient(160deg,#00a1d9,#171d42);}
.rnb{background:linear-gradient(160deg,#a44bc0,#27163d);}
.indie{background:linear-gradient(160deg,#2c9a63,#16271f);}
.opm{background:linear-gradient(160deg,#d39a18,#382617);}

/* --- FOOTER HOME ALIGNMENT --- */
.site-footer {
  margin-top: 0;
  padding-inline: clamp(2rem, 6vw, 6.5rem);
  background: #1b1017;
}

/* --- HOVERS --- */
@media (hover: hover) and (pointer: fine) {
  .hero-cta:hover { transform: translateY(-2px); background: #ffc0ce; }
  .track-item:hover .track-image { transform: scale(1.045) !important; filter: saturate(1.08); }
  .genre-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.36); }
  .bento-btn:hover, .outline-btn:hover { transform: translateY(-2px); }
}

/* --- RESPONSIVE --- */
@media (max-width: 1120px) {
  .navbar { padding-inline: 2rem; }
  .navbar.navbar-scrolled { padding-inline: 2rem; }
  .nav-links { gap: 1.35rem; }
  .main-events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track-item { height: 320px; }
  .genre-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .genre-card:last-child { grid-column: span 2; }
}

@media (max-width: 768px) {
  main { margin-top: 68px; box-shadow: none; }
  .navbar { min-height: 68px; padding-inline: 1rem; }
  .navbar.navbar-scrolled { padding-inline: 1rem; }
  .nav-logo { height: 39px; }

  .hero-section {
    min-height: calc(100vh - 68px);
    min-height: calc(100svh - 68px);
    height: calc(100vh - 68px);
    height: calc(100svh - 68px);
  }
  .hero-main-logo { width: min(430px, 86vw); max-width: none; }
  .hero-kicker { max-width: 280px; line-height: 1.6; }
  .hero-date { line-height: 1.6; }
  .hero-decorations { height: 86px; }
  .mountain-svg { height: 86px; }
  .hero-section::after { bottom: 0; height: 32px; }

  .festival-info-section,
  .main-events-section,
  .rhythm-section { padding: 4.3rem 1.15rem; }
  
.festival-info-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255,255,255,.35);
  opacity: .5;
}

.ornament-line { margin-bottom: 2.4rem; }
  .info-header,
  .sotm-header,
  .rhythm-header {
    display: block;
    margin-bottom: 2rem;
  }
  .section-desc { margin-top: .9rem; max-width: 100%; }
  .section-title { font-size: clamp(2rem, 10vw, 3.2rem); }

  .rhythm-countdown-hero { padding: 1.8rem .75rem; }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .countdown-box { border-right: 0; border-bottom: 1px solid rgba(94,50,72,.16); }
  .countdown-box:nth-child(1), .countdown-box:nth-child(3) { border-right: 1px solid rgba(94,50,72,.16); }
  .countdown-box:nth-child(3), .countdown-box:nth-child(4) { border-bottom: 0; }
  .stats-bento { grid-template-columns: 1fr; }
  .stat-panel { min-height: 110px; }
  .action-panel { align-items: flex-start; flex-direction: column; }

  .main-events-grid {
    display: flex;
    overflow-x: auto;
    gap: .9rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .main-events-grid::-webkit-scrollbar { display: none; }
  .track-item {
    flex: 0 0 82vw;
    height: 350px;
    scroll-snap-align: start;
  }
  .events-footer { justify-content: flex-start; }

  .genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .genre-card { min-height: 210px; }
  .genre-card:last-child { grid-column: span 2; min-height: 180px; }

  .site-footer { padding: 3rem 1.15rem; }
}

@media (max-width: 430px) {
  .hero-main-logo { width: 90vw; }
  .hero-content { width: 94%; }
  .festival-info-section,
  .main-events-section,
  .rhythm-section { padding-inline: .9rem; }
  .track-item { flex-basis: 87vw; }
  .genre-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-height: 720px) and (min-width: 769px) {
  .hero-main-logo { width: clamp(300px, 34vw, 500px); }
  .hero-content { margin-top: -0.5rem; }
  .hero-kicker { margin-bottom: .35rem; }
  .hero-tagline { margin-top: .15rem; font-size: clamp(1.05rem, 1.7vw, 1.55rem); }
  .hero-date { margin-top: .65rem; }
  .hero-cta { margin-top: 1rem; min-height: 42px; }
}

/* Live countdown number tick */
.countdown-box span {
  display: inline-block;
  will-change: transform, opacity;
}
.countdown-box span.countdown-number-tick {
  animation: arwCountdownTick .22s ease-out;
}
@keyframes arwCountdownTick {
  0% { transform: translateY(4px); opacity: .55; }
  100% { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .countdown-box span.countdown-number-tick { animation: none; }
}

/* --- HERO VIDEO BACKGROUND FIX --- */
.hero-section {
  position: relative !important;
  overflow: hidden !important; 
}

.hero-video-bg {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; 
  overflow: hidden !important; 
  pointer-events: none; 
}

.hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* Math for perfect 16:9 widescreen */
  min-height: 100vh;
  min-width: 177.77vh; 
  /* Reduced from 1.4 to 1.05 to bring the pixel art back into frame */
  transform: translate(-50%, -50%) scale(1.05); 
  pointer-events: none; 
  opacity: 0.85; 
  border: none;
}