/* ZAIN — DJ portfolio. Minimal, full-bleed, dark. */
:root{
  --bg:#ffffff;
  --fg:#0a0a0a;
  --muted:#777777;
  --accent:#000000;
  --line:#e6e6e6;
  --maxw:1100px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--fg);
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
  min-height:100vh;
}
a{color:inherit;text-decoration:none}

/* Tabbed views — only one shown at a time (mixes keep playing while hidden) */
.view{display:none}
.view.active{display:block}

/* Scroll/section fade-in (disabled if the user prefers reduced motion) */
@media (prefers-reduced-motion: no-preference){
  .reveal{
    opacity:0;transform:translateY(20px);
    transition:opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
    will-change:opacity,transform;
  }
  .reveal.in{opacity:1;transform:none}
}

/* ---- Nav ---- */
header{
  position:fixed;top:0;left:0;right:0;z-index:30;
  display:flex;justify-content:space-between;align-items:center;
  padding:22px 28px;
}
.brand{
  font-weight:700;letter-spacing:.35em;font-size:18px;color:var(--fg);
}
nav{display:flex;gap:26px}
nav a{
  font-size:12px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--muted);transition:color .2s;
}
nav a:hover,nav a.active{color:var(--fg)}

/* ---- Home gallery ---- */
.hero{
  height:100vh;width:100%;
  display:flex;overflow:hidden;
  background:var(--bg);
}
.hero-img{width:50%;height:100%;background:#eaeaea}
.hero-img img{
  width:100%;height:100%;object-fit:cover;object-position:center;
  display:block;
}
.hero-text{
  width:50%;height:100%;
  display:flex;flex-direction:column;justify-content:center;
  padding:0 7vw;color:var(--fg);
}
.hero-text h1{
  font-size:clamp(44px,8vw,120px);
  font-weight:800;letter-spacing:.06em;line-height:.95;
}
.hero-text p{
  margin-top:16px;font-size:clamp(11px,1.3vw,14px);
  letter-spacing:.32em;text-transform:uppercase;color:var(--muted);
}
@media(max-width:720px){
  .hero{flex-direction:column;height:auto}
  .hero-img{width:100%;height:54vh}
  .hero-text{width:100%;padding:26px 28px 16px;justify-content:flex-start}
  .mixes{padding:22px 22px 40px}
}

.gallery img{
  display:block;width:100%;height:90vh;object-fit:cover;
  border-top:1px solid var(--line);
}

/* ---- Credits strip (home) ---- */
.credits{
  text-align:center;padding:30px 28px;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--muted);
}

/* ---- About / bio ---- */
.about-split{display:flex;gap:54px;align-items:flex-start}
.about-text{flex:1 1 0;min-width:0}
.about-img{flex:0 0 40%;max-width:440px}
.about-img img{width:100%;height:auto;display:block}
.about-text h2{margin-bottom:40px}
.bio{max-width:600px}
.bio p{
  font-size:clamp(17px,2.4vw,22px);line-height:1.6;margin-bottom:22px;
}
.bio p:first-child{
  font-weight:700;font-size:clamp(19px,2.8vw,26px);color:var(--fg);
}
@media(max-width:760px){
  .about-split{flex-direction:column;gap:30px}
  .about-img{flex:none;max-width:100%}
  .about-text h2{margin-bottom:24px}
}

/* ---- Mixes ---- */
.mixes{
  max-width:var(--maxw);margin:0 auto;
  padding:90px 28px 40px;
}
.mixes-title{
  font-size:clamp(28px,5vw,52px);font-weight:800;
  letter-spacing:.06em;margin-bottom:40px;
}
.mix{
  display:flex;align-items:center;gap:20px;
  padding:22px 0;border-bottom:1px solid var(--line);
}
.mix .play{
  flex:0 0 auto;width:48px;height:48px;border-radius:50%;
  border:1px solid #cccccc;background:transparent;color:var(--fg);
  font-size:13px;cursor:pointer;transition:.2s;
  display:flex;align-items:center;justify-content:center;
}
.mix .play:hover{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.mix-body{flex:1 1 auto;min-width:0}
.mix-head{
  display:flex;justify-content:space-between;align-items:baseline;
  margin-bottom:10px;
}
.mix-name{font-size:14px;letter-spacing:.18em;text-transform:uppercase}
.mix-time{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.wave{
  width:100%;height:56px;
  background:linear-gradient(#e6e6e6,#e6e6e6) center/100% 1px no-repeat;
  border-radius:3px;
}
.wave-msg{
  display:flex;align-items:center;height:56px;
  font-size:12px;letter-spacing:.1em;color:var(--muted);
}
.mix .dl{
  flex:0 0 auto;width:40px;height:40px;border-radius:50%;
  border:1px solid #cccccc;color:var(--muted);
  display:flex;align-items:center;justify-content:center;
  font-size:16px;transition:.2s;text-decoration:none;
}
.mix .dl:hover{background:var(--fg);color:var(--bg);border-color:var(--fg)}

.cta{
  text-align:center;padding:70px 20px;
}
.cta a{
  display:inline-block;border:1px solid var(--fg);
  padding:14px 30px;font-size:12px;letter-spacing:.2em;
  text-transform:uppercase;transition:.2s;
}
.cta a:hover{background:var(--fg);color:var(--bg)}

/* ---- Generic page ---- */
.page{
  max-width:var(--maxw);margin:0 auto;
  padding:140px 28px 100px;
}
.page h2{
  font-size:clamp(32px,6vw,64px);font-weight:800;
  letter-spacing:.06em;margin-bottom:50px;
}

/* ---- Events ---- */
.event{
  display:flex;justify-content:space-between;align-items:baseline;
  gap:20px;padding:22px 0;border-bottom:1px solid var(--line);
}
.event .name{font-size:clamp(18px,3vw,26px);font-weight:600}
.event .meta{color:var(--muted);font-size:14px;text-align:right;white-space:nowrap}

/* Events — two large columns, top-aligned, each packed tightly (masonry) */
.grid{
  display:flex;gap:28px;align-items:flex-start;
}
.col{
  flex:1 1 0;min-width:0;
  display:flex;flex-direction:column;gap:34px;
}
.card{margin:0;width:100%}
.card img{
  display:block;width:100%;height:auto;background:transparent;
}
.card figcaption{
  display:flex;justify-content:space-between;align-items:baseline;
  gap:14px;padding:12px 2px 0;
}
.card .t{font-size:16px;font-weight:600;letter-spacing:.02em}
.card .m{font-size:13px;color:var(--muted);text-align:right;white-space:nowrap}

@media(max-width:600px){.grid{flex-direction:column}}
/* If an image file isn't there yet, show a labeled placeholder box */
.card.missing img{display:none}
.card.missing{
  border:1px dashed #cccccc;min-height:240px;border-radius:3px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.card.missing figcaption{flex-direction:column;align-items:center;color:var(--muted);text-align:center}
.card.missing .t::before{content:"Add ";}
.card.missing .m::after{content:" \2192 /events";}

@media(max-width:600px){
  .grid{grid-template-columns:1fr;gap:20px}
}

/* ---- Contact ---- */
.contact-list{display:flex;flex-direction:column;gap:28px;font-size:clamp(20px,4vw,34px)}
.contact-list .label{display:block;font-size:12px;letter-spacing:.25em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.contact-list a:hover{color:var(--muted)}

footer{
  text-align:center;padding:40px 20px;color:var(--muted);
  font-size:11px;letter-spacing:.2em;text-transform:uppercase;
}

/* ---- Persistent now-playing bar ---- */
.np{
  position:fixed;left:0;right:0;bottom:0;z-index:20;
  display:none;align-items:center;gap:16px;
  background:rgba(255,255,255,.96);
  -webkit-backdrop-filter:saturate(180%) blur(8px);
  backdrop-filter:saturate(180%) blur(8px);
  border-top:1px solid var(--line);
  padding:10px 20px;
}
.np.show{display:flex}
.np-toggle{
  flex:0 0 auto;width:40px;height:40px;border-radius:50%;
  border:1px solid #cccccc;background:transparent;color:var(--fg);cursor:pointer;
  display:flex;align-items:center;justify-content:center;font-size:12px;transition:.2s;
}
.np-toggle:hover{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.np-meta{flex:0 0 auto;display:flex;flex-direction:column;gap:2px;min-width:0}
.np-name{
  font-size:13px;letter-spacing:.08em;text-transform:uppercase;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:38vw;
}
.np-time{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.np-bar{flex:1 1 auto;height:4px;background:#e6e6e6;border-radius:2px;cursor:pointer;position:relative}
.np-fill{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--fg);border-radius:2px}
body.has-np{padding-bottom:66px}
@media(max-width:600px){.np-name{max-width:46vw}}

@media(max-width:600px){
  header{padding:16px 18px}
  nav{gap:16px}
  .brand{font-size:15px}
}
