/* Dirty Disco - brand kit build (Neumatic Compressed / Sequel Sans / Kraft Mono) */

@font-face {
  font-family: 'Neumatic';
  src: url('../assets/web/fonts/neumatic-black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Neumatic';
  src: url('../assets/web/fonts/neumatic-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Neumatic';
  src: url('../assets/web/fonts/neumatic-medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sequel';
  src: url('../assets/web/fonts/sequel-book.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sequel';
  src: url('../assets/web/fonts/sequel-medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sequel';
  src: url('../assets/web/fonts/sequel-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Kraft Mono';
  src: url('../assets/web/fonts/kraftmono.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --bg:        #080808;
  --bg-2:      #0f0f0f;
  --card:      rgba(255,255,255,0.04);
  --card-hover:rgba(255,255,255,0.07);
  --line:      rgba(255,255,255,0.10);
  --ink:       #f2f2f2;
  --ink-dim:   #b5b5b5;
  --accent:    #38d5e8;
  --font-display: 'Neumatic', 'Arial Narrow', sans-serif;
  --font-body: 'Sequel', 'Helvetica Neue', sans-serif;
  --font-mono: 'Kraft Mono', 'Courier New', monospace;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--ink); }
img, video { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Preloader */
#preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.5s ease, visibility 0.5s;
}
#preloader img {
  width: min(280px, 60vw); height: auto;
}
.preloader-bar {
  width: min(220px, 48vw); height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px; overflow: hidden;
}
.preloader-bar span {
  display: block; width: 100%; height: 100%;
  background: var(--accent);
  transform: translateX(-100%);
  animation: pre-bar 1.5s ease-in-out infinite;
}
#preloader.done { opacity: 0; visibility: hidden; }
@keyframes pre-bar {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Reveal-on-scroll */
.reveal { opacity: 1; transform: none; }
.js-anim .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-anim .reveal.in { opacity: 1; transform: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.9rem 5vw;
  background: linear-gradient(180deg, rgba(18,18,18,0.55) 0%, rgba(8,8,8,0.35) 100%);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 12px 32px rgba(0,0,0,0.45);
}
.nav-brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-dim);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle { display: none; }

.mobile-menu {
  border-radius: 0 0 var(--r-md) var(--r-md);
  display: none;
  position: fixed; top: 60px; left: 0; right: 0; z-index: 99;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
}
.mobile-menu a {
  font-family: var(--font-mono);
  padding: 1rem 5vw;
  text-decoration: none;
  letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem;
  border-top: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }

/* Buttons */
.btn {
  position: relative;
  display: inline-block;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.95rem 2.1rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  color: var(--ink);
}
.btn-solid {
  background: var(--accent);
  color: #061014;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.btn-solid:hover, .btn-solid:focus-visible {
  background: #5ce0f0;
  box-shadow: 0 6px 28px rgba(56,213,232,0.35);
  transform: translateY(-1px);
}
.btn-solid:active {
  background: #26b9cc;
  box-shadow: 0 1px 6px rgba(56,213,232,0.25);
  transform: translateY(0);
}
.btn-ghost {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.28);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}
.btn-ghost:active {
  background: rgba(255,255,255,0.12);
  transform: translateY(0);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - 55px);
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* Video sits taller than the hero and is pulled up so its built-in
   DIRTY DISCO logo lands in the upper third, clear of the text below. */
.hero-media video {
  position: absolute;
  width: 100%; height: 118%;
  top: -18%; left: 0;
  object-fit: cover;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,8,0.5) 0%, rgba(8,8,8,0.1) 35%, rgba(8,8,8,0.55) 72%, rgba(8,8,8,0.92) 100%);
}
.hero-content {
  text-align: center;
  padding: 42svh 5vw 4rem;
  display: flex; flex-direction: column; align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1.25rem;
}
.hero-content .eyebrow { color: var(--ink); }
.hero-top {
  position: absolute;
  top: 1.75rem; left: 0; right: 0;
  margin-inline: auto;
  width: max-content;
  max-width: 92vw;
  text-align: center;
  color: var(--ink);
  margin-bottom: 0;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  background: rgba(8,8,8,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-sub {
  max-width: 44rem;
  color: var(--ink);
  margin: 0.5rem 0 2.25rem;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 4px 28px rgba(0,0,0,0.7);
}
.hero-sub span { display: block; }
.hero-sub .hero-sub-minor {
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 0.14em;
  opacity: 0.85;
  margin-top: 0.35rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* Ticker */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 0.75rem 0;
  background: var(--bg-2);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker-group {
  display: flex; align-items: center;
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.ticker-group span:not(.tick-dot) { padding: 0 1.4rem; }
.tick-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex: none; }
/* Two identical groups, shift by exactly one group width = seamless loop */
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 4rem 5vw; max-width: 1100px; margin: 0 auto; }
.section-wide { max-width: 1280px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

/* Event cards (upcoming) */
.event-card {
  border-radius: var(--r-md);
  display: flex; align-items: center; gap: 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.75rem 2rem;
  margin-bottom: 1rem;
  transition: background 0.2s, border-color 0.2s;
}
.event-card:hover { background: var(--card-hover); border-color: rgba(255,255,255,0.2); }
.event-upcoming .event-date-day { color: var(--accent); }
.event-date {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-display);
  min-width: 4.5rem;
}
.event-date-day { font-size: 2.4rem; font-weight: 900; line-height: 1; }
.event-date-month { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.2em; color: var(--ink-dim); margin-top: 0.35rem; }
.event-info { flex: 1; }
.event-info h3 {
  font-family: var(--font-body);
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.event-info p { color: var(--ink-dim); font-size: 0.98rem; }

/* Signup */
.signup {
  margin-top: 2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 2.25rem 2rem;
}
.signup h3 {
  font-family: var(--font-body);
  font-size: 1.25rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.signup p { color: var(--ink-dim); margin: 0.5rem 0 1.5rem; }
.signup form { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.signup input {
  border-radius: 999px;
  padding-left: 1.3rem;
  flex: 1; min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
}
.signup input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Flyer archive */
.flyer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.flyer-card {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.3s ease;
}
.flyer-card:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-4px); }
.flyer-media { position: relative; aspect-ratio: 9 / 16; overflow: hidden; }
.flyer-media img, .flyer-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.flyer-media video { opacity: 0; transition: opacity 0.25s; }
.flyer-media video.playing { opacity: 1; }
.flyer-info { padding: 1rem 1.1rem 1.2rem; }
.flyer-date {
  font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.flyer-info h3 {
  font-family: var(--font-body);
  font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1.25;
}
.flyer-lineup { color: var(--ink-dim); font-size: 0.9rem; margin-top: 0.4rem; line-height: 1.5; }
.archive-footnote {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--ink-dim);
  margin-top: 1.5rem;
}

/* Aftermovies + gallery */
.aftermovie-stack {
  display: flex; flex-direction: column;
  gap: 2rem;
  max-width: 1020px;
  margin: 0 auto 2rem;
}
.aftermovie {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}
.aftermovie video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.aftermovie figcaption {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.14em;
  padding: 0.85rem 1.1rem;
  color: var(--ink-dim);
  border-top: 1px solid var(--line);
}
.film-tag {
  color: var(--accent);
  margin-right: 0.6rem;
}
.sub-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 2.5rem 0 1.25rem;
}
.clips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.clip {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}
.clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.clip figcaption {
  font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.14em;
  padding: 0.7rem 0.9rem;
  color: var(--ink-dim);
  border-top: 1px solid var(--line);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery-grid img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.about-grid p { color: var(--ink-dim); font-size: 1.05rem; }
.about-grid a { color: var(--ink); }
.about-genres {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.18em;
  color: var(--ink-dim);
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Contact */
.contact-lede { color: var(--ink-dim); margin-bottom: 2rem; max-width: 34rem; }
.contact-form { max-width: 42rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.45rem;
}
.form-field input, .form-field textarea {
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
}
.form-field input:focus-visible, .form-field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-status { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-dim); min-height: 1.4em; }
.form-status.ok { color: #6fe07a; }
.form-status.err { color: var(--accent); }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 5vw;
  text-align: center;
}
.footer-logo { height: 36px; width: auto; margin: 0 auto 1.75rem; }
.footer-links { display: flex; gap: 1.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.75rem; }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--ink); }
.footer-fine { color: var(--ink-dim); font-size: 0.8rem; }

/* Responsive */
@media (max-width: 1000px) {
  .flyer-grid { grid-template-columns: repeat(3, 1fr); }
  .clips-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  /* The fixed full-screen noise overlay and heavy nav blur are the two big
     iOS Safari scroll-jank sources; drop them on small screens. */
  body::after { display: none; }
  .nav {
    background: linear-gradient(180deg, rgba(14,14,14,0.92) 0%, rgba(8,8,8,0.86) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    margin-left: auto;
    background: none; border: none; cursor: pointer; padding: 0.5rem;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); }
  .hero-top { font-size: 0.68rem; letter-spacing: 0.22em; padding: 0.5rem 1rem; }
  .hero-content { padding: 24svh 5vw 3.5rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; width: min(100%, 320px); }
  .hero-actions .btn { text-align: center; }
  .flyer-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .flyer-info { padding: 0.85rem 0.9rem 1rem; }
  .flyer-info h3 { font-size: 0.95rem; }
  .flyer-date { font-size: 0.68rem; }
  .flyer-lineup { font-size: 0.82rem; line-height: 1.45; }
  .clips-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .about-grid, .form-row { grid-template-columns: 1fr; }
  .event-card { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem 1.25rem; }
  .signup { padding: 1.75rem 1.25rem; }
  .section { padding: 3.5rem 5vw; }
}
@media (max-width: 430px) {
  .flyer-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .btn:active, .btn:focus-visible { transform: none; }
  .ticker-track { animation: none; }
  .preloader-bar span { animation: none; transform: none; }
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
