:root {
  --bg: #09070f;
  --panel-2: rgba(26, 20, 46, 0.95);
  --text: #f7f2ff;
  --muted: #b8acd0;
  --line: rgba(255, 255, 255, 0.1);
  --pink: #ff4fd8;
  --cyan: #61f4ff;
  --lime: #b6ff6a;
  --yellow: #ffe66d;
  --shadow: 0 0 0 2px rgba(255, 255, 255, 0.06), 0 18px 60px rgba(0, 0, 0, 0.45);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "VT323", monospace;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 79, 216, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(97, 244, 255, 0.11), transparent 25%),
    linear-gradient(180deg, #08060d 0%, #0b0814 50%, #07060b 100%);
  overflow-x: hidden;
}



body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
  z-index: 0;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 6, 11, 0.7);
  border-bottom: 1px solid var(--line);
}

.navbar {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-tag {
  font-family: "Press Start 2P", cursive;
  font-size: 0.7rem;
  color: var(--yellow);
  line-height: 1.6;
}

.desktop-nav,
.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav {
  display: flex;
  gap: 1rem;
}

.desktop-nav a,
.mobile-nav-links a {
  font-family: "Press Start 2P", cursive;
  font-size: 0.62rem;
  padding: 0.95rem 1rem;
  border: 2px solid transparent;
  transition: 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav-links a:hover {
  border-color: var(--pink);
  color: var(--pink);
  background: rgba(255, 79, 216, 0.08);
}

.menu-toggle {
  display: none;
  width: 54px;
  height: 54px;
  border: 2px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text);
  display: block;
  transition: 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(10, 8, 18, 0.96);
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-links {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.mobile-nav-links a {
  display: block;
  border-radius: 12px;
}

/* hero */
.gd-hero {
  padding: 4rem 0 1.5rem;
  max-width: 900px;
}

.section-label {
  font-family: "Press Start 2P", cursive;
  font-size: 0.56rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.gd-hero h1 {
  margin: 1rem 0;
  font-family: "Press Start 2P", cursive;
  font-size: clamp(1.4rem, 4vw, 3rem);
  line-height: 1.4;
}

.gd-hero p {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  color: var(--muted);
  line-height: 1.4;
}

/* filters */
.gd-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0.5rem 0 1.5rem;
}

.filter-btn {
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-family: "Press Start 2P", cursive;
  font-size: 0.5rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(97,244,255,0.08);
  transform: translateY(-2px);
}

/* visual gallery */
.gd-gallery {
  columns: 3 260px;
  column-gap: 1rem;
  padding: 1rem 0 4rem;
}

.gd-card {
  width: 100%;
  margin: 0 0 1rem;
  display: inline-block;
  break-inside: avoid;
  padding: 0;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.gd-card:hover,
.gd-card:focus-visible {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--pink);
  box-shadow:
    var(--shadow),
    0 0 18px rgba(255, 79, 216, 0.22);
}

.gd-card img {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  background:
    linear-gradient(135deg, rgba(255,79,216,0.25), rgba(97,244,255,0.18)),
    #141022;
}

.gd-card.tall img {
  min-height: 430px;
}

.gd-card.wide img {
  min-height: 230px;
}

.gd-card span {
  display: block;
  padding: 0.9rem;
  font-family: "Press Start 2P", cursive;
  font-size: 0.52rem;
  line-height: 1.6;
  color: var(--yellow);
}

.gd-card.hide {
  display: none;
}

/* lightbox */
.gd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.gd-lightbox.open {
  display: block;
}

.gd-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 10, 0.84);
  backdrop-filter: blur(8px);
}

.gd-lightbox-panel {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), 1000px);
  margin: 4vh auto 0;
  padding: 1rem;
  border-radius: 24px;
  border: 2px solid rgba(255,255,255,0.08);
  background: var(--panel-2);
  box-shadow: var(--shadow);
}

.gd-lightbox-panel img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  background: #09070f;
}

.gd-lightbox-panel h2 {
  margin: 1rem 0 0;
  font-family: "Press Start 2P", cursive;
  font-size: 0.78rem;
  line-height: 1.6;
}

.gd-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 72px;
  height: 48px;
  padding: 0 0.7rem;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.55);
  color: var(--text);
  font-family: "Press Start 2P", cursive;
  font-size: 0.7rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: 0.2s ease;
}

.gd-lightbox-close:hover {
  border-color: var(--pink);
  color: var(--pink);
  background: rgba(255, 79, 216, 0.12);
  transform: scale(1.06);
}

.gd-lightbox-close span {
  font-size: 0.45rem;
}

/* responsive */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .navbar {
    min-height: 74px;
  }

  .gd-hero {
    padding-top: 2.5rem;
  }

  .gd-gallery {
    columns: 2 220px;
  }

  .filter-btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .gd-gallery {
    columns: 1;
  }

  .gd-card span,
  .section-label,
  .filter-btn {
    letter-spacing: 0.02em;
  }

  .gd-lightbox-panel {
    margin-top: 3vh;
    padding: 0.75rem;
  }

  .gd-lightbox-close {
    min-width: 48px;
    height: 42px;
  }

  .gd-lightbox-close span {
    display: none;
  }
}

/* =========================
   CHUNKY PIXEL WINDOWS ARROW
   ========================= */

body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' shape-rendering='crispEdges'%3E%3Cpath d='M4 2 L4 36 L14 28 L20 44 L28 41 L22 26 L36 26 Z' fill='%23ffffff' stroke='%23000000' stroke-width='4'/%3E%3C/svg%3E") 4 2, auto;
}

/* clickable colour change */
a,
button,
.btn,
.menu-toggle,
.menu-item,
.roulette-card,
.project-card,
.gallery-card,
input[type='submit'] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' shape-rendering='crispEdges'%3E%3Cpath d='M4 2 L4 36 L14 28 L20 44 L28 41 L22 26 L36 26 Z' fill='%23ffe66d' stroke='%23000000' stroke-width='4'/%3E%3C/svg%3E") 4 2, pointer;
}

/* optional: pink when actively clicking */
a:active,
button:active,
.btn:active,
.menu-item:active,
.roulette-card:active,
.project-card:active,
.gallery-card:active {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' shape-rendering='crispEdges'%3E%3Cpath d='M4 2 L4 36 L14 28 L20 44 L28 41 L22 26 L36 26 Z' fill='%23ff4fd8' stroke='%23000000' stroke-width='4'/%3E%3C/svg%3E") 4 2, pointer;
}

@media (hover: none) {
  body,
  a,
  button {
    cursor: auto;
  }
}
