/* ============================================================
   URBAN FLOW — Dance Convention  ·  base tokens + nav + hero
   ============================================================ */

:root {
  /* ---- Surfaces ---- */
  --bg:        #05030c;
  --bg-2:      #0b0618;
  --panel:     rgba(20, 12, 38, 0.55);
  --panel-2:   rgba(28, 16, 52, 0.42);
  --line:      rgba(177, 77, 255, 0.18);

  /* ---- Neon ---- */
  --pink:      #ff3da6;
  --magenta:   #ff2d8f;
  --purple:    #b14dff;
  --violet:    #8b5bff;
  --cyan:      #2fe3ff;
  --blue:      #4d7bff;
  --amber:     #ffb74d;

  /* lead accent (tweakable) */
  --accent:      var(--magenta);
  --accent-2:    var(--cyan);

  /* ---- Text ---- */
  --text:      #f5eefc;
  --muted:     #bca7da;
  --faint:     #7b6aa0;

  /* ---- Type ---- */
  --display: "Anton", "Arial Narrow", sans-serif;
  --body:    "Archivo", system-ui, sans-serif;

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

/* deep gradient wash behind the canvas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(177,77,255,0.22), transparent 60%),
    radial-gradient(90% 60% at 85% 10%, rgba(47,227,255,0.12), transparent 55%),
    radial-gradient(80% 70% at 12% 30%, rgba(255,45,143,0.14), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 40%, var(--bg) 100%);
}

#fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---- shared type helpers ---- */
.kicker {
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before, .kicker.center::after {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2));
}
.kicker.center::before { background: linear-gradient(90deg, var(--accent-2), transparent); }

.h-sec {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: clamp(38px, 6.4vw, 92px);
}
.h-sec .glow { color: var(--accent); text-shadow: 0 0 28px rgba(255,45,143,0.55); }

.lead { color: var(--muted); font-size: clamp(15px, 1.4vw, 19px); max-width: 56ch; }

/* ---- buttons ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 15px 26px;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: box-shadow .3s var(--ease), background .3s, color .25s, border-color .3s, filter .25s;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, var(--magenta), var(--purple) 55%, var(--violet));
  box-shadow: 0 10px 30px -12px rgba(255,45,143,0.7), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 30px -4px rgba(255,45,143,0.6), 0 14px 34px -14px rgba(177,77,255,0.7), inset 0 0 0 1px rgba(255,255,255,0.28);
}
.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,0.02);
  border-color: rgba(177,77,255,0.45);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 24px -8px rgba(47,227,255,0.55), inset 0 0 20px -10px rgba(47,227,255,0.35);
}
.btn-sm { padding: 11px 18px; font-size: 11px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  transition: background .4s, backdrop-filter .4s, border-color .4s, box-shadow .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 4, 18, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 16px 50px -24px rgba(0,0,0,0.9);
}
.nav-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: height .4s;
}
.nav.scrolled .nav-inner { height: 66px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand .mark { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; filter: drop-shadow(0 0 7px rgba(177,77,255,0.55)); }
.brand .bn { display: flex; flex-direction: column; line-height: 1; padding-left: 13px; margin-left: 1px; border-left: 1px solid var(--line); }
.brand .bn b { font-family: var(--display); font-size: 18px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; background: linear-gradient(92deg, #eafcff, #ffd2ef 60%, #d8c6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .bn span { font-family: var(--body); font-weight: 700; font-size: 8px; letter-spacing: 0.42em; color: var(--muted); margin-top: 5px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.03); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(6,3,14,0.96);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 0 32px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); pointer-events: auto; }
.mobile-menu a { font-family: var(--display); font-size: 34px; text-transform: uppercase; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.mobile-menu a:active { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px 64px;
  overflow: hidden;
}
/* skyline */
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #05030c; }
.hero-video iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100svh; min-width: 177.78svh;
  transform: translate(-50%, -50%) scale(1.03);
  border: 0; pointer-events: none;
  z-index: 1;
}

/* hero video loading state — on-brand neon instead of black */
.hero-loader { position: absolute; inset: 0; z-index: 2; overflow: hidden; opacity: 1; transition: opacity 1s var(--ease); background:
  radial-gradient(90% 70% at 22% 38%, rgba(77,123,255,0.28), transparent 60%),
  radial-gradient(90% 70% at 80% 42%, rgba(177,77,255,0.30), transparent 60%),
  radial-gradient(120% 90% at 50% 120%, rgba(255,45,143,0.22), transparent 60%),
  linear-gradient(180deg, #07040f, #0b0618); }
.hero-loader.hidden { opacity: 0; pointer-events: none; }
.hl-glow { position: absolute; inset: 0; background:
  radial-gradient(40% 40% at 50% 45%, rgba(177,77,255,0.22), transparent 70%); animation: hlBreathe 3.4s ease-in-out infinite; mix-blend-mode: screen; }
.hl-bar { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); width: min(220px, 40vw); height: 2px; border-radius: 2px; background: rgba(255,255,255,0.10); overflow: hidden; }
.hl-bar span { position: absolute; left: 0; top: 0; height: 100%; width: 40%; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent); animation: hlSlide 1.5s var(--ease) infinite; }
.hl-label { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font-size: 9.5px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--faint); }
@keyframes hlSlide { 0%{ left: -40%; } 100%{ left: 100%; } }
@keyframes hlBreathe { 0%,100%{ opacity: 0.5; transform: scale(0.95); } 50%{ opacity: 1; transform: scale(1.08); } }
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  radial-gradient(120% 88% at 50% 32%, rgba(5,3,12,0.30), rgba(5,3,12,0.74) 82%),
  linear-gradient(180deg, rgba(5,3,12,0.6) 0%, rgba(5,3,12,0.18) 34%, rgba(5,3,12,0.9) 100%); }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 34vh; z-index: 2; pointer-events: none; opacity: 0.7; }
.skyline svg { width: 100%; height: 100%; }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 24vh; z-index: 3; background: linear-gradient(180deg, transparent, var(--bg) 88%); pointer-events: none; }

.hero-inner { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; perspective: 1000px; }

.hero-place { font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }

/* glowing logo */
.ringlogo {
  position: relative;
  width: clamp(240px, 31vw, 380px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .3s var(--ease);
}
.ringlogo .uf-logo {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(-14px 0 24px rgba(77,123,255,0.5)) drop-shadow(14px 0 24px rgba(177,77,255,0.5));
  animation: logoPulse 4.8s ease-in-out infinite;
}
.ringlogo .glowdisc { position: absolute; inset: -6%; border-radius: 50%; z-index: 1; background:
  radial-gradient(circle at 14% 50%, rgba(77,123,255,0.55), transparent 46%),
  radial-gradient(circle at 86% 50%, rgba(177,77,255,0.55), transparent 46%); filter: blur(26px); animation: ringPulse 4.8s ease-in-out infinite; }
@keyframes logoPulse {
  0%,100% { filter: drop-shadow(-14px 0 22px rgba(77,123,255,0.5)) drop-shadow(14px 0 22px rgba(177,77,255,0.5)); }
  50%     { filter: drop-shadow(-22px 0 40px rgba(77,140,255,0.68)) drop-shadow(22px 0 40px rgba(177,77,255,0.68)); }
}

.hero-conv { font-family: var(--body); font-weight: 700; font-size: clamp(12px, 1.3vw, 16px); letter-spacing: 0.46em; text-transform: uppercase; color: var(--text); margin-top: -8px; text-shadow: 0 0 16px rgba(177,77,255,0.6); }

.hero-date { font-family: var(--display); font-size: clamp(30px, 4.6vw, 58px); margin-top: 20px; letter-spacing: 0.02em; background: linear-gradient(100deg, #eafcff, #ffc9ec 45%, #cdbcff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 40px rgba(255,61,166,0.25); }
.hero-styles { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; margin-top: 20px; }
.hero-styles span { font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: clamp(11px, 1.2vw, 14px); color: var(--text); }
.hero-styles i { color: var(--accent); font-style: normal; }

.hero-cta { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }

/* countdown */
.countdown { display: flex; gap: 14px; margin-top: 30px; }
.cd { min-width: 74px; text-align: center; }
.cd b { display: block; font-family: var(--display); font-size: clamp(26px, 3.2vw, 40px); line-height: 1; background: linear-gradient(180deg,#fff, #c9b6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd span { font-size: 9.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--faint); margin-top: 7px; display: block; }
.cd + .cd { border-left: 1px solid var(--line); padding-left: 14px; }

.scrollcue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 5; display: none; flex-direction: column; align-items: center; gap: 9px; color: var(--faint); font-size: 9.5px; letter-spacing: 0.3em; text-transform: uppercase; }
.scrollcue .mouse { width: 23px; height: 37px; border: 1.5px solid rgba(177,77,255,0.5); border-radius: 13px; position: relative; }
.scrollcue .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; background: var(--cyan); border-radius: 3px; transform: translateX(-50%); animation: wheel 1.6s infinite; box-shadow: 0 0 8px var(--cyan); }

@keyframes wheel { 0%{opacity:0; transform: translate(-50%,0);} 30%{opacity:1;} 100%{opacity:0; transform: translate(-50%,12px);} }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ringPulse { 0%,100%{ box-shadow: 0 0 50px -8px rgba(177,77,255,0.5), inset 0 0 44px -12px rgba(47,227,255,0.35); } 50%{ box-shadow: 0 0 90px 2px rgba(255,45,143,0.55), inset 0 0 60px -8px rgba(47,227,255,0.5); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* hero entrance choreography — base state is VISIBLE; animation only plays
   once body.anim is added by JS (so content is never stuck hidden). */
@keyframes ringIn { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: scale(1); } }
body.anim .hero-place { animation: fadeUp 1s var(--ease) .2s both; }
body.anim .hero .ringlogo { animation: ringIn 1.4s var(--ease) .35s both; }
body.anim .hero .hero-date,
body.anim .hero .hero-styles,
body.anim .hero .hero-cta,
body.anim .hero .countdown { animation: fadeUp 1s var(--ease) both; }
body.anim .hero .hero-date { animation-delay: .9s; }
body.anim .hero .hero-styles { animation-delay: 1.05s; }
body.anim .hero .hero-cta { animation-delay: 1.2s; }
body.anim .hero .countdown { animation-delay: 1.38s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-place, .hero .ringlogo, .hero .hero-date, .hero .hero-styles, .hero .hero-cta, .hero .countdown { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   PAGE LOADER — preloads/buffers videos before reveal
   ============================================================ */
.page-loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background:
    radial-gradient(90% 70% at 22% 34%, rgba(77,123,255,0.22), transparent 60%),
    radial-gradient(90% 70% at 80% 40%, rgba(177,77,255,0.24), transparent 60%),
    radial-gradient(120% 90% at 50% 118%, rgba(255,45,143,0.18), transparent 60%),
    linear-gradient(180deg, #07040f, #05030c);
  opacity: 1; visibility: visible;
  transition: opacity .8s var(--ease), visibility 0s linear .8s;
}
.page-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-orb { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(circle, rgba(177,77,255,0.16), transparent 62%); filter: blur(20px); animation: hlBreathe 3.6s ease-in-out infinite; }
.pl-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; }
.pl-logo { width: clamp(150px, 22vw, 230px); height: auto; filter: drop-shadow(-12px 0 30px rgba(77,123,255,0.45)) drop-shadow(12px 0 30px rgba(177,77,255,0.45)); animation: plLogoReveal 1.3s var(--ease) both, plLogoPulse 4.8s ease-in-out infinite 1.3s; }
@keyframes plLogoReveal {
  0%   { opacity: 0; transform: scale(0.74) rotate(-7deg); clip-path: circle(0% at 50% 50%); filter: blur(12px); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(0deg); clip-path: circle(160% at 50% 50%); filter: blur(0); }
}
@keyframes plLogoPulse {
  0%,100% { filter: drop-shadow(-9px 0 22px rgba(77,123,255,0.34)) drop-shadow(9px 0 22px rgba(177,77,255,0.34)); }
  50%     { filter: drop-shadow(-18px 0 54px rgba(77,140,255,0.72)) drop-shadow(18px 0 54px rgba(177,77,255,0.72)); }
}
.pl-bar { width: min(240px, 56vw); height: 3px; border-radius: 3px; background: rgba(255,255,255,0.10); overflow: hidden; margin-top: 30px; }
.pl-bar span { display: block; height: 100%; width: 0%; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--magenta)); box-shadow: 0 0 14px rgba(255,45,143,0.6); transition: width .45s var(--ease); }
.pl-pct { font-family: var(--display); font-size: 26px; margin-top: 16px; letter-spacing: 0.04em; color: #fff; display: flex; align-items: baseline; gap: 1px; }
.pl-pct i { font-family: var(--body); font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); }
.pl-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; color: var(--faint); margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .pl-orb, .pl-logo { animation: none; }
}
