:root {
  --bg: #0a0a0a;
  --bg-2: #111;
  --fg: #f5f5f5;
  --fg-dim: #888;
  --accent: #fff;
  --line: #222;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
button { font: inherit; background: none; border: 0; color: inherit; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  body a, body button { cursor: none; }
}
.cursor-canvas {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-canvas { display: block; }
}

a { color: inherit; text-decoration: none; }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
  mix-blend-mode: difference;
}
.nav-logo {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 14px;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}
.nav-links a { opacity: 0.8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }

@media (max-width: 640px) {
  .nav { padding: 16px 20px; }
  .nav-links { gap: 16px; font-size: 11px; }
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 60px;
}
.hero-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(0.15) contrast(1.1) brightness(0.9);
}
@media (min-width: 721px) {
  .hero-img img {
    object-position: right center;
    filter: grayscale(0.1) contrast(1.05);
    animation: slowZoom 20s ease-out infinite alternate;
  }
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.35) 45%, rgba(10,10,10,0) 70%),
    linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 50%, rgba(10,10,10,0.95) 100%);
}
@media (max-width: 720px) {
  .hero-overlay {
    background:
      radial-gradient(ellipse at center 30%, rgba(10,10,10,0) 0%, rgba(10,10,10,0.35) 55%, rgba(10,10,10,0.85) 100%),
      linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 50%, rgba(10,10,10,0.95) 100%);
  }
  .hero-viz { height: 90px; opacity: 0.45; }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
}
.hero-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--fg-dim);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(80px, 18vw, 280px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}
.hero-title::before,
.hero-title::after {
  content: attr(data-glitch);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}
.hero-title::before { color: #ff2d55; transform: translate(2px, 0); }
.hero-title::after  { color: #00e0ff; transform: translate(-2px, 0); }
.hero-title:hover::before { animation: glitchA .6s steps(2,end) infinite; opacity: 0.8; }
.hero-title:hover::after  { animation: glitchB .6s steps(2,end) infinite; opacity: 0.8; }
@keyframes glitchA {
  0%,100%{ clip-path: inset(0 0 85% 0); transform: translate(2px,0);}
  25%    { clip-path: inset(40% 0 30% 0); transform: translate(-3px,2px);}
  50%    { clip-path: inset(70% 0 10% 0); transform: translate(4px,-2px);}
  75%    { clip-path: inset(10% 0 70% 0); transform: translate(-2px,1px);}
}
@keyframes glitchB {
  0%,100%{ clip-path: inset(85% 0 0 0); transform: translate(-2px,0);}
  25%    { clip-path: inset(10% 0 60% 0); transform: translate(3px,-1px);}
  50%    { clip-path: inset(60% 0 20% 0); transform: translate(-4px,2px);}
  75%    { clip-path: inset(30% 0 50% 0); transform: translate(2px,-2px);}
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--fg-dim);
  text-transform: lowercase;
}
.meta-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff2d55;
  box-shadow: 0 0 10px #ff2d55;
  animation: pulseDot 1.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100%{ opacity: 1; transform: scale(1);}
  50%    { opacity: 0.4; transform: scale(0.7);}
}
.hero-viz {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 140px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}
.hero-sub {
  font-family: 'Space Mono', monospace;
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}
.hero-scroll {
  position: absolute;
  bottom: 30px;
  right: 40px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  z-index: 2;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 0.4; transform: translateY(0); }
  50%     { opacity: 1;   transform: translateY(6px); }
}

@media (max-width: 640px) {
  .hero { padding: 30px 20px; min-height: 520px; }
  .hero-scroll { display: none; }
}

/* SECTIONS */
section {
  padding: 120px 60px;
  max-width: 1600px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  section { padding: 80px 20px; }
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.section-num {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
}
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* BIO */
.bio-body {
  max-width: 720px;
}
.bio-lead {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--fg);
}
.bio-body p:not(.bio-lead) {
  font-size: 16px;
  color: var(--fg-dim);
}

/* GALLERY */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
}
.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-2);
  cursor: zoom-in;
  transform-style: preserve-3d;
  perspective: 800px;
  transition: transform .3s cubic-bezier(.2,.6,.2,1);
  will-change: transform;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.6,.2,1), filter .3s;
  filter: grayscale(0.1);
  transform-origin: center;
}
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.15) 0%,
    rgba(255,255,255,0) 40%
  );
  opacity: 0;
  transition: opacity .3s;
  mix-blend-mode: screen;
}
.tile:hover { transform: scale(1.02); }
.tile:hover img {
  transform: scale(1.08);
  filter: grayscale(0);
}
.tile:hover::after { opacity: 1; }
.tile-cap {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 4px 8px;
  opacity: 0;
  transition: opacity .3s;
}
.tile:hover .tile-cap { opacity: 1; }

/* AGENDA */
.shows {
  list-style: none;
}
.show {
  display: grid;
  grid-template-columns: 180px 1fr 1fr 100px;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s;
}
.show:hover { padding-left: 12px; }
.show-date {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}
.show-venue {
  font-size: 20px;
  font-weight: 500;
}
.show-city {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--fg-dim);
}
.show-cta {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-align: right;
  color: var(--fg-dim);
}
a.show-cta { color: var(--fg); }
a.show-cta:hover { color: var(--fg); text-decoration: underline; }

@media (max-width: 720px) {
  .show {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .show-cta { text-align: left; }
}

/* CONTATO */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.contact-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 12px;
}
.contact-link {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.contact-link:hover { border-bottom-color: var(--fg); }
.socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 17px;
}
.socials a {
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.socials a:hover { border-bottom-color: var(--fg); }

/* FOOT */
.foot {
  border-top: 1px solid var(--line);
  padding: 30px 60px;
  margin-top: 40px;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 640px) {
  .foot { padding: 24px 20px; }
}

/* PLAYER FIXO (Mixcloud) */
.player {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(640px, calc(100vw - 40px));
  pointer-events: auto;
}
.player-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(10,10,10,0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--fg);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  transition: border-color .2s, background .2s;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.player-toggle:hover { border-color: rgba(255,45,85,0.6); }
.player.open .player-toggle { border-bottom: none; }
.pt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  font-size: 10px;
  padding-left: 2px;
}
.player.open .pt-icon { padding-left: 0; }
.player.open .pt-icon::before { content: '■'; font-size: 10px; }
.player.open .pt-icon > * { display: none; }
.pt-label { flex: 1; text-align: left; }
.pt-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}
.pt-wave i {
  display: block;
  width: 2px;
  background: var(--fg);
  height: 20%;
  transform-origin: bottom;
}
.player.open .pt-wave i { animation: waveBar 1s ease-in-out infinite; }
.player.open .pt-wave i:nth-child(1) { animation-delay: 0s;   }
.player.open .pt-wave i:nth-child(2) { animation-delay: .15s; background: #ff2d55;}
.player.open .pt-wave i:nth-child(3) { animation-delay: .3s;  }
.player.open .pt-wave i:nth-child(4) { animation-delay: .45s; background: #ff2d55;}
.player.open .pt-wave i:nth-child(5) { animation-delay: .6s;  }
@keyframes waveBar {
  0%,100%{ height: 20%; }
  50%    { height: 100%; }
}
.player-frame {
  height: 0;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: none;
  transition: height .35s ease;
}
.player.open .player-frame {
  height: 180px;
}
.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 640px) {
  .player { bottom: 12px; }
  .pt-label { font-size: 11px; }
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lb-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity .2s;
}
.lb-close:hover { opacity: 1; }
