/* ============================================================
   MĀCĪNE — RGB design system
   Pure-black void cut by additive neon. Built fresh for a DJ.
   ============================================================ */

:root {
  --void: #05060a;
  --void-2: #0a0c14;
  --ink: #f4f6ff;
  --muted: #8b90a8;
  --line: rgba(255,255,255,.10);

  --rgb-red:     #ff1f4b;
  --rgb-green:   #25f4a0;
  --rgb-blue:    #2f6bff;
  --rgb-magenta: #ff2bd6;
  --rgb-cyan:    #1fe5ff;

  --shell: 1180px;
  --pad: clamp(20px, 5vw, 64px);

  --f-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Space Grotesk", system-ui, sans-serif;
  --f-mono: "Space Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: .96; letter-spacing: -.01em; }

.shell { width: min(var(--shell), 100% - var(--pad) * 2); margin-inline: auto; }

/* ---- Global RGB field (WebGL canvas) + fallback ---------------------- */
#rgb-field {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  opacity: .55;
}
/* CSS fallback aurora when WebGL is unavailable (canvas gets .no-webgl) */
#rgb-field.no-webgl {
  opacity: 1;
  background:
    radial-gradient(60vw 60vw at 15% 10%, rgba(255,31,75,.20), transparent 60%),
    radial-gradient(55vw 55vw at 85% 20%, rgba(47,107,255,.20), transparent 60%),
    radial-gradient(60vw 60vw at 70% 90%, rgba(37,244,160,.16), transparent 60%),
    radial-gradient(50vw 50vw at 25% 80%, rgba(255,43,214,.16), transparent 60%);
}
body::before { /* deep vignette to keep the void black at edges */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 40%, transparent 40%, rgba(5,6,10,.85) 100%);
}

/* ---- Film grain + scanline texture ----------------------------------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-4%)}
  60%{transform:translate(-3%,-3%)} 80%{transform:translate(4%,2%)} 100%{transform:translate(0,0)}
}

/* ---- Cursor RGB aura (desktop pointers only) ------------------------- */
.cursor-aura {
  position: fixed; top: 0; left: 0; z-index: 1; pointer-events: none;
  width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,107,255,.18), rgba(255,43,214,.10) 40%, transparent 70%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .4s ease;
  filter: blur(8px);
}
.cursor-aura.on { opacity: 1; }  /* shown by JS on desktop hover AND on touch-drag */

/* ---- RGB chromatic-split text ---------------------------------------- */
.rgb-split { position: relative; color: var(--ink); isolation: isolate; }
.rgb-split::before, .rgb-split::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none; mix-blend-mode: screen;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.rgb-split::before { color: var(--rgb-red);  transform: translate(-.035em, .012em); }
.rgb-split::after  { color: var(--rgb-cyan); transform: translate(.035em, -.012em); }
.rgb-split:hover::before { transform: translate(-.08em, .02em); }
.rgb-split:hover::after  { transform: translate(.08em, -.02em); }

/* periodic glitch nudge on the big marks */
.hero-title, .book-title { animation: glitch 7s infinite steps(1); }
@keyframes glitch {
  0%,92%,100% { filter: none; }
  93% { filter: drop-shadow(2px 0 var(--rgb-red)) drop-shadow(-2px 0 var(--rgb-cyan)); transform: translateX(1px); }
  95% { filter: drop-shadow(-3px 0 var(--rgb-magenta)) drop-shadow(3px 0 var(--rgb-green)); transform: translateX(-2px); }
  97% { filter: none; transform: translateX(0); }
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--f-mono); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  white-space: nowrap;
}
.btn-book {
  color: #fff;
  background: linear-gradient(90deg, var(--rgb-red), var(--rgb-magenta));
  box-shadow: 0 0 0 0 rgba(255,43,214,.5);
}
.btn-book:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(255,43,214,.7); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.02); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--rgb-cyan); color: var(--rgb-cyan); box-shadow: 0 0 30px -8px var(--rgb-cyan); }
.btn-lg { font-size: 16px; padding: 20px 40px; }

/* ---- Nav ------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5,6,10,.72); backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: .06em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); position: relative; padding: 4px 0; transition: color .2s;
}
.nav-links a::after { content:""; position:absolute; left:0; bottom:-2px; width:0; height:1px; background: var(--rgb-cyan); transition: width .25s ease; }
.nav-links a:hover { color: var(--ink); } .nav-links a:hover::after { width: 100%; }
.nav-book { padding: 10px 20px; }
@media (max-width: 720px) { .nav-links { display: none; } .nav-book { margin-left: auto; } }

/* ---- Hero ------------------------------------------------------------ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.25) contrast(1.05); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,6,10,.55) 0%, rgba(5,6,10,.35) 40%, rgba(5,6,10,.92) 100%),
    radial-gradient(80% 60% at 30% 50%, transparent, rgba(5,6,10,.5));
}
.hero-inner { position: relative; z-index: 2; padding-top: 80px; }
.eyebrow {
  display: inline-block; font-family: var(--f-mono); font-size: 13px; letter-spacing: .35em;
  text-transform: uppercase; color: var(--rgb-cyan); margin-bottom: 18px;
  text-shadow: 0 0 18px rgba(31,229,255,.6);
}
.hero-title {
  font-size: clamp(72px, 17vw, 240px); letter-spacing: .02em; margin: 0;
  line-height: .85;
}
.hero-tagline {
  font-family: var(--f-mono); font-weight: 700; letter-spacing: .42em; text-transform: uppercase;
  font-size: clamp(13px, 2.4vw, 20px); color: var(--ink); margin: 18px 0 0;
  opacity: .9;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* EQ bars */
.eq { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-top: 30px; }
.eq span {
  width: 5px; height: 100%; border-radius: 2px; transform-origin: bottom;
  background: linear-gradient(180deg, var(--rgb-cyan), var(--rgb-blue));
  animation: eq 1.1s ease-in-out infinite;
}
.eq span:nth-child(3n+1){ background:linear-gradient(180deg,var(--rgb-red),var(--rgb-magenta)); }
.eq span:nth-child(3n+2){ background:linear-gradient(180deg,var(--rgb-green),var(--rgb-cyan)); }
.eq span:nth-child(1){animation-delay:-.2s} .eq span:nth-child(2){animation-delay:-1.4s}
.eq span:nth-child(3){animation-delay:-.6s} .eq span:nth-child(4){animation-delay:-1.0s}
.eq span:nth-child(5){animation-delay:-.3s} .eq span:nth-child(6){animation-delay:-.9s}
.eq span:nth-child(7){animation-delay:-1.6s} .eq span:nth-child(8){animation-delay:-.5s}
.eq span:nth-child(9){animation-delay:-1.2s} .eq span:nth-child(10){animation-delay:-.7s}
.eq span:nth-child(11){animation-delay:-.1s} .eq span:nth-child(12){animation-delay:-1.5s}
.eq span:nth-child(13){animation-delay:-.8s} .eq span:nth-child(14){animation-delay:-.4s}
.eq span:nth-child(15){animation-delay:-1.1s}
@keyframes eq { 0%,100%{ transform: scaleY(.18); } 50%{ transform: scaleY(1); } }

/* scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: start center; padding-top: 7px; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 2px; background: var(--rgb-cyan); box-shadow: 0 0 12px var(--rgb-cyan); animation: cue 1.6s infinite; }
@keyframes cue { 0%{ transform: translateY(0); opacity: 1; } 70%{ transform: translateY(16px); opacity: 0; } 100%{ opacity: 0; } }

/* ---- Section bands --------------------------------------------------- */
.band { position: relative; padding: clamp(80px, 13vw, 170px) 0; }
.band-head { max-width: 760px; margin-bottom: 48px; }
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.kicker i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--rgb-cyan)); box-shadow: 0 0 14px var(--c, var(--rgb-cyan)); }
.band h2 { font-size: clamp(40px, 8vw, 104px); }
.lede { font-size: clamp(17px, 2.2vw, 22px); color: var(--muted); margin: 20px 0 0; max-width: 60ch; }
.lede em { color: var(--ink); font-style: normal; border-bottom: 1px solid var(--rgb-red); }
.band-foot { margin-top: 30px; }
.link-arrow { font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--rgb-cyan); }
.link-arrow:hover { text-shadow: 0 0 18px var(--rgb-cyan); }

/* media-backed bands (Live, Book) */
.band-media, .book { overflow: hidden; }
.band-media-bg, .book-beams { position: absolute; inset: 0; z-index: 0; }
.band-media-bg video, .book-beams video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.2); }
.band-media-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,10,.86), rgba(5,6,10,.7) 50%, rgba(5,6,10,.94)); }
.band-media .shell, .book .shell { position: relative; z-index: 2; }

/* ---- Cards ----------------------------------------------------------- */
/* fluid: columns reflow continuously with the viewport — no hard breakpoint */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.card {
  padding: 30px 26px; border: 1px solid var(--line); border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  backdrop-filter: blur(8px);
  position: relative; overflow: hidden; transition: transform .3s ease, border-color .3s ease;
}
.card::before { content:""; position:absolute; top:0; left:0; right:0; height:2px; background: linear-gradient(90deg, var(--rgb-red), var(--rgb-green), var(--rgb-blue), var(--rgb-magenta)); opacity:.85; }
.card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.22); }
.card h3 { font-size: 26px; margin-bottom: 10px; letter-spacing: .01em; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card a { color: var(--rgb-cyan); }

.book-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.book-strip span { font-family: var(--f-mono); letter-spacing: .08em; color: var(--ink); }

/* ---- Sound player ---------------------------------------------------- */
.player { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--void-2); box-shadow: 0 0 60px -20px rgba(255,31,75,.5); }
.player iframe { display: block; }

/* ---- Wear ------------------------------------------------------------ */
.wear-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px){ .wear-grid { grid-template-columns: 1fr; } }
.wear-grid .band-head { margin-bottom: 0; }
.wear-grid .btn-ghost { margin-top: 26px; }
.wear-mark { display: grid; gap: 6px; text-align: right; font-family: var(--f-display); font-weight: 700; line-height: .9; }
.wear-mark span { font-size: clamp(40px, 9vw, 110px); letter-spacing: .03em; }
@media (max-width: 820px){ .wear-mark { text-align: left; } }

/* ---- Feed grid ------------------------------------------------------- */
/* fluid: 4-up on desktop → ~2-up on phones, reflowing by available width */
.feed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(140px, 22%), 1fr)); gap: 12px; }
.feed-tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); }
.feed-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .4s ease; filter: saturate(1.05); }
.feed-tile::after { content:""; position:absolute; inset:0; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .3s; }
.feed-tile:hover img { transform: scale(1.06); filter: saturate(1.3); }
.feed-tile:hover::after { box-shadow: inset 0 0 0 2px var(--rgb-cyan), inset 0 0 40px rgba(31,229,255,.25); }
.feed-tile-tag { position: absolute; left: 10px; bottom: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(5,6,10,.6); padding: 5px 9px; border-radius: 2px; opacity: 0; transform: translateY(6px); transition: .25s; backdrop-filter: blur(4px); }
.feed-tile:hover .feed-tile-tag { opacity: 1; transform: translateY(0); }

/* ---- Book (closer) --------------------------------------------------- */
.book { text-align: center; }
.book-inner { display: flex; flex-direction: column; align-items: center; }
.book-title { font-size: clamp(44px, 11vw, 150px); margin: 14px 0 0; }
.book .lede { text-align: center; }
.book .btn-lg { margin-top: 36px; }
.contact-chips { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.contact-chips a {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: 9px 18px; border: 1px solid var(--line); border-radius: 40px; transition: .25s;
}
.contact-chips a:hover { color: var(--ink); border-color: var(--rgb-magenta); box-shadow: 0 0 24px -8px var(--rgb-magenta); }

/* ---- Footer ---------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot .rgb-split { font-family: var(--f-display); font-size: 22px; letter-spacing: .06em; }
.foot-meta { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.foot-credit { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); transition: color .2s; }
.foot-credit:hover { color: var(--rgb-cyan); }

/* ---- Reveal on scroll ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Mobile phones — dedicated responsive pass ----------------------- */
@media (max-width: 600px) {
  :root { --pad: 22px; }
  html { scroll-padding-top: 60px; }

  /* nav: clear the notch, BOOK pinned right, tighter bar */
  .nav { padding-top: env(safe-area-inset-top, 0px); }
  .nav-inner { height: 58px; gap: 12px; }
  .brand { font-size: 20px; }
  .nav-book { padding: 9px 15px; }

  /* hero: let the wordmark dominate; full-width thumb CTAs */
  .hero { min-height: 100svh; }
  .hero-inner { padding-top: 0; }
  .hero-title { font-size: clamp(82px, 23vw, 150px); }
  .eyebrow { font-size: 11px; letter-spacing: .26em; margin-bottom: 12px; }
  .hero-tagline { font-size: 14px; letter-spacing: .3em; }
  .eq { height: 32px; margin-top: 24px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 30px; }
  .hero-cta .btn { width: 100%; }

  /* sections: tighter vertical rhythm */
  .band { padding: 76px 0; }
  .band-head { margin-bottom: 36px; }

  /* book closer: keep the email CTA on-screen on the narrowest phones */
  .btn-lg { font-size: 13px; padding: 18px 18px; letter-spacing: .06em; }
  .contact-chips { gap: 8px; }
  .contact-chips a { padding: 8px 13px; }

  /* footer respects the home indicator */
  .foot { padding-bottom: calc(38px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- Touch devices: no hover, so the marks come alive on their own --- */
@media (hover: none) {
  .hero-title::before { animation: split-r 3.6s ease-in-out infinite; }
  .hero-title::after  { animation: split-c 3.6s ease-in-out infinite; }
  .book-title::before { animation: split-r 4.2s ease-in-out infinite; }
  .book-title::after  { animation: split-c 4.2s ease-in-out infinite; }
  /* feed tiles reveal their tag without hover */
  .feed-tile-tag { opacity: 1; transform: none; }
}
@keyframes split-r { 0%,100% { transform: translate(-.035em, .012em); } 50% { transform: translate(-.10em, .03em); } }
@keyframes split-c { 0%,100% { transform: translate(.035em, -.012em); } 50% { transform: translate(.10em, -.03em); } }

/* tap feedback — intense chromatic burst on touch (JS toggles .glitching) */
.rgb-split.glitching::before { transform: translate(-.14em, .045em) !important; }
.rgb-split.glitching::after  { transform: translate(.14em, -.045em) !important; }
.rgb-split.glitching { animation: glitch-burst .45s steps(2) 1; }
@keyframes glitch-burst {
  0%,100% { filter: none; }
  30% { filter: drop-shadow(3px 0 var(--rgb-red)) drop-shadow(-3px 0 var(--rgb-cyan)); transform: translateX(2px); }
  65% { filter: drop-shadow(-4px 0 var(--rgb-magenta)) drop-shadow(4px 0 var(--rgb-green)); transform: translateX(-2px); }
}

/* ---- Reduced motion — reduce motion, but don't strip the identity ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .eq span, .hero-title, .book-title, .scroll-cue span,
  .rgb-split::before, .rgb-split::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  /* video posters + the RGB field gradient stay visible so it never looks dead */
}
