:root {
  --bg: #040905;
  --bg-soft: #0d1a10;
  --panel: rgba(10, 25, 14, 0.88);
  --text: #7cff9b;
  --text-dim: #4dbd68;
  --glow: #c8ffd4;
  --border: #1f4d2b;
  --purple: #9b6dff;
  --purple-dim: #6f49c9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(80, 255, 140, 0.06), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: Consolas, Monaco, "Courier New", monospace;
  text-shadow: 0 0 6px rgba(124, 255, 155, 0.18);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.00) 0px,
    rgba(255, 255, 255, 0.00) 2px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0.18) 4px
  );
  opacity: 0.35;
}

.screen {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100% - 2rem));
  margin: 2rem auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(10, 25, 14, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 18px rgba(124, 255, 155, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: bold;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px rgba(155, 109, 255, 0.8);
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--purple);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--glow);
  background: rgba(155, 109, 255, 0.10);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(124, 255, 155, 0.18);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  color: var(--glow);
  border-color: var(--purple);
}

.layout {
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: 0 0 18px rgba(124, 255, 155, 0.05);
}

.hero h1 {
  margin: 0.2rem 0 0.75rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  color: var(--glow);
}

.boot-line,
h2 {
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.lead {
  max-width: 60ch;
  line-height: 1.7;
}

.cursor {
  display: inline-block;
  color: var(--purple);
  animation: blink 1s steps(1) infinite;
}

ul {
  padding-left: 1.2rem;
}

a {
  color: var(--purple);
}

a:hover {
  color: var(--glow);
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .screen {
    width: min(100% - 1rem, 1000px);
    margin: 1rem auto;
  }

  .panel {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
  }
}

.post {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.post:first-of-type {
  border-top: none;
  padding-top: 0.25rem;
}

.post-meta {
  margin: 0 0 0.4rem;
  color: var(--purple);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.post h3 {
  margin: 0 0 0.5rem;
  color: var(--glow);
}

.post p {
  margin: 0;
  line-height: 1.7;
}

.post p + p {
  margin-top: 0.75rem;
}

.bottom-image-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.bottom-image {
  width: min(220px, 60vw);
  height: auto;
  display: block;
}

.updates-wrap {
  position: relative;
}

.updates-panel {
  max-height: 26rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.5rem;
  scrollbar-color: var(--purple) var(--bg-soft);
}

.updates-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5rem;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 25, 14, 0),
    rgba(10, 25, 14, 0.96)
  );
}

.updates-panel .post + .post {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* =========================
   C.O.C. GALLERY
========================= */

.microscope-section {
  text-align: center;
  padding: 3rem 1.25rem 2rem;
}

.microscope-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.microscope-figure {
  margin: 0 auto;
  text-align: center;
}

.microscope-figure img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.microscope-figure figcaption {
  margin-top: 0.75rem;
  text-align: center;
}

.microscope-info {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.microscope-info h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.microscope-info p {
  max-width: 65ch;
  margin: 0 auto 1.25rem;
  text-align: left;
  line-height: 1.7;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
}

.source-box {
  margin: 1rem auto 0;
  text-align: center;
}

.source-box h3 {
  margin-bottom: 0.75rem;
  text-align: center;
  font-size: 1.1rem;
}

.source-box ul {
  display: inline-block;
  margin: 0 auto;
  padding-left: 1.2rem;
  text-align: left;
  font-size: 1rem;
  line-height: 1.7;
}

.microscope-gallery {
  padding: 3rem 1.25rem 4rem;
  text-align: center;
}

.gallery-header {
  margin-bottom: 1.5rem;
}

.gallery-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.gallery-header p {
  margin: 0;
  font-size: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  gap: 1rem;
  justify-content: center;
}

.gallery-card {
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(10, 18, 10, 0.8);
  border: 1px solid rgba(120, 255, 170, 0.14);
}

.gallery-card figure {
  margin: 0 0 0.75rem;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(120, 255, 170, 0.16);
}

.gallery-card figcaption {
  margin-top: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
}

.gallery-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #b9c8ba;
}

@media (max-width: 700px) {
  .topbar {
    align-items: center;
    flex-wrap: wrap;
  }

  .screen {
    width: min(100% - 1rem, 1000px);
    margin: 1rem auto;
  }

  .panel {
    padding: 1rem;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-top: 0.5rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    display: block;
    width: 100%;
  }
}
.back-link-wrap {
  text-align: center;
  margin: 1.5rem 0 2rem;
}

.back-link {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  background: rgba(10, 25, 14, 0.7);
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--glow);
  border-color: var(--purple);
}

.vault-title,
.contact-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: left;
  margin: 0.2rem 0 0.75rem;
}

.vault-title span {
  display: inline-block;
}

.hero {
  text-align: left;
}

.title-gif {
  width: 56px;
  height: auto;
  display: block;
}

.contact-gif {
  width: 42px;
  height: auto;
  display: block;
}

.contact-wrap {
  text-align: left;
  margin: 1rem 0 0;
}

.contact-link {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  background: rgba(10, 25, 14, 0.7);
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--glow);
  border-color: var(--purple);
}

#pad {
  width: 512px;
  height: 512px;
  display: block;
  background: #000;
  image-rendering: pixelated;
  cursor: crosshair;
  touch-action: none;
  pointer-events: auto;
}

.pad-page {
  width: min(1000px, calc(100% - 2rem));
  margin: 2rem auto 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pad-panel,
.sample-panel {
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 0 18px rgba(124, 255, 155, 0.05);
  text-align: center;
}

.pad-title {
  margin: 0;
  color: var(--glow);
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.pad-intro,
.submit-note {
  max-width: 62ch;
  line-height: 1.7;
}

#title {
  width: min(420px, 100%);
  padding: 0.7rem 0.85rem;
  background: rgba(10, 25, 14, 0.9);
  color: var(--glow);
  border: 1px solid var(--border);
  font: inherit;
}

#title::placeholder {
  color: var(--text-dim);
}

#pad {
  width: min(512px, 92vw);
  height: min(512px, 92vw);
  display: block;
  background: #000;
  image-rendering: pixelated;
  cursor: crosshair;
  touch-action: none;
  pointer-events: auto;
  border: 1px solid var(--border);
  box-shadow: 0 0 16px rgba(124, 255, 155, 0.18);
}

.pad-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pad-buttons button,
.email-link,
.back-link {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  background: rgba(10, 25, 14, 0.7);
  color: var(--text);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.pad-buttons button:hover,
.email-link:hover,
.back-link:hover,
.pad-buttons button:focus-visible,
.email-link:focus-visible,
.back-link:focus-visible {
  color: var(--glow);
  border-color: var(--purple);
}

.sample-image {
  display: block;
  width: min(320px, 100%);
  height: auto;
  border: 1px solid var(--border);
  background: #000;
  image-rendering: pixelated;
  box-shadow: 0 0 16px rgba(124, 255, 155, 0.12);
}

@media (max-width: 700px) {
  .pad-page {
    width: min(100% - 1rem, 1000px);
    margin: 1rem auto 3rem;
  }

  .pad-panel,
  .sample-panel {
    padding: 1rem;
  }
}

.post-figure {
  margin: 1rem 0 0;
}

.post-figure img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  border: 1px solid var(--border);
  background: #000;
  image-rendering: pixelated;
  box-shadow: 0 0 12px rgba(124, 255, 155, 0.12);
}

.post-figure figcaption {
  margin-top: 0.6rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}

.tag-button {
  background: #111;
  color: #7CFFB2;
  border: 1px solid #2e6b52;
  padding: 0.45rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

.tag-button:hover,
.tag-button.active {
  border-color: #b06cff;
  color: #d7b8ff;
  box-shadow: 0 0 8px rgba(176,108,255,0.25);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.thumb-card {
  background: #0d0d0d;
  border: 1px solid #244233;
  padding: 0.4rem;
  cursor: pointer;
}

.thumb-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-frame {
  position: relative;
  width: min(90vw, 900px);
  max-height: 90vh;
  background: #050505;
  border: 1px solid var(--text);
  box-shadow: 0 0 18px rgba(124, 255, 155, 0.18);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #000;
}

#lightbox-caption {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--text);
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: #0b0b0b;
  border: 1px solid var(--text);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  color: var(--glow);
  border-color: var(--purple);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .thumb-card {
    padding: 0.35rem;
  }

  .thumb-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
  }

  .gallery-tags {
    gap: 0.45rem;
  }

  .tag-button {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }
}







.music-archive {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100% - 2rem));
  margin: 2rem auto 4rem;
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 0 18px rgba(124, 255, 155, 0.05);
}

.archive-header {
  margin-bottom: 1.75rem;
}

.archive-header h1 {
  margin: 0.2rem 0 0.75rem;
  color: var(--glow);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--purple);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.intro {
  max-width: 60ch;
  margin: 0;
  line-height: 1.7;
}

.collection-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.collection-filters button {
  appearance: none;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  background: rgba(10, 25, 14, 0.7);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.collection-filters button:hover,
.collection-filters button:focus-visible,
.collection-filters button.active {
  color: #16081d;
  background: var(--purple);
  border-color: var(--purple);
  text-shadow: none;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.release-card {
  min-width: 0;
  padding: 1rem;
  background: rgba(10, 18, 10, 0.8);
  border: 1px solid var(--border);
  box-shadow: 0 0 14px rgba(124, 255, 155, 0.04);
}

.release-card:hover {
  border-color: var(--purple);
  box-shadow: 0 0 16px rgba(155, 109, 255, 0.18);
}

.release-format {
  margin: 0 0 0.8rem;
  color: var(--purple);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.release-card h2 {
  margin: 1rem 0 0.2rem;
  color: var(--glow);
  font-size: 1.25rem;
}

.release-title {
  margin: 0 0 1rem;
  color: var(--purple);
}

.release-note {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.release-note p {
  margin: 0.45rem 0;
}

.media-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 0 12px rgba(124, 255, 155, 0.12);
}

.release-card[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .music-archive {
    width: min(100% - 1rem, 1000px);
    margin: 1rem auto 3rem;
    padding: 1rem;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }
}