/* ================================================================
   DJ CyberFyed — dark club / neon
   Palette: void #07070f · panel #0e0e1c · cyan #22e5ff · orange #ff7a18
   Type:    Michroma (display) · Saira (body) · IBM Plex Mono (utility)
   ================================================================ */

:root {
  --void:    #07070f;
  --panel:   #0e0e1c;
  --panel-2: #131328;
  --line:    #23233f;
  --cyan:    #22e5ff;
  --orange: #ff7a18;
  --text:    #d8dcee;
  --dim:     #7a7f9e;

  --font-display: 'Michroma', sans-serif;
  --font-body:    'Saira', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --glow-cyan:    0 0 12px rgba(34, 229, 255, .45);
  --glow-orange: 0 0 12px rgba(255, 122, 24, .45);

  --wrap: 1080px;

  /* gallery: photos per row on desktop — edit this number */
  --gallery-cols: 3;
}

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

/* reserve the scrollbar gutter so tab swaps don't shift the layout
   (old Safari ignores this and gets the bounce — acceptable) */
html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  background: var(--void);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 229, 255, .07), transparent),
    radial-gradient(ellipse 60% 40% at 85% 110%, rgba(255, 122, 24, .06), transparent);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-shadow: var(--glow-cyan); }

.mono { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .04em; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: var(--void);
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------------- Header / nav ---------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 15, .85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .12em;
  color: var(--text);
}
.brand:hover { text-shadow: var(--glow-cyan); }
.brand-dj { color: var(--orange); text-shadow: var(--glow-orange); }

.site-nav { display: flex; gap: clamp(.75rem, 2.5vw, 2rem); }

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  color: var(--dim);
  padding: .2rem .1rem;
  border-bottom: 2px solid transparent;
  transition: color .2s;
}
.nav-ch { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .18em; }
.nav-label {
  font-family: var(--font-display);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nav-link:hover { color: var(--text); text-shadow: none; }
.nav-link.is-active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

/* ---------------- Layout ---------------- */

main {
  flex: 1;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }

.page-eyebrow, .hero-eyebrow {
  color: var(--orange);
  letter-spacing: .22em;
  margin-bottom: .75rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.page-intro { color: var(--dim); margin-top: .75rem; max-width: 46ch; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .8rem 1.6rem;
  border: 1px solid;
  background: none;
  cursor: pointer;
  transition: box-shadow .2s, background-color .2s, color .2s;
}

.btn-primary {
  color: var(--void);
  background: var(--cyan);
  border-color: var(--cyan);
}
.btn-primary:hover {
  box-shadow: 0 0 18px rgba(34, 229, 255, .6);
  text-shadow: none;
}

.btn-ghost { color: var(--orange); border-color: var(--orange); }
.btn-ghost:hover {
  background: rgba(255, 122, 24, .12);
  box-shadow: var(--glow-orange);
  text-shadow: none;
}

/* ---------------- Hero (index) ---------------- */

.hero {
  text-align: center;
  padding: clamp(3.5rem, 10vw, 7rem) 0 3rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 4.25rem);
  letter-spacing: .12em;
  line-height: 1.1;
}
.hero-dj { color: var(--orange); text-shadow: 0 0 24px rgba(255, 122, 24, .6); }

.hero-tagline {
  color: var(--dim);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-top: 1rem;
}

.hero-eq {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  height: 72px;
  margin: 2.5rem auto;
  max-width: 560px;
}
.eq-bar {
  flex: 1;
  min-width: 3px;
  background: linear-gradient(to top, var(--cyan), var(--orange));
  animation: eq-dance 1.1s ease-in-out infinite alternate;
  transform-origin: bottom;
  opacity: .9;
}
/* stagger the bars so the strip feels alive, not synchronized */
.eq-bar:nth-child(4n)   { animation-duration: .7s;  animation-delay: -.2s; }
.eq-bar:nth-child(4n+1) { animation-duration: 1.3s; animation-delay: -.6s; }
.eq-bar:nth-child(4n+2) { animation-duration: .9s;  animation-delay: -.9s; }
.eq-bar:nth-child(3n)   { animation-duration: 1.05s; animation-delay: -.4s; }

@keyframes eq-dance {
  from { transform: scaleY(.12); }
  to   { transform: scaleY(1); }
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------------- Bio ---------------- */

.bio { padding: 3rem 0; border-top: 1px solid var(--line); }

.bio-grid {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) 3fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.bio-photo img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  box-shadow: -6px 6px 0 rgba(255, 122, 24, .25), 6px -6px 0 rgba(34, 229, 255, .2);
}

.bio-text p + p { margin-top: 1rem; }

.bio-stats {
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.bio-stats > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
}
.bio-stats dt { color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }

/* ---------------- Mixes ---------------- */

.mix-tabs { display: flex; gap: .6rem; margin-bottom: 1.5rem; }

.mix-tab {
  font-family: var(--font-display);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .6rem 1.5rem;
  border: 1px solid var(--line);
  background: none;
  color: var(--dim);
  cursor: pointer;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.mix-tab:hover { color: var(--text); border-color: var(--dim); }
.mix-tab.is-active {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.mix-list { display: grid; gap: 1.5rem; }
.mix-list.is-loading { opacity: .45; }

.mix-empty { color: var(--dim); padding: 1.5rem 0; }

.mix-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  padding: 1.25rem 1.5rem 1.5rem;
  transition: border-color .2s, box-shadow .2s;
}
.mix-card.is-playing {
  border-left-color: var(--cyan);
  box-shadow: -6px 0 18px -6px rgba(34, 229, 255, .5);
}

.mix-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.play-btn {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  background: rgba(34, 229, 255, .08);
  color: var(--cyan);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: box-shadow .2s, background-color .2s;
}
.play-btn:hover { box-shadow: 0 0 16px rgba(34, 229, 255, .55); }
.play-btn svg { width: 22px; height: 22px; fill: currentColor; }
.play-btn .icon-pause { display: none; }
.mix-card.is-playing .icon-play { display: none; }
.mix-card.is-playing .icon-pause { display: block; }

.mix-meta { flex: 1; min-width: 200px; }
.mix-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .06em;
}
.mix-sub { color: var(--dim); margin-top: .3rem; display: flex; gap: .6rem; flex-wrap: wrap; }

.mix-downloads { display: flex; gap: .5rem; }
.btn-dl {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  padding: .45rem .9rem;
  color: var(--text);
  border-color: var(--line);
}
.btn-dl:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  text-shadow: none;
}

.mix-wave { margin-top: 1.1rem; }
.wave-canvas {
  width: 100%;
  height: 88px;
  display: block;
  cursor: pointer;
  touch-action: none;
}
.wave-times {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  margin-top: .35rem;
}

.mix-desc { color: var(--dim); font-size: .95rem; margin-top: .9rem; }

/* ---------------- Gallery ---------------- */

.gallery-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(var(--gallery-cols), 1fr);
  gap: 1rem;
}
/* narrower screens override the desktop count */
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s, opacity .3s;
}
.gallery-item:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.gallery-item:hover img { transform: scale(1.04); }

.pagination {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.page-link {
  display: grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 .5rem;
  border: 1px solid var(--line);
  color: var(--dim);
}
a.page-link:hover { color: var(--cyan); border-color: var(--cyan); text-shadow: none; }
.page-link.is-current {
  color: var(--void);
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* ---------------- Lightbox ---------------- */

.lightbox { position: fixed; inset: 0; z-index: 90; }
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 10, .92);
}

.lightbox-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem;
  pointer-events: none;
}
.lightbox-stage > * { pointer-events: auto; }

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  border: 1px solid var(--line);
  box-shadow: 0 0 40px rgba(34, 229, 255, .2);
}

.lightbox-caption {
  color: var(--dim);
  margin-top: .8rem;
  display: flex;
  gap: 1rem;
}
.lightbox-count { color: var(--orange); }

.lightbox-btn {
  position: absolute;
  background: rgba(14, 14, 28, .8);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.lightbox-btn:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------------- Contact ---------------- */

.contact { max-width: 720px; }

.form-notice {
  padding: 1rem 1.25rem;
  border: 1px solid;
  margin-bottom: 1.5rem;
}
.form-notice.is-ok  { border-color: var(--cyan); color: var(--cyan); background: rgba(34, 229, 255, .07); }
.form-notice.is-err { border-color: var(--orange); color: var(--orange); background: rgba(255, 122, 24, .07); }

.contact-form { display: grid; gap: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field { display: grid; gap: .4rem; }

.form-field label {
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.optional { color: var(--dim); text-transform: none; letter-spacing: .04em; }

.form-field input,
.form-field textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.form-field [aria-invalid="true"] { border-color: var(--orange); }

.form-field textarea { resize: vertical; }

.field-error { color: var(--orange); font-size: .85rem; }

.hp-field { position: absolute; left: -9999px; }

::selection { background: var(--orange); color: var(--void); }

/* color-scheme so native widgets (date picker) render dark */
:root { color-scheme: dark; }

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 1.75rem;
  text-align: center;
}

.footer-meter {
  display: flex;
  justify-content: center;
  gap: 3px;
  height: 10px;
  margin-bottom: 1rem;
}
.meter-bar {
  width: 6px;
  background: var(--line);
}
.meter-bar:nth-child(-n+16) { background: rgba(34, 229, 255, .5); }
.meter-bar:nth-child(n+21)  { background: rgba(255, 122, 24, .6); }

.footer-line {
  color: var(--dim);
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.footer-sep { color: var(--orange); }

/* ---------------- Responsive ---------------- */

@media (max-width: 720px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { max-width: 420px; }
  .form-row { grid-template-columns: 1fr; }
  .mix-downloads { width: 100%; }
  .lightbox-stage { padding: 3.5rem 1rem 5rem; }
  .lightbox-prev { top: auto; bottom: 1rem; transform: none; }
  .lightbox-next { top: auto; bottom: 1rem; transform: none; }
}

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eq-bar { animation: none; transform: scaleY(.6); }
  .gallery-item img, .gallery-item, .btn, .play-btn, .mix-card { transition: none; }
}
