@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@1,600&display=swap');

:root {
  --font-display: 'Bungee', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --surface: #1a1016; 
  --text-primary: #ffffff;
  --text-muted: #e0c8d4;
  --text-accent: #FF9A8B; 
  
  --expo-out: cubic-bezier(0.19, 1, 0.22, 1);
  --apple-ease: cubic-bezier(0.16, 1, 0.3, 1);
  
  --desert-gradient: linear-gradient(
    180deg,
    #FFB7B2 0%,    
    #E2858E 35%,   
    #9D5B8B 70%,   
    #1a1016 100%   
  );
}

/* --- BASE & ACCESSIBILITY --- */
body { cursor: none; margin: 0; padding: 0; background: var(--surface); color: var(--text-primary); font-family: var(--font-body); overflow-x: hidden; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a, button { cursor: none; text-decoration: none; color: inherit; }
h1, h2, h3, p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body, a, button { cursor: auto !important; }
  .bg-noise, .cursor-dot, .cursor-outline { display: none !important; }
  .horizontal-track { transform: none !important; flex-direction: column; padding-bottom: 5rem;}
  .horizontal-section { height: auto !important; }
  .sticky-container { position: relative !important; height: auto !important; }
  .festival-intro { display: none !important; } 
  .scroll-fade { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* --- BACKGROUNDS (OPTIMIZED NOISE) --- */
.bg-gradient { position: fixed; inset: 0; z-index: -2; background: var(--desert-gradient); }
.bg-noise { 
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; 
  pointer-events: none; opacity: 0.035; 
  background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)"/%3E%3C/svg%3E'); 
}

/* --- AWWWARDS PRELOADER --- */
#preloader { position: fixed; inset: 0; background: var(--surface); z-index: 100000; display: flex; align-items: center; justify-content: center; transition: transform 1.2s var(--expo-out); }
#preloader.loaded { transform: translateY(-100%); }
.loader-text { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); color: transparent; -webkit-text-stroke: 1px var(--text-accent); letter-spacing: 2px; }

/* --- KINETIC FERRIS WHEEL ENTRY GATE 2.0 --- */
.festival-intro { position: fixed; inset: 0; z-index: 90000; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #05020a; overflow: hidden; transition: opacity 0.8s ease, visibility 0.8s; will-change: opacity, transform; perspective: 1000px; }
.festival-intro.unlocked { opacity: 0; pointer-events: none; visibility: hidden; }

.wheel-container { position: relative; z-index: 5; width: clamp(300px, 40vw, 500px); height: clamp(300px, 40vw, 500px); display: flex; align-items: center; justify-content: center; transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1); will-change: transform; }
.festival-intro.unlocked .wheel-container { transform: scale(5) translateZ(200px); }

.intro-bg-gradient { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(217, 70, 239, 0.15) 0%, transparent 70%); z-index: 1; transition: opacity 1s; }
.festival-intro.unlocked .intro-bg-gradient { opacity: 0; }

.ferris-wheel { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; will-change: transform; filter: drop-shadow(0 0 20px rgba(255, 126, 179, 0.2)); }
.wheel-ring { position: absolute; inset: 0; border: 2px dashed rgba(255, 126, 179, 0.6); border-radius: 50%; box-shadow: 0 0 50px rgba(255, 126, 179, 0.1), inset 0 0 50px rgba(255, 126, 179, 0.1); }
.wheel-spoke { position: absolute; top: 0; left: 50%; width: 1px; height: 100%; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.6), rgba(255,255,255,0)); }

.wheel-core { position: absolute; top: 50%; left: 50%; width: 15%; height: 15%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 154, 139, 1) 0%, transparent 70%); border-radius: 50%; z-index: 2; animation: pulse-core 2s ease-in-out infinite; box-shadow: 0 0 40px var(--text-accent); }
@keyframes pulse-core { 
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; } 
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; } 
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; } 
}

.intro-logo { position: relative; z-index: 10; width: 60%; height: auto; filter: drop-shadow(0 15px 30px rgba(0,0,0,0.9)); transition: opacity 0.5s ease; }
.festival-intro.unlocked .intro-logo { opacity: 0; }

.scroll-instruction { position: absolute; bottom: 10vh; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 1rem; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 3px; color: var(--text-accent); transition: opacity 0.4s ease, transform 0.4s ease; }
.scroll-instruction.fade-out { opacity: 0; transform: translateY(20px); }
.mouse-icon { width: 24px; height: 36px; border: 2px solid var(--text-accent); border-radius: 20px; display: flex; justify-content: center; padding-top: 6px; }
.mouse-wheel { width: 4px; height: 8px; background: var(--text-accent); border-radius: 4px; animation: scroll-wheel 1.5s infinite; }
@keyframes scroll-wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

.skip-intro-btn {
  position: absolute; bottom: 3vh; right: 5vw; z-index: 20;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; padding: 8px 24px; border-radius: 99px; cursor: none;
  font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
  backdrop-filter: blur(10px); transition: all 0.3s ease;
}

/* --- KINETIC CURSOR & MORPHING STATES --- */
.cursor-dot { position: fixed; top: 0; left: 0; width: 6px; height: 6px; background: #ffffff; border-radius: 50%; pointer-events: none; z-index: 99999; transform: translate3d(-50%, -50%, 0); mix-blend-mode: difference; transition: opacity 0.3s; }
.cursor-outline { 
  position: fixed; top: 0; left: 0; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.4); 
  border-radius: 50%; pointer-events: none; z-index: 99998; transform: translate3d(-50%, -50%, 0); 
  transition: width 0.3s var(--expo-out), height 0.3s var(--expo-out), background 0.3s; 
  mix-blend-mode: difference;
  display: flex; align-items: center; justify-content: center; 
  font-family: var(--font-body); font-size: 11px; font-weight: 700; 
  color: transparent; text-transform: uppercase; letter-spacing: 2px; 
}
.cursor-drag { 
  width: 80px !important; height: 80px !important; 
  background: rgba(255,255,255,0.15) !important; 
  backdrop-filter: blur(8px); border-color: transparent !important; 
  color: #fff !important; mix-blend-mode: normal !important; 
}
.cursor-explore { 
  width: 90px !important; height: 90px !important; 
  background: var(--text-accent) !important; border-color: transparent !important; 
  color: var(--surface) !important; mix-blend-mode: normal !important; 
}

/* --- UNIVERSAL NAVBAR --- */
.navbar { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 2rem 5vw; box-sizing: border-box; z-index: 2000; transition: background 0.5s ease, padding 0.5s ease, backdrop-filter 0.5s ease; border-bottom: 1px solid transparent;}
.navbar.navbar-scrolled { padding: 1rem 5vw; background: rgba(26, 16, 22, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 45px; width: auto; filter: drop-shadow(0 4px 15px rgba(255, 154, 139, 0.4)); transition: transform 0.4s var(--apple-ease); }
.nav-links { display: flex; gap: 3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--font-body); text-transform: uppercase; font-size: 0.85rem; font-weight: 600; letter-spacing: 2px; color: #ffffff; position: relative; opacity: 0.7; transition: opacity 0.3s ease;}
.nav-links a:hover, .nav-links a.nav-active { opacity: 1; }
.nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0%; height: 2px; background: var(--text-accent); transition: width 0.4s var(--expo-out); }
.nav-links a:hover::after, .nav-links a.nav-active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.icon-btn { background: none; border: none; color: #ffffff; padding: 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; cursor: none;}
.hamburger-btn { display: none; flex-direction: column; gap: 6px; background: none; border: none; padding: 8px; z-index: 3100; cursor: none;}
.hamburger-btn span { display: block; width: 28px; height: 2px; background: #ffffff; transition: 0.4s; }

/* --- OVERLAYS --- */
.search-overlay { position: fixed; inset: 0; background: rgba(26, 16, 22, 0.95); backdrop-filter: blur(15px); z-index: 3000; display: flex; justify-content: center; align-items: flex-start; padding-top: 15vh; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--expo-out); }
.search-overlay.is-open { opacity: 1; pointer-events: all; }
.search-content { width: 100%; max-width: 800px; padding: 0 5vw; }
.search-header { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 1rem; }
.search-input { flex: 1; background: transparent; border: none; color: var(--text-primary); font-size: clamp(1.5rem, 4vw, 2.5rem); outline: none; cursor: text; }

.mobile-menu-overlay { position: fixed; inset: 0; background: var(--surface); z-index: 2500; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem 5vw; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; backdrop-filter: blur(20px); }
.mobile-menu-overlay.is-open { opacity: 1; pointer-events: all; }
.mobile-menu-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 3rem; text-align: center; width: 100%; }
.mobile-menu-links a { font-family: var(--font-display); font-size: clamp(2.5rem, 8vw, 4rem); text-transform: uppercase; color: var(--text-primary); letter-spacing: 2px; }

/* --- ANIMATIONS --- */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--expo-out), transform 1s var(--expo-out); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- SCROLL CONTENT REVEAL --- */
.scroll-fade {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition:
    opacity .8s var(--expo-out),
    transform .8s var(--expo-out),
    filter .8s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}
.scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}


/* --- GLOBAL FOOTER --- */
.site-footer { padding: 4rem 5vw; margin-top: 10vh; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; position: relative; z-index: 10; background: var(--surface);}
.footer-logo { height: 40px; filter: grayscale(1) brightness(2); margin-bottom: 1rem; opacity: 0.5; }

/* --- GLOBAL SCROLL PROGRESS HUD --- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--text-accent), #9D5B8B);
  width: 0%;
  z-index: 100000;
  transform-origin: left;
  will-change: width;
  pointer-events: none;
}

/* --- MOBILE SPECIFIC FIXES --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger-btn { display: flex; }
  .wheel-container { width: 280px; height: 280px; }
  .intro-logo { width: 70%; }
  .loader-text { font-size: 2rem; }
  .mobile-menu-links a { font-size: 2rem; letter-spacing: 1px; }
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-outline { display: none !important; }
  body, a, button, input, textarea, .glass-panel, .page-glass, .track-item, .skip-intro-btn { cursor: auto !important; }
}

@media (hover: hover) and (pointer: fine) {
  .nav-logo:hover { transform: scale(1.05); }
  .nav-links a:hover, .nav-links a.nav-active { opacity: 1; }
  .nav-links a:hover::after, .nav-links a.nav-active::after { width: 100%; }
  .icon-btn:hover { background: rgba(255,255,255,0.1); }
  .skip-intro-btn:hover { background: #fff; color: #000; }
}

.bento-btn, .filter-btn {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.3s ease;
  will-change: transform;
}

@media (pointer: coarse) {
  .bento-btn:active, .filter-btn:active {
    transform: scale(0.92) !important;
    background: rgba(255,255,255,0.7);
  }
}

/* --- 3D TRADING CARD & GLARE EFFECT --- */
.org-card, .subtheme-panel, .stat-panel {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}

.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    circle 240px at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.03) 45%,
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
  z-index: 10;
}

.org-card:hover .card-glare,
.subtheme-panel:hover .card-glare,
.stat-panel:hover .card-glare {
  opacity: 1;
}

.org-card > *, .subtheme-panel > *, .stat-panel > * {
  transform: translateZ(25px);
}

/* --- LENIS SMOOTH SCROLL INTEGRATION --- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* --- OVERFLOW LINE-MASK TYPOGRAPHY --- */
.line-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.15;
}
.line-mask-inner {
  display: inline-block;
  transform: translateY(120%) rotate(3deg);
  transform-origin: left bottom;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
  opacity: 0;
  will-change: transform, opacity;
}
.line-mask.is-revealed .line-mask-inner {
  transform: translateY(0%) rotate(0deg);
  opacity: 1;
}

/* --- KINETIC MARQUEE PREP --- */
.marquee-track span {
  display: inline-block;
  will-change: transform;
  transform-origin: bottom center;
}

/* --- BULLETPROOF SEQUENTIAL STAGGER (PURE CSS) --- */
.subthemes-bento .subtheme-panel {
  opacity: 0;
  transform: translateY(40px);
}
.bento-section.visible .subtheme-panel {
  animation: popInCard 0.8s var(--expo-out) forwards;
}
.bento-section.visible .subtheme-panel:nth-child(1) { animation-delay: 0.0s; }
.bento-section.visible .subtheme-panel:nth-child(2) { animation-delay: 0.1s; }
.bento-section.visible .subtheme-panel:nth-child(3) { animation-delay: 0.2s; }
.bento-section.visible .subtheme-panel:nth-child(4) { animation-delay: 0.3s; }
.bento-section.visible .subtheme-panel:nth-child(5) { animation-delay: 0.4s; }
.bento-section.visible .subtheme-panel:nth-child(6) { animation-delay: 0.5s; }
.bento-section.visible .subtheme-panel:nth-child(7) { animation-delay: 0.6s; }

@keyframes popInCard {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* =========================================
   UI CONSISTENCY OVERRIDES
   ========================================= */

html { scroll-behavior: smooth; }

body {
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3 {
  text-wrap: balance;
}

.page-title,
.section-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.08;
}

.page-desc,
.about-text p,
.event-desc {
  font-size: 1rem;
  line-height: 1.65;
}

.search-input {
  font-size: clamp(1.1rem, 2vw, 1.8rem) !important;
  line-height: 1.3;
}

.search-content {
  max-width: 650px;
}

.search-header {
  padding-bottom: .75rem;
}

/* FINAL UI REFINEMENTS */
.search-input { font-size: 1.15rem; }
.search-input::placeholder { font-size: 1.15rem; color: rgba(255,255,255,.65); }
.search-header { max-width: 720px; }
.mobile-menu-links { gap: 1.5rem; }
.mobile-menu-links a { font-size: clamp(1.2rem, 5vw, 1.8rem); letter-spacing: 1px; display:flex; align-items:center; justify-content:center; padding:.55rem 1.2rem; border-radius:999px; }
.mobile-menu-links a::before { content:'✦'; margin-right:.7rem; font-size:.7em; opacity:.8; }
.mobile-menu-links a:hover, .mobile-menu-links a.nav-active { background:rgba(255,255,255,.12); }

@media(max-width:768px){
 .search-input { font-size:1rem; }
 .search-input::placeholder { font-size:1rem; }
}

/* =========================================
   FULL-SCREEN FESTIVAL SEARCH — 2026
   ========================================= */
body.search-is-open { overflow: hidden !important; }

.festival-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 38%, rgba(118, 47, 80, .16), transparent 28%),
    linear-gradient(180deg, rgba(28, 10, 21, .96), rgba(24, 9, 18, .985));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: opacity .42s var(--expo-out);
}
.festival-search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.festival-search-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(29, 9, 20, .78), rgba(25, 8, 17, .9)),
    url('') center 55% / cover no-repeat;
  opacity: .28;
  filter: blur(2px) saturate(.55);
  transform: scale(1.03);
  pointer-events: none;
}
.festival-search-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, transparent 0 30%, rgba(19, 6, 14, .42) 72%),
    linear-gradient(180deg, rgba(24, 6, 17, .18), rgba(20, 5, 14, .66));
}
.festival-search-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.festival-search-orbit {
  position: absolute;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(255, 89, 142, .42);
  border-radius: 50%;
  pointer-events: none;
}
.festival-search-orbit.orbit-one { left: -18rem; top: 7rem; }
.festival-search-orbit.orbit-two { right: -18rem; bottom: -14rem; }

.festival-search-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.4rem 3rem;
  box-sizing: border-box;
}
.festival-search-brand {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.festival-search-brand img {
  width: 74px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(255, 85, 140, .25));
}
.festival-search-brand > span {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,.18);
}
.festival-search-brand p,
.festival-search-motto {
  margin: 0;
  color: rgba(255, 215, 228, .46);
  font-size: .68rem;
  line-height: 1.55;
  letter-spacing: .42em;
  text-transform: uppercase;
}
.festival-search-motto {
  position: absolute;
  right: 7.8rem;
  top: 2.7rem;
  text-align: right;
}
.festival-search-close {
  position: absolute;
  right: 2.7rem;
  top: 2.2rem;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.7rem;
  line-height: 1;
  font-weight: 200;
  cursor: pointer !important;
  transition: transform .25s ease, color .25s ease;
}
.festival-search-close:hover { transform: rotate(90deg); color: #ff8ab0; }

.festival-search-content {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 3rem));
  max-height: calc(100vh - 11rem);
  overflow-y: auto;
  padding: 2rem 1rem 2.5rem;
  box-sizing: border-box;
  text-align: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,126,174,.4) transparent;
}
.festival-search-kicker {
  margin: 0 0 1.4rem;
  color: #d56e95;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .6em;
  text-transform: uppercase;
}
.festival-search-content h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.7rem, 5.5vw, 4.4rem);
  font-weight: 400;
  line-height: 1.05;
  color: #fff;
}
.festival-search-content h2 em {
  color: #d9789d;
  font-style: normal;
}
.festival-search-lead {
  margin: 1.1rem 0 2.5rem;
  color: rgba(255,255,255,.52);
  font-size: 1.02rem;
}

.festival-search-form {
  width: min(820px, 100%);
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  border: 1px solid rgba(255, 99, 151, .65);
  border-radius: 20px;
  background: rgba(27, 11, 20, .54);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 78, 140, .08), 0 18px 50px rgba(7,2,6,.26);
  box-sizing: border-box;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.festival-search-form:focus-within {
  border-color: rgba(255, 129, 174, .95);
  box-shadow: 0 0 0 4px rgba(255, 86, 148, .08), 0 20px 54px rgba(7,2,6,.32);
  transform: translateY(-1px);
}
.festival-search-form svg { color: #fff; opacity: .96; }
.festival-search-input {
  min-width: 0;
  width: 100%;
  padding: 0 !important;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 1.05rem !important;
  cursor: text !important;
}
.festival-search-input::placeholder { color: rgba(255,255,255,.48) !important; font-size: 1.05rem !important; }
.festival-search-enter {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.48);
  font-size: .82rem;
  white-space: nowrap;
}

.festival-search-categories {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.9rem;
}
.festival-search-category,
.festival-search-popular-chips button {
  min-height: 50px;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(34, 13, 25, .32);
  color: rgba(255,255,255,.74);
  font-family: var(--font-body);
  font-size: .88rem;
  cursor: pointer !important;
  transition: border-color .22s ease, background .22s ease, color .22s ease, transform .22s ease;
}
.festival-search-category {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-width: 126px;
  justify-content: center;
  font-size: .86rem;
}
.festival-search-category.active,
.festival-search-category:hover,
.festival-search-popular-chips button:hover {
  border-color: rgba(255, 101, 155, .72);
  background: rgba(102, 38, 67, .34);
  color: #ff9bbb;
  transform: translateY(-1px);
}

.festival-search-results {
  width: min(820px, 100%);
  margin: 1.55rem auto 0;
  text-align: left;
}
.festival-search-results:not(.has-results) { display: none; }
.festival-search-results-label {
  margin-bottom: .7rem;
  color: rgba(255, 197, 218, .52);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .34em;
}
.festival-search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .65rem;
}
.festival-search-result {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 28px;
  align-items: center;
  gap: .75rem;
  min-height: 70px;
  padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  background: rgba(35, 14, 25, .38);
  color: #fff;
  box-sizing: border-box;
  cursor: pointer !important;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.festival-search-result:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 111, 161, .44);
  background: rgba(71, 27, 49, .5);
}
.festival-search-result-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 124, 172, .3);
  color: #ff91b6;
  background: rgba(255,255,255,.025);
  font-size: 1rem;
}
.festival-search-result-copy { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.festival-search-result-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .92rem;
  font-weight: 600;
}
.festival-search-result-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.45);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.festival-search-result-arrow { color: #ff91b6; font-size: 1.1rem; }
.festival-search-empty {
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  background: rgba(35,14,25,.34);
  display: flex;
  flex-direction: column;
  gap: .3rem;
  text-align: center;
}
.festival-search-empty strong { color: #fff; }
.festival-search-empty span { color: rgba(255,255,255,.52); font-size: .86rem; }

.festival-search-popular { width: min(820px,100%); margin: 2.05rem auto 0; transition: opacity .2s ease; }
.festival-search-popular.is-hidden { display: none; }
.festival-search-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.festival-search-divider span { height: 1px; background: rgba(255,255,255,.13); }
.festival-search-divider b {
  color: rgba(255, 205, 221, .44);
  font-size: .65rem;
  letter-spacing: .42em;
  font-weight: 600;
}
.festival-search-popular-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
}
.festival-search-popular-chips button { min-height: 43px; font-size: .8rem; }

.festival-search-corner-copy {
  position: absolute;
  bottom: 2.8rem;
  z-index: 2;
  color: rgba(218, 105, 147, .58);
  font-size: .68rem;
  line-height: 1.65;
  letter-spacing: .42em;
  text-transform: uppercase;
}
.festival-search-corner-copy.left { left: 3rem; }
.festival-search-corner-copy.right { right: 3rem; text-align: right; }
.festival-search-corner-copy span {
  display: block;
  width: 28px;
  height: 2px;
  margin-top: .9rem;
  background: rgba(227, 93, 142, .6);
}
.festival-search-corner-copy.right span { margin-left: auto; }

@media (max-height: 760px) and (min-width: 769px) {
  .festival-search-content { max-height: calc(100vh - 7rem); padding-top: 4.5rem; }
  .festival-search-kicker { margin-bottom: .8rem; }
  .festival-search-lead { margin: .75rem 0 1.4rem; }
  .festival-search-form { min-height: 64px; }
  .festival-search-categories { margin-top: 1rem; }
  .festival-search-popular { margin-top: 1.1rem; }
}

@media (max-width: 768px) {
  .festival-search-topbar { padding: 1.1rem 1rem; }
  .festival-search-brand img { width: 58px; }
  .festival-search-brand > span,
  .festival-search-brand p,
  .festival-search-motto,
  .festival-search-corner-copy,
  .festival-search-orbit { display: none; }
  .festival-search-close { top: .85rem; right: .8rem; width: 42px; height: 42px; font-size: 2.2rem; }
  .festival-search-content {
    width: calc(100% - 1rem);
    max-height: calc(100vh - 5.2rem);
    padding: 4rem .5rem 1.5rem;
  }
  .festival-search-kicker { margin-bottom: .85rem; letter-spacing: .36em; font-size: .65rem; }
  .festival-search-content h2 { font-size: clamp(2.25rem, 11vw, 3.2rem); }
  .festival-search-lead { margin: .75rem 0 1.3rem; font-size: .9rem; }
  .festival-search-form {
    min-height: 60px;
    grid-template-columns: 28px 1fr;
    padding: 0 1rem;
    border-radius: 16px;
  }
  .festival-search-form svg { width: 22px; height: 22px; }
  .festival-search-enter { display: none; }
  .festival-search-input,
  .festival-search-input::placeholder { font-size: .92rem !important; }
  .festival-search-categories {
    margin-top: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: .25rem;
    scrollbar-width: none;
  }
  .festival-search-categories::-webkit-scrollbar { display: none; }
  .festival-search-category { flex: 0 0 auto; min-width: auto; min-height: 44px; padding: 0 1rem; }
  .festival-search-results { margin-top: 1rem; }
  .festival-search-results-grid { grid-template-columns: 1fr; }
  .festival-search-result { min-height: 62px; }
  .festival-search-popular { margin-top: 1.25rem; }
  .festival-search-divider { margin-bottom: .85rem; }
  .festival-search-popular-chips { justify-content: flex-start; }
  .festival-search-popular-chips button { min-height: 40px; padding: 0 1rem; }
}


/* =========================================
   MOBILE FESTIVAL MENU — FINAL REDESIGN
   ========================================= */
@media (max-width: 768px) {
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 2600;
    box-sizing: border-box;
    display: block;
    padding: 0;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(31, 12, 24, .70) 0%, rgba(25, 9, 19, .88) 58%, rgba(19, 8, 15, .96) 100%),
      radial-gradient(circle at 50% 5%, rgba(255, 91, 151, .18), transparent 32%),
      url('./assets/event5.jpg') center bottom / cover no-repeat;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px);
    transition: opacity .42s var(--expo-out), transform .55s var(--expo-out), visibility .42s;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .mobile-menu-overlay::before,
  .mobile-menu-overlay::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 119, 172, .36);
    border-radius: 50%;
    pointer-events: none;
  }
  .mobile-menu-overlay::before {
    width: 520px;
    height: 520px;
    left: -360px;
    top: -210px;
  }
  .mobile-menu-overlay::after {
    width: 410px;
    height: 410px;
    left: -290px;
    bottom: -190px;
  }

  .mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.mobile-menu-is-open {
    overflow: hidden !important;
    touch-action: none;
  }

  .mobile-menu-decor-brush {
    position: absolute;
    right: -42px;
    top: 250px;
    width: 190px;
    height: 430px;
    opacity: .18;
    background: linear-gradient(180deg, #ff5e9e 0%, rgba(255, 66, 139, .2) 88%);
    clip-path: polygon(42% 0, 100% 5%, 73% 30%, 100% 34%, 47% 56%, 86% 61%, 23% 80%, 55% 84%, 0 100%, 17% 70%, 0 63%, 37% 44%, 9% 37%);
    transform: rotate(10deg);
    pointer-events: none;
  }

  .mobile-menu-star {
    position: absolute;
    color: rgba(255, 191, 216, .66);
    font-size: 2rem;
    line-height: 1;
    pointer-events: none;
  }
  .mobile-menu-star.star-a { left: 9%; top: 15%; font-size: 2.6rem; }
  .mobile-menu-star.star-b { left: 20%; top: 31%; font-size: 1.45rem; color: rgba(255,255,255,.7); }
  .mobile-menu-star.star-c { right: 10%; top: 48%; font-size: 1.7rem; color: rgba(255,255,255,.72); }

  .mobile-menu-close {
    position: absolute;
    top: max(22px, env(safe-area-inset-top));
    right: 22px;
    width: 66px;
    height: 66px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid #ff78ae;
    background: radial-gradient(circle at 50% 50%, rgba(255, 98, 157, .22), rgba(65, 23, 44, .68));
    color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 89, 154, .16), 0 0 28px rgba(255, 78, 147, .46), inset 0 0 20px rgba(255, 102, 163, .12);
    z-index: 4;
    display: grid;
    place-items: center;
    font-family: var(--font-body);
    font-size: 0;
  }
  .mobile-menu-close::before,
  .mobile-menu-close::after {
    content: "";
    position: absolute;
    width: 31px;
    height: 4px;
    border-radius: 99px;
    background: #fff;
  }
  .mobile-menu-close::before { transform: rotate(45deg); }
  .mobile-menu-close::after { transform: rotate(-45deg); }

  .mobile-menu-brand {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: max(58px, calc(env(safe-area-inset-top) + 42px));
    text-align: center;
  }
  .mobile-menu-brand img {
    width: min(255px, 45vw);
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 14px 24px rgba(0,0,0,.25));
  }
  .mobile-menu-brand strong {
    margin-top: 4px;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.04rem;
    letter-spacing: .68em;
    text-indent: .68em;
    text-transform: uppercase;
  }
  .mobile-menu-brand small {
    margin-top: 10px;
    color: #ff9fc2;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .48em;
    text-indent: .48em;
    text-transform: uppercase;
  }

  .mobile-menu-links {
    position: relative;
    z-index: 3;
    width: min(660px, calc(100% - 56px));
    margin: clamp(54px, 8vh, 92px) auto 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 3.2vh, 34px);
    list-style: none;
    text-align: left;
  }
  .mobile-menu-links li {
    width: 100%;
    transform: translateY(20px);
    opacity: 0;
    transition: transform .55s var(--expo-out), opacity .45s ease;
  }
  .mobile-menu-overlay.is-open .mobile-menu-links li {
    transform: translateY(0);
    opacity: 1;
  }
  .mobile-menu-overlay.is-open .mobile-menu-links li:nth-child(1) { transition-delay: .08s; }
  .mobile-menu-overlay.is-open .mobile-menu-links li:nth-child(2) { transition-delay: .12s; }
  .mobile-menu-overlay.is-open .mobile-menu-links li:nth-child(3) { transition-delay: .16s; }
  .mobile-menu-overlay.is-open .mobile-menu-links li:nth-child(4) { transition-delay: .20s; }
  .mobile-menu-overlay.is-open .mobile-menu-links li:nth-child(5) { transition-delay: .24s; }

  .mobile-menu-links a {
    position: relative;
    width: 100%;
    min-height: 72px;
    box-sizing: border-box;
    padding: 0 24px 0 72px;
    display: flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 6vw, 2.35rem);
    letter-spacing: .015em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 5px 18px rgba(0,0,0,.32);
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
  }
  .mobile-menu-links a::before {
    content: "✦";
    position: absolute;
    left: 31px;
    top: 50%;
    transform: translateY(-52%);
    font-family: var(--font-body);
    font-size: 1.55rem;
    color: rgba(255,255,255,.9);
    text-shadow: none;
  }
  .mobile-menu-links a.nav-active {
    background: linear-gradient(90deg, rgba(255, 75, 142, .18), rgba(255, 122, 173, .10));
    border-color: #ff69a3;
    box-shadow: 0 0 0 1px rgba(255, 83, 150, .2), 0 0 24px rgba(255, 71, 143, .34), inset 0 0 22px rgba(255, 115, 170, .1);
  }
  .mobile-menu-links a.nav-active::before {
    color: #ff6fa8;
    font-size: 1.8rem;
  }
  .mobile-menu-links a:active { transform: scale(.985); }

  .mobile-menu-footnote {
    position: absolute;
    left: 28px;
    bottom: max(34px, calc(env(safe-area-inset-bottom) + 18px));
    z-index: 2;
    color: #ff9fc1;
    text-transform: uppercase;
    font-size: .68rem;
    line-height: 2.1;
    letter-spacing: .42em;
  }
  .mobile-menu-footnote::after {
    content: "";
    display: inline-block;
    width: 54px;
    height: 1px;
    margin-left: 15px;
    vertical-align: middle;
    background: #ff83b2;
  }

  .mobile-menu-overlay .menu-bottom-crowd {
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(23,9,17,0), rgba(17,7,13,.72));
  }

  /* Keep the navbar hamburger above content only while the menu is closed. */
  .mobile-menu-overlay.is-open ~ .navbar .hamburger-btn { opacity: 0; pointer-events: none; }
}

@media (max-width: 430px) {
  .mobile-menu-close { width: 58px; height: 58px; top: 18px; right: 18px; }
  .mobile-menu-close::before,
  .mobile-menu-close::after { width: 27px; }
  .mobile-menu-brand { padding-top: 54px; }
  .mobile-menu-brand img { width: min(205px, 48vw); }
  .mobile-menu-brand strong { font-size: .82rem; }
  .mobile-menu-brand small { font-size: .58rem; letter-spacing: .38em; text-indent: .38em; }
  .mobile-menu-links {
    width: calc(100% - 36px);
    margin-top: clamp(42px, 7vh, 68px);
    gap: 16px;
  }
  .mobile-menu-links a {
    min-height: 64px;
    padding-left: 62px;
    font-size: clamp(1.35rem, 7vw, 1.9rem);
  }
  .mobile-menu-links a::before { left: 26px; font-size: 1.25rem; }
  .mobile-menu-footnote { left: 22px; bottom: 24px; font-size: .58rem; }
}

@media (max-height: 760px) and (max-width: 768px) {
  .mobile-menu-brand { padding-top: 38px; }
  .mobile-menu-brand img { width: min(175px, 40vw); }
  .mobile-menu-brand small { margin-top: 5px; }
  .mobile-menu-links { margin-top: 28px; gap: 10px; }
  .mobile-menu-links a { min-height: 54px; font-size: 1.35rem; }
  .mobile-menu-footnote { display: none; }
  .mobile-menu-star.star-a { top: 12%; }
}


/* 1. DYNAMICALLY SCALE HUGE TITLES ON MOBILE */
.orgs-title, 
.faqs-title {
  /* This shrinks the font automatically on small screens but keeps it huge on desktop */
  font-size: clamp(2.5rem, 10vw, 4.5rem) !important;
  line-height: 1.1 !important;
  word-break: break-word; /* Prevents the word from pushing the screen off-axis */
}

/* 2. PERFECTLY CENTER TEXT INSIDE FILTER PILLS */
.org-filter-btn, 
.faqs-filter-btn { /* Update this class name if your FAQs page uses a different one */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  /* Use symmetrical padding to guarantee vertical centering */
  padding-top: 12px !important; 
  padding-bottom: 12px !important;
}

/* 3. ALIGN THE COLORED DOTS OPTICALLY */
.org-filter-btn .dot {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transform: translateY(-1px); /* Tiny optical nudge to align the dot with the text baseline */
}

/* =========================================
   UX & ACCESSIBILITY UPGRADES
   ========================================= */

/* 1. KEYBOARD NAVIGATION FOCUS STATES */
*:focus-visible {
  outline: 3px solid var(--text-accent) !important;
  outline-offset: 4px !important;
  border-radius: 4px;
  transition: outline-offset 0.2s ease;
}

button:focus-visible, a:focus-visible {
  background: rgba(255, 154, 139, 0.1);
}

/* 2. SKELETON LOADER FOR ORG IMAGES */
.org-logo-image img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.org-logo-image img.loaded {
  opacity: 1;
}

.org-logo-image.is-loading {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.05) 75%) !important;
  background-size: 200% 100% !important;
  animation: skeleton-shimmer 1.5s infinite linear;
}

@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* 3. FLOATING BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 154, 139, 0.15);
  border: 1px solid rgba(255, 154, 139, 0.3);
  color: var(--text-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 9000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s var(--expo-out);
  cursor: none; /* Keeps your custom cursor intact */
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--text-accent);
  color: var(--surface);
  transform: translateY(-5px) scale(1.05);
}

/* 4. SMOOTH FAQ ACCORDION (CSS GRID PHYSICS) */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--expo-out);
}

.faq-answer-inner {
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transition: padding 0.5s var(--expo-out), opacity 0.5s ease;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.active .faq-answer-inner {
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  opacity: 1;
}

/* =========================================
   GLOBAL MOBILE TYPOGRAPHY & ALIGNMENT FIXES
   ========================================= */

/* 1. DYNAMICALLY SCALE HUGE TITLES ON MOBILE */
.orgs-title, 
.faqs-title,
.about-title { 
  font-size: clamp(2.5rem, 10vw, 4.5rem) !important;
  line-height: 1.3 !important; /* Relaxed from 1.1 to stop clipping */
  padding-top: 10px !important; /* Bulletproof safeguard for iOS WebKit clipping */
  word-break: break-word; 
}

/* 2. PERFECTLY CENTER TEXT INSIDE FILTER PILLS */
.org-filter-btn, 
.faq-filter-btn { 
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  /* Use symmetrical padding to guarantee vertical centering */
  padding-top: 12px !important; 
  padding-bottom: 12px !important;
}

/* 3. ALIGN THE COLORED DOTS OPTICALLY */
.org-filter-btn .dot {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transform: translateY(-1px); /* Tiny optical nudge to align the dot with the text baseline */
}