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-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; }


.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); }
}


.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;
}



.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 2.2rem;
  padding: 1.55rem clamp(7.2rem, 10vw, 10rem) 1.6rem;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;

  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 24px;

  background:
    radial-gradient(circle at 50% 15%, rgba(255,255,255,.55), transparent 34%),
    linear-gradient(180deg, rgba(255,247,249,.56), rgba(255,235,241,.36));

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.66),
    0 22px 54px rgba(98, 45, 68, .10);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rhythm-countdown-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .7;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,.32) 24%, transparent 42% 58%, rgba(255,255,255,.28) 76%, transparent 92%);
}

.countdown-heading {
  display: grid;
  grid-template-columns: minmax(50px, 1fr) auto minmax(50px, 1fr);
  align-items: center;
  gap: 1.25rem;
  width: min(470px, 72%);
  margin: 0 auto 1.4rem;
}

.countdown-heading-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(118,56,83,.36));
}

.countdown-heading-line:last-child {
  background: linear-gradient(90deg, rgba(118,56,83,.36), transparent);
}

.countdown-kicker {
  margin: 0;
  color: #9d496d;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .38em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.countdown-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.7rem);
}

.countdown-box {
  position: relative;
  min-width: 0;
  min-height: 190px;
  padding: 1.35rem .8rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  border: 1px solid rgba(255,255,255,.72);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 6%, rgba(255,255,255,.58), transparent 36%),
    linear-gradient(180deg, rgba(255,249,250,.58), rgba(255,235,242,.30));

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 14px 28px rgba(123,55,84,.07);

  overflow: hidden;
  animation: arwTimerCardPulse 3.6s ease-in-out infinite;
}

.countdown-box:nth-child(2) { animation-delay: -.9s; }
.countdown-box:nth-child(3) { animation-delay: -1.8s; }
.countdown-box:nth-child(4) { animation-delay: -2.7s; }

.countdown-box + .countdown-box::before {
  content: "";
  position: absolute;
  left: calc((clamp(1rem, 2vw, 1.7rem) / -2) - 1px);
  top: 15%;
  width: 1px;
  height: 70%;
  background: linear-gradient(180deg, transparent, rgba(113,54,80,.22), transparent);
  transform: translateX(-50%);
}

.countdown-box > span {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 5.4vw, 5.4rem);
  line-height: .9;
  letter-spacing: -.03em;
  color: #a52e63;
  text-shadow:
    0 5px 0 rgba(111,31,66,.07),
    0 0 18px rgba(255,88,148,.16);
  filter: drop-shadow(0 5px 7px rgba(133,47,83,.10));
}

.countdown-box small {
  display: block;
  margin-top: .55rem;
  color: #54283f;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.mini-wave {
  height: 30px;
  margin-top: .35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #e75d94;
}

.mini-wave i,
.rhythm-wave i {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  animation: arwVoiceModulation 1.05s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.mini-wave i { height: 8px; }
.mini-wave i:nth-child(1) { height: 8px;  animation-delay: -.08s; animation-duration: .78s; }
.mini-wave i:nth-child(2) { height: 14px; animation-delay: -.52s; animation-duration: .96s; }
.mini-wave i:nth-child(3) { height: 22px; animation-delay: -.24s; animation-duration: .72s; }
.mini-wave i:nth-child(4) { height: 30px; animation-delay: -.66s; animation-duration: 1.05s; }
.mini-wave i:nth-child(5) { height: 20px; animation-delay: -.38s; animation-duration: .84s; }
.mini-wave i:nth-child(6) { height: 13px; animation-delay: -.74s; animation-duration: .91s; }
.mini-wave i:nth-child(7) { height: 8px;  animation-delay: -.18s; animation-duration: .76s; }

.rhythm-wave {
  position: absolute;
  top: 50%;
  z-index: 0;
  width: clamp(88px, 8vw, 125px);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: rgba(220, 82, 139, .52);
  transform: translateY(-50%);
  pointer-events: none;
}

.rhythm-wave-left { left: 1.25rem; }
.rhythm-wave-right { right: 1.25rem; }

.rhythm-wave i { width: 4px; height: 24px; }
.rhythm-wave i:nth-child(1)  { height: 18px; animation-delay: -.72s; animation-duration: .91s; }
.rhythm-wave i:nth-child(2)  { height: 32px; animation-delay: -.16s; animation-duration: .79s; }
.rhythm-wave i:nth-child(3)  { height: 48px; animation-delay: -.59s; animation-duration: 1.02s; }
.rhythm-wave i:nth-child(4)  { height: 76px; animation-delay: -.31s; animation-duration: .74s; }
.rhythm-wave i:nth-child(5)  { height: 112px; animation-delay: -.84s; animation-duration: 1.14s; }
.rhythm-wave i:nth-child(6)  { height: 142px; animation-delay: -.41s; animation-duration: .87s; }
.rhythm-wave i:nth-child(7)  { height: 96px; animation-delay: -.68s; animation-duration: 1.08s; }
.rhythm-wave i:nth-child(8)  { height: 64px; animation-delay: -.23s; animation-duration: .82s; }
.rhythm-wave i:nth-child(9)  { height: 45px; animation-delay: -.77s; animation-duration: .98s; }
.rhythm-wave i:nth-child(10) { height: 30px; animation-delay: -.35s; animation-duration: .71s; }
.rhythm-wave i:nth-child(11) { height: 18px; animation-delay: -.61s; animation-duration: .89s; }

.rhythm-until {
  position: relative;
  z-index: 2;
  margin: 1.35rem 0 0;
  text-align: center;
  color: #8b3f61;
  font-size: .71rem;
  font-weight: 900;
  letter-spacing: .34em;
  text-transform: uppercase;
}

@keyframes arwVoiceModulation {
  0% {
    transform: scaleY(.28);
    opacity: .42;
  }
  35% {
    transform: scaleY(.72);
    opacity: .72;
  }
  70% {
    transform: scaleY(1.14);
    opacity: 1;
  }
  100% {
    transform: scaleY(.48);
    opacity: .58;
  }
}

@keyframes arwTimerCardPulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.85),
      0 14px 28px rgba(123,55,84,.07),
      0 0 0 rgba(226,79,139,0);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.9),
      0 16px 34px rgba(123,55,84,.10),
      0 0 26px rgba(226,79,139,.13);
  }
}

.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-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-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; }

.genre-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 115px; 
  height: 115px;
  margin: 0 auto 1.5rem; 
  background: transparent !important;
  perspective: 1000px; 
}

.genre-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  
  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;
}


.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; 
  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);}


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


@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); }
}


@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.45rem .9rem 1.4rem;
    border-radius: 20px;
  }
  .countdown-heading { width: min(420px, 92%); gap: .8rem; margin-bottom: 1rem; }
  .countdown-kicker { font-size: .64rem; letter-spacing: .27em; }
  .countdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .countdown-box {
    min-height: 150px;
    padding: 1rem .55rem .9rem;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 18px;
  }
  .countdown-box + .countdown-box::before { display: none; }
  .countdown-box > span { font-size: clamp(3rem, 14vw, 4.4rem); }
  .mini-wave { height: 24px; gap: 3px; }
  .mini-wave i { width: 3px; }
  .rhythm-wave { display: none; }
  .rhythm-until { margin-top: 1rem; font-size: .62rem; letter-spacing: .24em; }
  .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; }
}


.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,
  .countdown-box,
  .mini-wave i,
  .rhythm-wave i {
    animation: none !important;
  }
}


.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; 
  min-height: 100vh;
  min-width: 177.77vh; 
  
  transform: translate(-50%, -50%) scale(1.05); 
  pointer-events: none; 
  opacity: 0.85; 
  border: none;
}


.stats-bento {
  gap: 1rem;
}

.stat-panel {
  position: relative;
  min-height: 108px;
  padding: 1.05rem 1.3rem;
  display: grid;
  grid-template-columns: 62px 1px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 1rem;
  text-align: left;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.68);
  background:
    radial-gradient(circle at 16% 24%, rgba(255,255,255,.44), transparent 24%),
    linear-gradient(180deg, rgba(255,248,250,.55), rgba(255,234,241,.42));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 14px 30px rgba(93,43,66,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #5e2946;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.48), transparent 32%),
    rgba(236,145,174,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58);
}

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.stat-divider {
  width: 1px;
  height: 58px;
  background: linear-gradient(180deg, transparent, rgba(133,64,94,.22), transparent);
}

.stat-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.2vw, 3.3rem);
  line-height: .9;
  color: #5c2443;
  text-shadow: 0 4px 0 rgba(128,49,84,.05);
}

.stat-label {
  margin-top: .55rem;
  color: #84405f;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .21em;
  text-transform: uppercase;
}

.stat-dots {
  width: 42px;
  height: 52px;
  opacity: .48;
  background-image: radial-gradient(circle, #d66b96 1.3px, transparent 1.4px);
  background-size: 9px 9px;
  background-position: center;
  mask-image: linear-gradient(90deg, transparent 0%, #000 25%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 25%, #000 100%);
}

@media (hover: hover) and (pointer: fine) {
  .stat-panel {
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  }

  .stat-panel:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.86);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.82),
      0 18px 38px rgba(93,43,66,.12);
  }
}

@media (max-width: 900px) {
  .stat-panel {
    grid-template-columns: 56px 1px minmax(0, 1fr) 34px;
    min-height: 100px;
    padding: .95rem 1rem;
    gap: .8rem;
  }

  .stat-icon {
    width: 52px;
    height: 52px;
  }

  .stat-icon svg {
    width: 25px;
    height: 25px;
  }

  .stat-divider {
    height: 52px;
  }
}

@media (max-width: 700px) {
  .stats-bento {
    grid-template-columns: 1fr;
  }

  .stat-panel {
    min-height: 92px;
    grid-template-columns: 54px 1px minmax(0, 1fr) 40px;
    border-radius: 13px;
  }

  .stat-num {
    font-size: 2.45rem;
  }
}
