/* ==========================================================================
   Matt Gray Fan Page — css/style.css
   Identity: "City at midnight — copper warmth against violet darkness"
   Background: #0e0b16 (Last Ninja 2 New York midnight sky)
   Accent:     #c87941 (sodium-vapour street lighting, Central Park)
   Headings:   Saira Condensed 700 — New York skyscraper verticality
   Body:       Source Sans 3
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@700&family=Source+Sans+3:wght@400;600&display=swap');

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:              #0e0b16;
  --bg-card:         #13101e;
  --bg-alt:          #0a0812;
  --bg-overlay:      rgba(14, 11, 22, 0.95);
  --text:            #e4ddd4;
  --text-muted:      #7a7068;
  --accent:          #c87941;
  --accent-dim:      rgba(200, 121, 65, 0.15);
  --accent-dark:     #8a5228;
  --border:          #1e1928;
  --border-accent:   rgba(200, 121, 65, 0.3);
  --font-heading:    'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-body:       'Source Sans 3', 'Helvetica Neue', sans-serif;

  --nav-height:         60px;
  --player-bar-height:  72px;
  --container-max:      1140px;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes vu-pulse {
  0%, 100% { transform: scaleY(0.25); }
  50%       { transform: scaleY(1.0); }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes katana-wipe {
  0%   { clip-path: inset(0 100% 0 0); }
  40%  { clip-path: inset(0 0 0 0); }
  60%  { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

@keyframes progress-shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8;
  overflow-x: hidden;
  padding-top: var(--nav-height);
  padding-bottom: var(--player-bar-height);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover,
a:focus {
  color: var(--text);
  outline: none;
}

ul, ol { list-style: none; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p + p { margin-top: 0.9em; }

strong { color: var(--text); font-weight: 600; }

code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  color: var(--accent);
  background: var(--bg-card);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-section {
  padding: 4rem 0;
}

.site-section--alt {
  background: var(--bg-alt);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(14, 11, 22, 0.97);
  border-bottom: 1px solid var(--border-accent);
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1.5rem;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.burger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.nav-menu::-webkit-scrollbar { display: none; }

.nav-item { flex-shrink: 0; }

.nav-link {
  display: block;
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent);
}

.nav-link--active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

@media (max-width: 800px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(14, 11, 22, 0.98);
    border-bottom: 1px solid var(--border-accent);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    gap: 0;
    overflow-y: auto;
    max-height: calc(100vh - var(--nav-height));
    z-index: 999;
  }

  .nav-menu--open { display: flex; }

  .nav-link {
    padding: 0.6rem 0;
    font-size: 1rem;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Player Bar (fixed at bottom)
   -------------------------------------------------------------------------- */
#player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-bar-height);
  background: rgba(14, 11, 22, 0.98);
  border-top: 1px solid var(--border-accent);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0;
  backdrop-filter: blur(8px);
}

.pb-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 1rem;
  flex-shrink: 0;
}

.pb-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.pb-btn:hover,
.pb-btn:focus {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.pb-btn--primary {
  width: 36px;
  height: 36px;
  border-color: var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
}

.pb-btn--active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.pb-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  overflow: hidden;
}

.pb-track-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.pb-now-playing {
  font-size: 0.8rem;
  font-family: var(--font-heading);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.pb-subtune {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.pb-progress-wrap {
  position: relative;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
}

.pb-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s linear;
}

.pb-vu {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
  flex-shrink: 0;
  padding: 0 0.5rem;
}

.pb-vu span {
  display: block;
  width: 3px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  transform: scaleY(0.15);
  opacity: 0.6;
}

.pb-vu.is-playing span:nth-child(1) { animation: vu-pulse 0.6s ease-in-out infinite; }
.pb-vu.is-playing span:nth-child(2) { animation: vu-pulse 0.5s ease-in-out 0.1s infinite; }
.pb-vu.is-playing span:nth-child(3) { animation: vu-pulse 0.7s ease-in-out 0.05s infinite; }
.pb-vu.is-playing span:nth-child(4) { animation: vu-pulse 0.4s ease-in-out 0.2s infinite; }
.pb-vu.is-playing span:nth-child(5) { animation: vu-pulse 0.8s ease-in-out 0.15s infinite; }

.pb-volume {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.5rem;
  flex-shrink: 0;
}

.pb-vol-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.2rem;
  transition: color 0.2s;
}

.pb-vol-btn:hover { color: var(--accent); }

.pb-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.pb-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}

.pb-vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.pb-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 0.5rem 0 0;
  font-variant-numeric: tabular-nums;
}

.pb-subtune-panel {
  position: absolute;
  bottom: var(--player-bar-height);
  left: 0;
  right: 0;
  background: rgba(14, 11, 22, 0.98);
  border-top: 1px solid var(--border-accent);
  max-height: 220px;
  overflow-y: auto;
  z-index: 999;
  display: none;
  padding: 0.5rem 0;
}

.pb-subtune-panel.is-open { display: block; }

.pb-subtune-item {
  padding: 0.4rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pb-subtune-item:hover,
.pb-subtune-item:focus {
  color: var(--accent);
  background: var(--accent-dim);
  outline: none;
}

.pb-subtune-item.is-active {
  color: var(--accent);
}

@media (max-width: 600px) {
  .pb-volume,
  .pb-time,
  .pb-vu { display: none; }

  .pb-btn { width: 28px; height: 28px; }
  .pb-btn--primary { width: 32px; height: 32px; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  background: linear-gradient(170deg, #141020 0%, var(--bg) 60%);
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(200, 121, 65, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.25;
  filter: sepia(0.4) brightness(0.7);
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 1rem auto 2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat-block {
  text-align: center;
}

.stat-block .num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-block .label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Page Hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #13101e 0%, var(--bg) 100%);
}

.page-hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.page-hero__title {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 0.75rem;
}

.page-hero__subtitle {
  color: var(--text-muted);
  max-width: 680px;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background: transparent;
  color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-accent);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--accent);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0;
}

.section-intro {
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.game-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.game-card__title {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  color: var(--accent);
}

.game-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.game-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   Tags
   -------------------------------------------------------------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  font-weight: 600;
}

.tag--platform { background: var(--accent-dim); color: var(--accent); }
.tag--publisher { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.tag--year { background: rgba(255,255,255,0.04); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Music page: track groups
   -------------------------------------------------------------------------- */
.track-group {
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.track-group__header {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.track-group__header:hover {
  background: var(--bg-alt);
}

.track-group__title {
  font-size: 1.2rem;
  color: var(--accent);
  flex: 1;
  min-width: 0;
}

.track-group__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.track-group__body { padding: 0; }

.track-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.track-row:last-child { border-bottom: none; }

.track-row:hover,
.track-row.is-playing {
  background: var(--accent-dim);
}

.track-row.is-playing .track-row__name { color: var(--accent); }

.track-row__num {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.track-row__name {
  font-size: 0.9rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-row__platform {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.track-row__deepsid {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.track-row__deepsid a {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.track-row__deepsid a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Reformation section
   -------------------------------------------------------------------------- */
.reformation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.album-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.album-card:hover {
  border-color: var(--border-accent);
}

.album-card__title {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.album-card__year {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.album-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.album-card__link {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border-accent);
  border-radius: 2px;
  color: var(--accent);
  transition: background 0.15s;
}

.album-card__link:hover {
  background: var(--accent-dim);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Timeline / History
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-entry {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(200, 121, 65, 0.4);
}

.timeline-period {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.timeline-heading {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.timeline-body {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline-body p + p { margin-top: 0.7em; }

/* --------------------------------------------------------------------------
   Catalogue Table
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
}

table {
  width: 100%;
  min-width: 750px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-accent);
  text-align: left;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

tbody tr:hover { background: var(--accent-dim); }

tbody td {
  padding: 0.6rem 0.75rem;
  color: var(--text-muted);
  vertical-align: top;
}

tbody td:first-child {
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.filter-btn:hover,
.filter-btn--active {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.gallery-item:hover {
  border-color: var(--border-accent);
}

.gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.gallery-item__caption {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Video embeds
   -------------------------------------------------------------------------- */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1.5rem 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.video-card:hover {
  border-color: var(--border-accent);
}

.video-card__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-card__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-card__info {
  padding: 0.85rem 1rem;
}

.video-card__title {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.video-card__meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Resources / Links
   -------------------------------------------------------------------------- */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resource-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: border-color 0.2s;
}

.resource-item:hover {
  border-color: var(--border-accent);
}

.resource-item__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
  color: var(--accent);
}

.resource-item__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.resource-item__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Quotes / Interview excerpts
   -------------------------------------------------------------------------- */
blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border-radius: 0 3px 3px 0;
}

blockquote p {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--accent);
  font-style: normal;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Placeholder (no image)
   -------------------------------------------------------------------------- */
.placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 2rem;
  min-height: 120px;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-visible {
  animation: reveal-up 0.5s ease forwards;
}

/* --------------------------------------------------------------------------
   Easter egg — NINJA overlay
   -------------------------------------------------------------------------- */
.ninja-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.ninja-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.ninja-katana {
  font-size: 6rem;
  animation: katana-wipe 1.8s ease-in-out forwards;
  transform-origin: center;
  display: block;
  overflow: hidden;
}

.ninja-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s 0.5s;
}

.ninja-overlay.is-active .ninja-text {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
}

.lb-inner img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--border);
}

.lb-close {
  position: absolute;
  top: -2rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  letter-spacing: 0.06em;
}

.lb-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: right;
}

@media (max-width: 600px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
  .site-footer__text { text-align: left; }
}

/* --------------------------------------------------------------------------
   Misc utilities
   -------------------------------------------------------------------------- */
.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;
}

.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }

.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }

.note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border-left: 3px solid var(--border);
  border-radius: 0 3px 3px 0;
  margin: 1rem 0;
}

.hvsc-ref {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.people-bio {
  max-width: 720px;
}

.people-bio p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1em;
}

/* --------------------------------------------------------------------------
   Game cover images & lightbox
   -------------------------------------------------------------------------- */
.game-cover { margin: 0 0 0.75rem; max-width: 180px; }
.game-screenshot {
  width: 100%; display: block; object-fit: contain;
  border: 1px solid var(--border-dim, #333);
  border-radius: var(--radius, 4px);
  background: var(--bg-secondary, #111);
  cursor: zoom-in; transition: border-color 0.2s;
}
.game-screenshot:hover { border-color: var(--accent-cyan, #00e5ff); }
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.93);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; cursor: zoom-out; padding: 1rem;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img {
  max-width: 95vw; max-height: 90vh; object-fit: contain;
  border: 1px solid var(--border-dim, #333); border-radius: var(--radius, 4px); cursor: zoom-out;
}
.lightbox-close {
  position: fixed; top: 1rem; right: 1.5rem; background: none; border: none;
  color: var(--accent-cyan, #00e5ff); font-size: 2.5rem; line-height: 1;
  cursor: pointer; z-index: 10000; padding: 0.25rem 0.5rem;
}
.lightbox-close:hover { color: var(--accent-yellow, #ffd700); }
