* {
    text-decoration: none;
}

:root {
  --bg: #07060d;
  --panel: #100e1a;
  --text: #fff8d8;
  --muted: #a8a386;
  --pink: #ff4800;
  --cyan: #ff6a00;
  --lime: #ffa600;
  --violet: #ffcb5c;
  --max: 1300px;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
  --mono: "Space Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(60vw 40vw at 10% -10%, rgba(89, 43, 255, 0.22), transparent 60%),
    radial-gradient(60vw 40vw at 95% 5%, rgba(25, 243, 255, 0.18), transparent 60%),
    linear-gradient(rgba(92, 157, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(92, 106, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--mono);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--cyan); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 3.5rem 1rem 1.5rem;
}

.kicker {
  color: var(--lime);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--marker);
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 8rem);
  line-height: 0.95;
  margin: 0.4rem 0 1rem;
  transform: rotate(-2deg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Extra room so the slanted marker letters aren't clipped by the gradient text */
.hero h1 span {
  display: inline-block;
  padding: 0.1em 0.3em;
  margin: -0.1em -0.3em;
}

.hero h1 span:first-child {
  background: linear-gradient(90deg, var(--pink), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(82, 43, 255, 0.55));
}

.hero h1 span:last-child {
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(25, 243, 255, 0.5));
  margin-top: -0.05em;
}

/* Equalizer */
.eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 56px;
  margin: 0 auto 1.5rem;
  max-width: 420px;
}

.eq span {
  flex: 1;
  height: 100%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--pink), var(--cyan) 70%, var(--lime));
  transform-origin: bottom;
  animation: bounce 1s ease-in-out infinite alternate;
  box-shadow: 0 0 10px rgba(25, 243, 255, 0.35);
}

@keyframes bounce {
  from { transform: scaleY(0.12); }
  to   { transform: scaleY(1); }
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: all 0.2s;
}

.top-nav a:hover {
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 0 16px rgba(43, 206, 255, 0.5);
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 43, 214, 0.08);
  margin: 1.5rem 0 2rem;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  animation: scroll 28s linear infinite;
}

.ticker-track span {
  font-family: var(--marker);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--lime);
  padding: 0.5rem 2rem 0.5rem 0;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Filters ---------- */
.filters {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.chip {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chip small {
  opacity: 0.6;
  font-size: 0.7em;
  margin-left: 0.25em;
}

.chip:hover { border-color: var(--cyan); color: var(--cyan); }

.chip.active {
  background: var(--lime);
  border-color: var(--lime);
  color: #0a0a0a;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(182, 255, 0, 0.45);
}

/* ---------- Gallery ---------- */
.gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
  columns: 4 260px;
  column-gap: 1.25rem;
}

.tile {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.5rem;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.tile:hover {
  transform: rotate(0deg) scale(1.03);
  border-color: hsl(var(--hue), 100%, 60%);
  box-shadow:
    0 0 0 1px hsl(var(--hue), 100%, 60%),
    0 0 26px hsla(var(--hue), 100%, 60%, 0.55);
  z-index: 2;
  position: relative;
}

.tile-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #1a1530, #0d0a18);
  border: 0;
  padding: 0;
  cursor: zoom-in;
  min-height: 120px;
  border-radius: 3px;
  overflow: hidden;
}

.tile-btn img {
  display: block;
  width: 100%;
  height: auto;
}

.tile figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.55rem 0.2rem 0.15rem;
}

.tile figcaption strong {
  font-family: var(--marker);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.tile figcaption span {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

/* ---------- Panels ---------- */
.panel {
  max-width: 640px;
  margin: 5rem auto 0;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.panel h2 {
  font-family: var(--marker);
  font-weight: 400;
  font-size: 2rem;
  color: var(--pink);
  text-shadow: 0 0 16px rgba(43, 142, 255, 0.6);
  margin-bottom: 0.5rem;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 4rem 1rem 3rem;
}

/* ---------- Viewer ---------- */
#viewer {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border: 0;
  background: transparent;
  color: var(--text);
}

#viewer::backdrop {
  background: rgba(5, 3, 12, 0.94);
  backdrop-filter: blur(6px);
}

.stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3.5rem 1rem 1rem;
  cursor: zoom-out;
}

.stage figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100% - 7rem);
  max-height: 100%;
  cursor: default;
}

.stage img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(92, 116, 255, 0.35);
}

.stage figcaption {
  margin-top: 0.8rem;
  text-align: center;
}

.stage figcaption strong {
  font-family: var(--marker);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--cyan);
}

.stage figcaption span {
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.v-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  flex: none;
  transition: all 0.2s;
}

.v-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 0 16px rgba(43, 230, 255, 0.5);
}

.v-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.1rem;
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .stage { gap: 0.25rem; padding-inline: 0.25rem; }
  .stage figure { max-width: calc(100% - 5.5rem); }
  .v-btn { width: 2.4rem; height: 2.4rem; font-size: 1.3rem; }
  .gallery { columns: 2 140px; column-gap: 0.75rem; }
  .tile { margin-bottom: 0.75rem; padding: 0.35rem; }
  .tile figcaption { flex-direction: column; gap: 0; }
  .tile figcaption strong { font-size: 0.95rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eq span, .ticker-track { animation: none; }
  .eq span { transform: scaleY(0.6); }
  .tile, .tile:hover { transform: none; transition: none; }
}

/* Tag next to the title */
.title-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  font-size: clamp(3rem, 12vw, 8rem); /* same size as the title, so the tag scales with it */
}

.title-tag {
  position: absolute;
  right: -0.55em;
  bottom: 0.05em;
  width: 0.85em;
  height: auto;
  transform: rotate(4deg);
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.25));
  pointer-events: none;
}

@media (max-width: 700px) {
  .title-tag { right: -0.15em; bottom: -0.15em; width: 0.6em; }
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.social-btn svg {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  flex: none;
}