:root {
  --bg: #050507;
  --fg: #e0e0e0;
  --fg-strong: #fff;
  --dim: #666;
  --cyan: #00f0ff;
  --magenta: #ff00aa;
  --mono: "Share Tech Mono", "Space Mono", ui-monospace, monospace;
}

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

html, body { background: var(--bg); color: var(--fg); }

body {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* CRT scan lines */
.scanlines {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.05) 0px,
    rgba(255,255,255,0.05) 1px,
    transparent 1px,
    transparent 3px
  );
}
.scanlines::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.6) 100%);
}

/* Top status bar */
.status-bar {
  position: sticky; top: 0;
  z-index: 50;
  transform: translateZ(0);
  will-change: transform;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: #050507;
  border-bottom: 1px solid rgba(0,240,255,0.2);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--dim);
}
.status-bar span { white-space: nowrap; }
.status-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg-strong);
  text-decoration: none;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  transition: color 0.15s;
}
.status-brand:hover,
.status-brand:focus-visible { color: var(--cyan); outline: none; }
.status-brand img {
  display: block;
  width: 28px; height: 28px;
  image-rendering: pixelated;
}
.status-meta { display: inline-flex; gap: 1.25rem; align-items: center; }
.status-dot { color: var(--magenta); animation: flicker 2.5s infinite; }
.status-time { color: var(--cyan); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .status-bar { font-size: 0.6rem; letter-spacing: 0.15em; padding: 0.4rem 0.6rem; }
  .status-brand { font-size: 0.65rem; gap: 0.4rem; }
  .status-brand img { width: 22px; height: 22px; }
  .status-brand span { display: none; }
  .status-meta { gap: 0.7rem; }
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - 2.75rem);
  scroll-margin-top: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0,240,255,0.08), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255,0,170,0.08), transparent 50%),
    radial-gradient(ellipse at center, rgba(0,0,0,0.75) 0%, transparent 55%);
  z-index: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg img {
  width: min(110%, 1400px);
  height: auto;
  opacity: 0.55;
  filter: contrast(1.1) saturate(1.1);
  animation: interlace 6s infinite steps(1);
  will-change: transform, clip-path, filter;
}
/* Interlacing glitch — cycles between clean, light interlace, heavy interlace, chromatic split */
@keyframes interlace {
  0%, 40% {
    clip-path: none;
    filter: contrast(1.1) saturate(1.1);
    transform: translate(0, 0);
  }
  42%, 46% {
    clip-path: polygon(
      0 0, 100% 0, 100% 8%, 0 8%,
      0 14%, 100% 14%, 100% 22%, 0 22%,
      0 28%, 100% 28%, 100% 36%, 0 36%,
      0 42%, 100% 42%, 100% 50%, 0 50%,
      0 56%, 100% 56%, 100% 64%, 0 64%,
      0 70%, 100% 70%, 100% 78%, 0 78%,
      0 84%, 100% 84%, 100% 92%, 0 92%
    );
    filter: contrast(1.4) saturate(1.3) brightness(1.1);
    transform: translate(3px, 0);
  }
  48%, 52% {
    clip-path: none;
    filter: contrast(1.1) saturate(1.1);
    transform: translate(0, 0);
  }
  54%, 58% {
    clip-path: polygon(
      0 3%, 100% 3%, 100% 9%, 0 9%,
      0 17%, 100% 17%, 100% 24%, 0 24%,
      0 33%, 100% 33%, 100% 41%, 0 41%,
      0 50%, 100% 50%, 100% 58%, 0 58%,
      0 67%, 100% 67%, 100% 75%, 0 75%,
      0 83%, 100% 83%, 100% 91%, 0 91%
    );
    filter: contrast(1.6) hue-rotate(-10deg);
    transform: translate(-4px, 1px);
  }
  60%, 100% {
    clip-path: none;
    filter: contrast(1.1) saturate(1.1);
    transform: translate(0, 0);
  }
}
/* Chromatic aberration ghosts on the banner during the glitch beats */
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/wordmark.png") center / min(110%, 1400px) no-repeat;
  /* screen blend removed for scroll perf */
  opacity: 0;
  pointer-events: none;
}
.hero-bg::before {
  filter: drop-shadow(0 0 0 var(--cyan));
  animation: ghost-cyan 6s infinite steps(1);
}
.hero-bg::after {
  animation: ghost-magenta 6s infinite steps(1);
}
.hero-bg::before { filter: hue-rotate(160deg) saturate(4) brightness(1.2); }
.hero-bg::after  { filter: hue-rotate(-40deg) saturate(4) brightness(1.2); }
@keyframes ghost-cyan {
  0%, 41%, 53%, 59%, 100% { opacity: 0; transform: translate(0,0); }
  42%, 46% { opacity: 0.5; transform: translate(-6px, 0); }
  54%, 58% { opacity: 0.4; transform: translate(-8px, 1px); }
}
@keyframes ghost-magenta {
  0%, 41%, 53%, 59%, 100% { opacity: 0; transform: translate(0,0); }
  42%, 46% { opacity: 0.5; transform: translate(6px, 0); }
  54%, 58% { opacity: 0.4; transform: translate(8px, -1px); }
}

.tagline {
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--fg-strong);
  min-height: 1.6em;
  letter-spacing: 0.08em;
  max-width: 560px;
  margin: 0 auto;
  text-wrap: balance;
  text-shadow: 0 0 14px rgba(0,0,0,0.95), 0 0 4px rgba(0,0,0,0.9);
}
.tagline::after {
  content: "_";
  color: var(--cyan);
  animation: cursor-blink 1s steps(1) infinite;
  margin-left: 4px;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

.hero-meta {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  margin: 2.5rem auto 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0,240,255,0.15);
  border-bottom: 1px solid rgba(0,240,255,0.15);
  max-width: 720px;
  flex-wrap: wrap;
}
.hero-meta div { text-align: center; }
.hero-meta dt {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--dim);
  margin-bottom: 0.25rem;
}
.hero-meta {
  background: rgba(0,0,0,0.6);
}
.hero-meta dd {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--fg-strong);
}
.hero-meta .sig-active {
  color: var(--magenta);
  animation: flicker 3s infinite;
}

.scroll-cue {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--cyan);
  border: 1px solid rgba(0,240,255,0.35);
  background: rgba(0,0,0,0.5);
}
.scroll-cue span { animation: scroll-bob 1.6s ease-in-out infinite; }
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* Hero ambient strips */
.hero-strip {
  position: absolute;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--dim);
  background: rgba(0,0,0,0.5);
  border-color: rgba(0,240,255,0.15);
  border-style: solid;
  pointer-events: none;
}
.hero-strip-top { top: 0; border-width: 0 0 1px 0; gap: 1rem; flex-wrap: wrap; }
.hero-strip-bottom {
  bottom: 0;
  border-width: 1px 0 0 0;
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.hero-strip-top span:nth-child(1) { color: var(--cyan); }
.hero-strip-top span:nth-child(3) { color: var(--magenta); }
.ticker {
  display: inline-flex;
  gap: 0;
  animation: ticker-scroll 30s linear infinite;
}
.ticker > span {
  display: inline-block;
  padding-left: 2rem;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 520px) {
  .hero-strip-top { font-size: 0.6rem; letter-spacing: 0.15em; padding: 0.5rem 0.75rem; gap: 0.5rem; }
  .hero-strip-top span:nth-child(3),
  .hero-strip-top span:nth-child(4) { display: none; }
}

/* Sections */
main { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; text-align: center; }
.section-title {
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 0.4em;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  font-weight: 400;
}

/* Framed section with corner ticks */
.framed {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.framed::before, .framed::after,
.framed > .corner-tr, .framed > .corner-bl {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0.6;
}
.framed::before { top: 1.5rem; left: 1rem; border-width: 1px 0 0 1px; }
.framed::after { bottom: 1.5rem; right: 1rem; border-width: 0 1px 1px 0; border-color: var(--magenta); }

.about-lead {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--fg-strong);
  line-height: 1.6;
}
.about-list {
  list-style: none;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  text-align: left;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  border-left: 1px solid rgba(0,240,255,0.25);
  border-right: 1px solid rgba(255,0,170,0.25);
}
.about-list li {
  color: var(--fg);
  letter-spacing: 0.05em;
}
.about-list .k { color: var(--cyan); margin-right: 0.5rem; }
.about-list .ar { color: var(--magenta); margin: 0 0.4rem; }
.about-tail {
  max-width: 640px;
  margin: 0 auto;
  color: var(--dim);
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}

/* Divider */
.divider {
  position: relative;
  height: 2px;
  margin: 0 auto;
  max-width: 760px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--cyan) 15%,
    transparent 30%,
    transparent 50%,
    var(--magenta) 70%,
    transparent 85%,
    var(--cyan) 95%,
    transparent 100%
  );
  opacity: 0.6;
}
.divider::before,
.divider::after {
  content: "";
  position: absolute;
  height: 1px;
}
.divider::before {
  top: -3px; left: 8%; width: 24%;
  background: var(--magenta); opacity: 0.7;
}
.divider::after {
  top: 4px; right: 5%; width: 18%;
  background: var(--cyan); opacity: 0.7;
}

/* Release */
.now-playing-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.now-playing {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--magenta);
  animation: flicker 2.4s infinite;
}
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.eq i {
  display: block;
  width: 3px;
  background: var(--cyan);
  height: 30%;
  animation: eq-bounce 0.9s ease-in-out infinite;
}
.eq i:nth-child(2) { animation-delay: 0.15s; height: 70%; }
.eq i:nth-child(3) { animation-delay: 0.3s; height: 50%; background: var(--magenta); }
.eq i:nth-child(4) { animation-delay: 0.45s; height: 90%; }
.eq i:nth-child(5) { animation-delay: 0.6s; height: 40%; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1.15); }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  48% { opacity: 1; }
  50% { opacity: 0.2; }
  52% { opacity: 1; }
}
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin: 0 auto 1.5rem;
  max-width: 820px;
  border: 1px solid rgba(0,240,255,0.35);
  background: #000;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,0,170,0.15),
    0 0 40px rgba(0,240,255,0.08);
}
.video-placeholder {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(0deg, rgba(0,240,255,0.04) 0 2px, transparent 2px 4px),
    #000;
}
.video-placeholder span {
  position: relative;
  color: var(--cyan);
  font-size: 1rem;
  letter-spacing: 0.35em;
  animation: flicker 2s infinite;
  z-index: 2;
}
.video-placeholder::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
  animation: scan-bar 3.5s linear infinite;
  z-index: 1;
}
@keyframes scan-bar {
  0%   { top: 0%;   opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #000;
}
.release-title {
  font-size: 1.15rem;
  color: var(--fg-strong);
  letter-spacing: 0.15em;
  margin-bottom: 0.35rem;
}
.release-date {
  color: var(--dim);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
}
.transmissions {
  list-style: none;
  margin: 2.5rem auto 0;
  max-width: 560px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--dim);
}
.transmissions li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  letter-spacing: 0.15em;
}
.transmissions li:first-child { border-top: 1px dashed rgba(255,255,255,0.08); }
.transmissions .tx { color: var(--cyan); }
.transmissions .tx-title { color: var(--fg); opacity: 0.7; }
.transmissions .tx-date { color: var(--dim); }

/* Links */
.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  max-width: 520px;
  margin: 0 auto;
}
.btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 1rem 2.6rem 1rem 1.5rem;
  border: 1px solid var(--fg);
  color: var(--fg-strong);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-align: center;
  text-transform: uppercase;
  background: transparent;
  transition: color 0.12s linear, border-color 0.12s linear, background 0.12s linear;
  overflow: hidden;
}
.btn-label { font-size: 1rem; letter-spacing: 0.25em; }
.btn-sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-transform: lowercase;
}
.btn:hover .btn-sub,
.btn:focus-visible .btn-sub { color: var(--fg); }
.btn-primary {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn-signal::after {
  content: "→";
  position: absolute;
  right: 1.2rem; top: 50%;
  transform: translate(10px, -50%);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  color: var(--magenta);
}
.btn-primary.btn-signal::after { color: var(--cyan); }
.btn-signal:hover::after,
.btn-signal:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0, transparent 2px,
    rgba(0,240,255,0.08) 2px, rgba(0,240,255,0.08) 3px
  );
  opacity: 0;
  transition: opacity 0.15s linear;
  pointer-events: none;
}
.btn:hover,
.btn:focus-visible {
  color: var(--fg-strong);
  border-color: var(--magenta);
  background: rgba(255,0,170,0.06);
  outline: none;
  animation: btn-glitch 0.4s steps(2) 1;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: rgba(0,240,255,0.08);
  border-color: var(--cyan);
}
.btn:hover::before,
.btn:focus-visible::before { opacity: 1; }
@keyframes btn-glitch {
  0% { transform: translate(0,0); }
  25% { transform: translate(-3px,0); text-shadow: 2px 0 var(--cyan), -2px 0 var(--magenta); }
  50% { transform: translate(3px,0); text-shadow: -2px 0 var(--cyan), 2px 0 var(--magenta); }
  75% { transform: translate(-1px,0); text-shadow: none; }
  100% { transform: translate(0,0); text-shadow: none; }
}

/* Footer */
footer {
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: var(--dim);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 3rem;
}
.ascii-sig {
  font-family: var(--mono);
  color: var(--cyan);
  opacity: 0.35;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
}

/* Tablet+ */
@media (min-width: 640px) {
  .link-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .btn-primary { grid-column: 1 / -1; padding: 1.3rem; font-size: 1.05rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
