/* ============================================================
   WIGGA RECORDS. styles.css
   cursed 2003 webpage that got a 2025 makeover
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --acid: #ccff00;
  --magenta: #ff00aa;
  --cyan: #00ffff;
  --orange: #ff5500;
  --ink: #f0f0f0;
  --muted: #8a8a8a;
  --line: #2a2a2a;
  --font-display: 'Anton', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-marker: 'Permanent Marker', cursive;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: auto; }
html.no-scroll, html.no-scroll body { overflow: hidden !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--acid); color: #000; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--acid); border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: var(--magenta); }

/* ---------- texture overlays ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-4%, 3%); }
  50% { transform: translate(3%, -4%); }
  75% { transform: translate(-3%, -2%); }
  100% { transform: translate(4%, 4%); }
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 8999;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px, rgba(0,0,0,0.22) 3px);
  mix-blend-mode: multiply;
  opacity: 0.5;
}

/* ---------- custom cursor ---------- */
.cursor, .cursor__dot {
  position: fixed;
  top: 0; left: 0;
  z-index: 10003;
  pointer-events: none;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  body, a, button, input { cursor: none; }
  .cursor {
    display: block;
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid var(--acid);
    transition: width 0.15s, height 0.15s, margin 0.15s, border-color 0.15s;
  }
  .cursor::before, .cursor::after {
    content: "";
    position: absolute;
    background: var(--acid);
  }
  .cursor::before { top: 50%; left: 0; right: 0; height: 1px; margin-top: -0.5px; }
  .cursor::after { left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; }
  .cursor.is-hover {
    width: 56px; height: 56px;
    margin: -28px 0 0 -28px;
    border-color: var(--magenta);
  }
  .cursor.is-hover::before, .cursor.is-hover::after { background: var(--magenta); }
  .cursor__dot {
    display: block;
    width: 5px; height: 5px;
    margin: -2.5px 0 0 -2.5px;
    background: var(--magenta);
    border-radius: 50%;
  }
}

/* ---------- enter screen ---------- */
.enter {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.enter.is-done { opacity: 0; visibility: hidden; }
.enter__inner { width: min(440px, 82vw); text-align: center; }
.enter__logo {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 4rem);
  letter-spacing: 0.04em;
  color: var(--acid);
  text-shadow: 3px 0 var(--cyan), -3px 0 var(--magenta);
}
.enter__text {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.enter__btn { margin-top: 1.8rem; }

/* ---------- boot screen ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__inner { width: min(440px, 82vw); }
.boot__logo {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 4rem);
  letter-spacing: 0.04em;
  color: var(--acid);
  text-shadow: 3px 0 var(--cyan), -3px 0 var(--magenta);
}
.boot__line {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 1.4em;
}
.boot__bar {
  margin-top: 1rem;
  height: 14px;
  border: 1px solid var(--acid);
  padding: 2px;
}
.boot__fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(45deg, var(--acid) 0 6px, #000 6px 12px);
  transition: width 0.2s ease;
}
.boot__hint {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- marquee ---------- */
.marquee {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 38px;
  overflow: hidden;
  background: var(--acid);
  border-bottom: 2px solid #000;
  display: flex;
  align-items: center;
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 28s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #000;
  padding-right: 0.5rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- layout ---------- */
main { position: relative; z-index: 1; padding-top: 38px; }
section { position: relative; padding: clamp(4rem, 12vh, 8rem) clamp(1.2rem, 6vw, 6rem); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.section__sub {
  margin-top: 0.8rem;
  color: var(--muted);
  max-width: 40ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border: 2px solid #000;
  background: transparent;
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--magenta);
  transition: box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
  will-change: transform;
}
.btn--primary { background: var(--acid); color: #000; }
.btn--primary:hover { box-shadow: 2px 2px 0 var(--magenta); background: #e6ff5a; }
.btn--ghost { color: var(--acid); border-color: var(--acid); box-shadow: 5px 5px 0 var(--cyan); }
.btn--ghost:hover { box-shadow: 2px 2px 0 var(--cyan); color: #000; background: var(--acid); }

/* ---------- hero ---------- */
.hero {
  min-height: calc(100vh - 38px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.4rem;
  padding-top: clamp(3rem, 10vh, 6rem);
}
.hero__label {
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--acid);
  border: 1px solid var(--acid);
  padding: 0.4rem 0.9rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 11vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 16ch;
  margin: 0 auto;
  text-shadow: 4px 0 var(--cyan), -4px 0 var(--magenta);
  animation: chroma 3s ease-in-out infinite;
}
@keyframes chroma {
  0%, 100% { text-shadow: 4px 0 var(--cyan), -4px 0 var(--magenta); }
  50% { text-shadow: 7px 0 var(--cyan), -7px 0 var(--magenta); }
}
.hero__sub { color: var(--muted); max-width: 46ch; }
.hero__scroll {
  position: absolute;
  bottom: 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- manifesto ---------- */
.manifesto { text-align: left; }
.manifesto__stamp {
  display: inline-block;
  font-family: var(--font-marker);
  font-size: 1.4rem;
  color: var(--magenta);
  border: 3px solid var(--magenta);
  padding: 0.2rem 0.8rem;
  transform: rotate(-8deg);
  margin-bottom: 1.4rem;
  opacity: 0.85;
}
.manifesto__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 5rem);
  line-height: 0.98;
  text-transform: uppercase;
  max-width: 16ch;
}
.manifesto__body {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  max-width: 60ch;
  border-left: 3px solid var(--acid);
  padding-left: 1.2rem;
  color: var(--ink);
}
.manifesto__tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.tag {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 0.4rem 0.7rem;
}

/* ---------- roster ---------- */
.roster__grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.card {
  position: relative;
  border: 2px solid var(--line);
  background: #101010;
  padding: 1.6rem;
  box-shadow: 6px 6px 0 #000;
}
.card:nth-child(1) { --rot: -1deg; }
.card:nth-child(2) { --rot: 1.2deg; }
.card:nth-child(3) { --rot: 0.8deg; }
.card:nth-child(4) { --rot: -1.4deg; }
.js .card.is-in:hover {
  transform: translateY(0) rotate(var(--rot)) translate(-2px, -2px);
  border-color: var(--acid);
  box-shadow: 10px 10px 0 var(--magenta);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card__id {
  font-family: var(--font-display);
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--acid);
}
.card__bio { margin-top: 0.7rem; color: var(--muted); font-size: 0.95rem; }
.card__status {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-marker);
  font-size: 0.9rem;
  color: #000;
  background: var(--orange);
  padding: 0.15rem 0.5rem;
  transform: rotate(6deg);
}

/* ---------- releases ---------- */
.releases__list { margin-top: 2.4rem; list-style: none; }
.release {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.2rem 0.6rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease, padding-left 0.15s ease;
}
.release:hover { background: #121212; padding-left: 1.2rem; }
.release__no { color: var(--muted); font-size: 0.85rem; }
.release__name { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; }
.release__meta { color: var(--muted); font-size: 0.9rem; grid-column: 2 / 3; }
.release__status {
  font-family: var(--font-marker);
  font-size: 0.85rem;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

/* ---------- videos ---------- */
.videos { text-align: center; }
.videos__note { margin: 1rem auto 2rem; color: var(--muted); max-width: 44ch; }
.videos__cta { font-size: 1rem; }

/* ---------- guestbook ---------- */
.guestbook__form {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 720px;
}
.guestbook__input {
  flex: 1 1 220px;
  background: #101010;
  border: 2px solid var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
}
.guestbook__input:focus { outline: none; border-color: var(--acid); }
.guestbook__input::placeholder { color: #555; }
.guestbook__entries { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.8rem; max-width: 720px; }
.entry {
  border: 1px solid var(--line);
  background: #0e0e0e;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}
.entry__name { color: var(--acid); font-weight: 700; }
.entry__msg { color: var(--ink); }
.entry__time { color: #555; font-size: 0.75rem; margin-top: 0.3rem; }

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 10vh, 6rem) clamp(1.2rem, 6vw, 6rem) 2rem;
  border-top: 2px solid var(--line);
}
.footer__big {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 11vw, 8rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 4px 0 var(--magenta), -4px 0 var(--cyan);
  margin-bottom: 2.4rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  font-size: 0.9rem;
}
.footer__col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__counter { color: var(--acid); }
.footer__counter span {
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  color: var(--magenta);
}
.footer__line { color: var(--muted); }
.footer__link { color: var(--ink); text-align: left; background: none; border: none; padding: 0; }
.footer__link:hover { color: var(--acid); text-decoration: underline; }
.footer__bottom { margin-top: 2.4rem; color: #555; font-size: 0.8rem; }

/* ---------- cookie consent ---------- */
.cookie {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 9500;
  max-width: 520px;
  margin: 0 auto;
  background: #101010;
  border: 2px solid var(--acid);
  box-shadow: 8px 8px 0 var(--magenta);
  padding: 1.2rem;
}
.cookie__text { font-size: 0.95rem; margin-bottom: 1rem; }
.cookie__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  top: 54px; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 9600;
  background: #000;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-family: var(--font-marker);
  font-size: 1rem;
  padding: 0.6rem 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- konami ---------- */
.konami {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.konami__text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 14vw, 9rem);
  text-transform: uppercase;
  text-align: center;
  animation: rainbow 1s linear infinite;
}
@keyframes rainbow {
  0% { color: var(--acid); text-shadow: 4px 0 var(--cyan), -4px 0 var(--magenta); }
  25% { color: var(--cyan); text-shadow: 4px 0 var(--magenta), -4px 0 var(--orange); }
  50% { color: var(--magenta); text-shadow: 4px 0 var(--orange), -4px 0 var(--acid); }
  75% { color: var(--orange); text-shadow: 4px 0 var(--acid), -4px 0 var(--cyan); }
  100% { color: var(--acid); text-shadow: 4px 0 var(--cyan), -4px 0 var(--magenta); }
}

/* ---------- reveal (JS adds .js to <html>, .is-in to elements) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px) rotate(var(--rot, 0deg)); }
.js .reveal.is-in { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)); transition: opacity 0.7s ease, transform 0.7s ease; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .marquee__track { animation: none; }
  .hero__title { animation: none; }
  .hero__scroll { animation: none; }
  .konami__text { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .roster__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .release { grid-template-columns: auto 1fr; }
  .release__status { grid-column: 2 / 3; justify-self: start; margin-top: 0.4rem; }
  .manifesto__body { border-left-width: 2px; padding-left: 1rem; }
  .cookie { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; }
}