/* ============================================
   FLESH & CODE - Digital Flesh Ontology
   ============================================ */

/* CSS Variables */
:root {
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: #111115;
  --text-primary: #eaeaea;
  --text-secondary: #99aabb;
  --text-muted: #666677;
  --neon-green: #00ff99;
  --neon-blue: #00ccff;
  --neon-pink: #ff00aa;
  --neon-magenta: #ff0080;
  --neon-purple: #aa00ff;
  --accent-dim: #004466;
  --font-mono: 'Share Tech Mono', monospace;
  --font-sans: 'Montserrat', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.8s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* Hide default cursor on interactive elements */
a, button, input, textarea {
  cursor: none;
}

::selection {
  background: var(--neon-blue);
  color: var(--bg-dark);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
/* Main cursor - green arrow */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.1s ease;
}

.cursor::before {
  content: '↖';
  font-size: 24px;
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Trailing arrows */
.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  font-size: 18px;
  color: var(--neon-green);
  opacity: 0.6;
  text-shadow: 0 0 8px var(--neon-green);
}

.cursor-trail:nth-child(2) { opacity: 0.5; font-size: 16px; }
.cursor-trail:nth-child(3) { opacity: 0.4; font-size: 14px; }
.cursor-trail:nth-child(4) { opacity: 0.3; font-size: 12px; }
.cursor-trail:nth-child(5) { opacity: 0.2; font-size: 10px; }
.cursor-trail:nth-child(6) { opacity: 0.15; font-size: 9px; }
.cursor-trail:nth-child(7) { opacity: 0.1; font-size: 8px; }

/* Hide old follower */
.cursor-follower {
  display: none;
}

.cursor-follower.hover {
  display: none;
}

/* ============================================
   SCANLINES OVERLAY
   ============================================ */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1) 0px,
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 2px
  );
  opacity: 0.3;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 204, 255, 0.1);
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-green);
  font-family: var(--font-mono);
  text-decoration: none;
}

.logo span {
  color: var(--neon-blue);
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition-fast);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
  transition: width var(--transition-medium);
}

.site-nav a:hover {
  color: var(--neon-blue);
}

.site-nav a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--neon-blue);
  transition: var(--transition-fast);
}

/* ============================================
   GLITCH TEXT EFFECT
   ============================================ */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch-text::before {
  color: var(--neon-pink);
  animation: glitch-1 2s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text::after {
  color: var(--neon-blue);
  animation: glitch-2 3s infinite linear alternate-reverse;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(2px, -2px); }
  40% { transform: translate(2px, 2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(-2px, 2px); }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.7) 0%,
    rgba(10, 10, 10, 0.4) 50%,
    rgba(10, 10, 10, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--neon-green);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(0, 255, 153, 0.5);
}

.hero .ampersand {
  color: var(--neon-blue);
}

.subtitle {
  font-size: 1.2rem;
  color: var(--neon-blue);
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  opacity: 0.9;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2.5rem;
  min-height: 1.5em;
  font-family: var(--font-mono);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* CTA Buttons */
.cta-button {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  border: none;
  border-radius: 0;
  background: var(--neon-blue);
  color: var(--bg-dark);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 204, 255, 0.4);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--neon-blue);
  color: var(--neon-blue);
}

.cta-button.secondary:hover {
  background: var(--neon-blue);
  color: var(--bg-dark);
}

.cta-button.pulse {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 204, 255, 0.4); }
  50% { box-shadow: 0 0 40px rgba(0, 204, 255, 0.8); }
}

.cta-button.small {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--neon-blue);
  border-bottom: 2px solid var(--neon-blue);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Audio Controls Container */
.audio-controls {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 9998;
}

/* Track Info Container */
.track-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

/* Track Navigation Buttons */
.track-nav {
  display: flex;
  gap: 0.35rem;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.track-nav.visible {
  opacity: 1;
  transform: translateX(0);
}

.track-nav-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  backdrop-filter: blur(5px);
  padding: 0;
  line-height: 1;
}

.track-nav-btn:hover {
  background: var(--neon-blue);
  color: var(--bg-dark);
  transform: scale(1.1);
}

/* Track Title Display */
.track-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.track-title.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Audio Toggle - Fixed Position (Mid-Right) */
.audio-toggle-btn {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.9);
  border: 2px solid var(--neon-blue);
  color: var(--neon-blue);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.audio-toggle-btn:hover {
  background: var(--neon-blue);
  color: var(--bg-dark);
  transform: scale(1.1);
}

.audio-toggle-btn.playing {
  animation: audio-pulse 1s infinite;
}

/* Crossed line when paused/muted */
.audio-toggle-btn.paused::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 3px;
  background: var(--neon-blue);
  transform: translate(-50%, -50%) rotate(-45deg);
  border-radius: 2px;
}

@keyframes audio-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(0, 204, 255, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 15px rgba(0, 204, 255, 0); }
}

/* Audiobook Toggle - Fixed Position (Below Music Button) */
.audiobook-toggle-btn {
  position: fixed;
  right: 1.5rem;
  top: calc(50% + 60px);
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.9);
  border: 2px solid var(--neon-magenta);
  color: var(--neon-magenta);
  font-size: 1.2rem;
  z-index: 9998;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.audiobook-toggle-btn:hover {
  background: var(--neon-magenta);
  color: var(--bg-dark);
  transform: translateY(-50%) scale(1.1);
}

.audiobook-toggle-btn.playing {
  animation: audiobook-pulse 1s infinite;
}

@keyframes audiobook-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(255, 0, 128, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 15px rgba(255, 0, 128, 0); }
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
  padding: 6rem 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  width: 100%;
  display: block;
  color: var(--neon-blue);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: var(--font-mono);
}

/* Reveal animations */
.reveal-section {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CONCEPT/ABOUT SECTION
   ============================================ */
.concept {
  background: var(--bg-darker);
}

.concept-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.pitch {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  background: var(--bg-card);
  padding: 2rem;
  border: 1px solid rgba(0, 204, 255, 0.1);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
  transform: scaleX(0);
  transition: transform var(--transition-medium);
}

.feature-item:hover::before {
  transform: scaleX(1);
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: var(--neon-blue);
  box-shadow: 0 20px 40px rgba(0, 204, 255, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--neon-green);
  margin-bottom: 1rem;
  text-align: center;
}

.feature-item h3 {
  color: var(--neon-blue);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  text-align: center;
  font-family: var(--font-mono);
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
}

/* ============================================
   THEMES SECTION
   ============================================ */
.themes {
  background: var(--bg-dark);
}

.themes-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

/* Center the last card (Creation & Destiny) when it's alone on its row */
.theme-card.centered-card {
  grid-column: 1 / -1;
  max-width: 400px;
  justify-self: center;
}

.theme-card {
  background: var(--bg-card);
  padding: 2rem;
  border: 1px solid rgba(0, 204, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.theme-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 204, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.theme-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-blue);
}

.theme-card:hover::after {
  opacity: 1;
}

.theme-number {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(0, 204, 255, 0.1);
  font-family: var(--font-mono);
}

.theme-card h3 {
  color: var(--neon-green);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.theme-subtitle {
  color: var(--neon-blue);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.theme-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* ============================================
   VIDEO GALLERY
   ============================================ */
.videos {
  background: var(--bg-darker);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 204, 255, 0.1);
  overflow: hidden;
  transition: all var(--transition-medium);
}

.video-card:hover {
  transform: scale(1.02);
  border-color: var(--neon-blue);
  box-shadow: 0 20px 40px rgba(0, 204, 255, 0.15);
}

.video-wrapper {
  position: relative;
  overflow: hidden;
}

.video-card video,
.video-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.video-glitch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    transparent 50%,
    rgba(0, 255, 153, 0.03) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.video-card:hover .video-glitch-overlay {
  opacity: 1;
}

.arrow-quote {
  padding: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
  font-family: var(--font-mono);
  border-top: 1px solid rgba(0, 204, 255, 0.1);
}

/* Video Expand Button */
.video-expand-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--neon-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-fast);
  z-index: 10;
}

.video-card:hover .video-expand-btn {
  opacity: 1;
}

.video-expand-btn:hover {
  background: var(--neon-blue);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--neon-blue);
}

.expand-icon {
  color: var(--neon-blue);
  font-size: 1.2rem;
  transition: color var(--transition-fast);
}

.video-expand-btn:hover .expand-icon {
  color: var(--bg-dark);
}

/* ============================================
   FULLSCREEN VIDEO MODAL
   ============================================ */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.97);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  z-index: 2;
}

.modal-content video {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid var(--neon-blue);
  box-shadow:
    0 0 30px rgba(0, 204, 255, 0.3),
    0 0 60px rgba(0, 204, 255, 0.1);
}

.modal-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.modal-quote {
  flex: 1;
  text-align: center;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-style: italic;
  font-size: 1rem;
  padding: 0 1rem;
}

.modal-mute-btn,
.modal-close-btn {
  width: 50px;
  height: 50px;
  background: transparent;
  border: 1px solid var(--neon-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-mute-btn:hover,
.modal-close-btn:hover {
  background: var(--neon-blue);
  box-shadow: 0 0 20px var(--neon-blue);
}

.mute-icon,
.close-icon {
  color: var(--neon-blue);
  font-size: 1.5rem;
  transition: color var(--transition-fast);
}

.modal-mute-btn:hover .mute-icon,
.modal-close-btn:hover .close-icon {
  color: var(--bg-dark);
}

.modal-mute-btn.muted .mute-icon::after {
  content: '×';
  position: absolute;
  color: var(--neon-pink);
}

.modal-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  pointer-events: none;
  z-index: 3;
}

.modal-nav-btn {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--neon-blue);
  border-radius: 50%;
  color: var(--neon-blue);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: all var(--transition-fast);
}

.modal-nav-btn:hover {
  background: var(--neon-blue);
  color: var(--bg-dark);
  box-shadow: 0 0 30px var(--neon-blue);
  transform: scale(1.1);
}

/* Modal glitch animation on open */
@keyframes modalGlitch {
  0% { transform: translate(0); filter: hue-rotate(0deg); }
  20% { transform: translate(-2px, 2px); filter: hue-rotate(90deg); }
  40% { transform: translate(-2px, -2px); filter: hue-rotate(180deg); }
  60% { transform: translate(2px, 2px); filter: hue-rotate(270deg); }
  80% { transform: translate(2px, -2px); filter: hue-rotate(360deg); }
  100% { transform: translate(0); filter: hue-rotate(0deg); }
}

.video-modal.active .modal-content video {
  animation: modalGlitch 0.3s ease-out;
}

/* ============================================
   ARROWS SECTION
   ============================================ */
.arrows {
  background: var(--bg-dark);
}

.arrows-intro {
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-secondary);
}

.arrows-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.arrow-item {
  height: 220px;
  perspective: 1000px;
  position: relative;
}

/* Arrow items with GIF backgrounds */
.arrow-item.has-gif {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  overflow: hidden;
}

.arrow-item.has-gif::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.7);
  z-index: 0;
  transition: background 0.3s ease;
}

.arrow-item.has-gif:hover::before {
  background: rgba(10, 10, 10, 0.4);
}

.arrow-item .arrow-front,
.arrow-item .arrow-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(0, 204, 255, 0.2);
  transition: transform 0.6s;
  z-index: 1;
}

.arrow-item .arrow-front {
  background: var(--bg-card);
}

.arrow-item.has-gif .arrow-front {
  background: transparent;
}

.arrow-item .arrow-back {
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 204, 255, 0.1));
  transform: rotateY(180deg);
}

.arrow-item.has-gif .arrow-back {
  background: rgba(10, 10, 10, 0.85);
}

.arrow-item:hover .arrow-front {
  transform: rotateY(-180deg);
}

.arrow-item:hover .arrow-back {
  transform: rotateY(0deg);
}

.arrow-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--neon-blue);
  opacity: 0.5;
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.arrow-item .arrow-front p,
.arrow-item .arrow-back p {
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-mono);
  line-height: 1.6;
}

.arrow-item .arrow-back p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.arrows-cta {
  text-align: center;
}

/* ============================================
   MANIFESTO QUOTE
   ============================================ */
.manifesto-quote {
  background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.manifesto-quote::before {
  content: '"';
  position: absolute;
  top: 2rem;
  left: 5%;
  font-size: 20rem;
  color: rgba(0, 204, 255, 0.05);
  font-family: Georgia, serif;
  line-height: 1;
}

.big-quote {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.big-quote p {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--neon-green);
  font-family: var(--font-mono);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.big-quote cite {
  color: var(--text-secondary);
  font-style: normal;
  font-size: 1rem;
  font-family: var(--font-mono);
}

/* ============================================
   SUPPORT/NFT SECTION
   ============================================ */
.nft {
  background: var(--bg-darker);
}

.nft-description {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.support-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.tier-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(0, 204, 255, 0.1);
  text-align: center;
  transition: all var(--transition-medium);
  position: relative;
}

.tier-card.featured {
  border-color: var(--neon-blue);
  transform: scale(1.05);
}

.tier-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon-blue);
  color: var(--bg-dark);
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.tier-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-blue);
}

.tier-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.tier-card h3 {
  color: var(--neon-green);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.tier-price {
  font-size: 2rem;
  color: var(--neon-blue);
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
}

.tier-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.tier-card li {
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

/* Provenance buttons */
.provenance-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.provenance-buttons .cta-button {
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
}

/* Social buttons in tier card */
.social-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.social-buttons .social-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.press {
  background: var(--bg-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-form-wrapper,
.newsletter-signup {
  background: var(--bg-card);
  padding: 2rem;
  border: 1px solid rgba(0, 204, 255, 0.1);
}

.contact-form-wrapper h3,
.newsletter-signup h3 {
  color: var(--neon-blue);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.contact-form-wrapper p,
.newsletter-signup p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-form,
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.subscribe-form input {
  padding: 0.9rem 1rem;
  background: var(--bg-darker);
  border: 1px solid rgba(0, 204, 255, 0.2);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.subscribe-form input:focus {
  outline: none;
  border-color: var(--neon-blue);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.subscribe-form {
  flex-direction: row;
  flex-wrap: wrap;
}

.subscribe-form input {
  flex: 1;
  min-width: 200px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--neon-blue);
  color: var(--bg-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-darker);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(0, 204, 255, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  max-width: 300px;
}

.footer-donate {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-donate p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-donate code {
  color: var(--neon-green);
  font-size: 0.75rem;
  word-break: break-all;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

.footer-credit {
  color: rgba(153, 170, 187, 0.5);
  font-size: 0.75rem !important;
}

#current-year {
  color: var(--neon-blue);
}

/* ============================================
   BOOK SECTION - CENTERED LAYOUT
   ============================================ */
.book-section-wrapper {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 204, 255, 0.03));
  border: 1px solid rgba(0, 204, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 0 50px rgba(0, 204, 255, 0.1);
  position: relative;
  text-align: center;
}

.book-section-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

/* Book Cover Visual */
.book-cover-visual {
  display: block;
  margin: 0 auto 2rem auto;
  text-align: center;
}

.book-cover-image {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 204, 255, 0.2);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.book-cover-image:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(0, 204, 255, 0.3);
}

/* Book Info - Centered */
.book-info-centered {
  text-align: center;
}

.book-cta-title {
  font-family: var(--font-mono);
  color: var(--neon-green);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.book-cta-subtitle {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.book-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.book-amazon-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.book-amazon-note a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.book-amazon-note a:hover {
  color: var(--neon-green);
  text-decoration: underline;
}

.coming-soon-tag {
  color: var(--neon-pink);
  font-size: 0.75rem;
}

/* ============================================
   AUDIOBOOK SECTION
   ============================================ */
.audiobook-section {
  max-width: 600px;
  margin: 2.5rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, var(--bg-card), rgba(170, 0, 255, 0.08));
  border: 1px solid var(--neon-purple);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(170, 0, 255, 0.15);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.audiobook-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
}

.audiobook-title {
  font-family: var(--font-mono);
  color: var(--neon-purple);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.audiobook-duration {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.audiobook-controls {
  display: block;
  text-align: center;
}

.audiobook-controls audio {
  display: block;
  width: 100%;
  max-width: 400px;
  height: 50px;
  margin: 0 auto;
  border-radius: 25px;
  outline: none;
}

/* Custom audio player styling */
.audiobook-section audio::-webkit-media-controls-panel {
  background: linear-gradient(135deg, var(--bg-darker), rgba(170, 0, 255, 0.1));
}

.audiobook-section audio::-webkit-media-controls-play-button {
  filter: hue-rotate(270deg) brightness(1.5);
}

.audiobook-section audio::-webkit-media-controls-current-time-display,
.audiobook-section audio::-webkit-media-controls-time-remaining-display {
  color: var(--text-primary);
}

/* ============================================
   AUTHOR & INSPIRATION SECTION
   ============================================ */
.author-section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 204, 255, 0.05));
  border: 1px solid var(--neon-blue);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.author-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-magenta), transparent);
}

.author-content {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.author-image-wrapper {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Glitch Image Effect */
.glitch-image-container {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 204, 255, 0.3);
}

.author-pfp {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.glitch-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
}

/* Glitch animation on hover */
.glitch-image-container:hover .author-pfp {
  animation: glitch-img 0.3s ease infinite;
  filter: grayscale(0%);
}

.glitch-image-container:hover .glitch-img-overlay {
  animation: glitch-overlay 0.2s ease infinite;
}

.glitch-image-container:hover {
  animation: glitch-border 0.3s ease infinite;
}

@keyframes glitch-img {
  0%, 100% {
    transform: translate(0);
    filter: hue-rotate(0deg);
  }
  20% {
    transform: translate(-2px, 2px);
    filter: hue-rotate(90deg);
  }
  40% {
    transform: translate(2px, -2px);
    filter: hue-rotate(180deg);
  }
  60% {
    transform: translate(-1px, -1px);
    filter: hue-rotate(270deg);
  }
  80% {
    transform: translate(1px, 1px);
    filter: hue-rotate(360deg);
  }
}

@keyframes glitch-overlay {
  0%, 100% {
    background: transparent;
    clip-path: inset(0 0 0 0);
  }
  25% {
    background: rgba(255, 0, 128, 0.1);
    clip-path: inset(10% 0 60% 0);
  }
  50% {
    background: rgba(0, 204, 255, 0.1);
    clip-path: inset(40% 0 20% 0);
  }
  75% {
    background: rgba(170, 0, 255, 0.1);
    clip-path: inset(70% 0 5% 0);
  }
}

@keyframes glitch-border {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.3);
  }
  33% {
    box-shadow: -3px 0 20px rgba(255, 0, 128, 0.5), 3px 0 20px rgba(0, 204, 255, 0.5);
  }
  66% {
    box-shadow: 3px 0 20px rgba(170, 0, 255, 0.5), -3px 0 20px rgba(0, 255, 136, 0.5);
  }
}

.author-name {
  font-family: var(--font-mono);
  color: var(--neon-blue);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.author-text {
  flex: 1;
}

.author-title {
  font-family: var(--font-mono);
  color: var(--neon-magenta);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.author-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.author-text p:last-child {
  margin-bottom: 0;
}

.author-text em {
  color: var(--neon-blue);
  font-style: italic;
}

/* ============================================
   DONATE SECTION
   ============================================ */
.donate-section {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.donate-card {
  background: var(--bg-card);
  border: 2px solid var(--neon-green);
  border-radius: 8px;
  padding: 2.5rem 3rem;
  text-align: center;
  max-width: 450px;
  box-shadow: 0 0 30px rgba(0, 255, 153, 0.15);
}

.donate-icon {
  font-size: 3rem;
  color: var(--neon-green);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 15px var(--neon-green));
}

.donate-card h3 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--neon-green);
  margin-bottom: 0.75rem;
}

.donate-card > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.eth-address-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg-darker);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 153, 0.3);
  margin-bottom: 0.75rem;
}

.eth-address-box code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  word-break: break-all;
}

.copy-address-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--neon-green);
  padding: 0.25rem;
  transition: transform var(--transition-fast);
}

.copy-address-btn:hover {
  transform: scale(1.2);
}

.donate-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Whitelist Section */
.whitelist-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.whitelist-intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.whitelist-intro strong {
  color: var(--neon-magenta);
}

.whitelist-btn {
  background: transparent;
  border: 2px solid var(--neon-magenta);
  color: var(--neon-magenta);
}

.whitelist-btn:hover {
  background: var(--neon-magenta);
  color: var(--bg-dark);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .cursor, .cursor-follower {
    display: none;
  }

  body {
    cursor: auto;
  }

  a, button, input, textarea {
    cursor: auto;
  }

  .site-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .book-section-wrapper {
    padding: 2rem 1.5rem;
    margin: 2rem 1rem;
  }

  .book-cover-visual {
    transform: perspective(1000px) rotateY(0deg);
  }

  .book-spine {
    width: 15px;
    height: 200px;
  }

  .book-front {
    width: 140px;
    height: 200px;
  }

  .book-icon-large {
    font-size: 2rem;
  }

  .book-title-visual {
    font-size: 0.75rem;
  }

  .book-cover-image {
    width: 160px;
  }

  .book-buttons {
    flex-direction: column;
    align-items: center;
  }

  .book-buttons .cta-button {
    width: 100%;
    max-width: 250px;
  }

  .audiobook-section {
    margin: 2rem 1rem;
    padding: 1.5rem;
  }

  .audiobook-title {
    font-size: 1rem;
  }

  /* Author section mobile */
  .author-section {
    margin: 2rem 1rem;
    padding: 1.5rem;
  }

  .author-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-image-wrapper {
    margin-bottom: 1rem;
  }

  .glitch-image-container {
    width: 120px;
    height: 120px;
  }

  .author-title {
    font-size: 1rem;
  }

  .author-text p {
    font-size: 0.9rem;
    text-align: left;
  }

  .donate-card {
    padding: 1.5rem;
  }

  .eth-address-box code {
    font-size: 0.65rem;
  }

  .themes-grid {
    grid-template-columns: 1fr;
  }

  .tier-card.featured {
    transform: none;
  }

  .tier-card.featured:hover {
    transform: translateY(-5px);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-tagline {
    max-width: 100%;
  }

  .arrow-item {
    height: auto;
    min-height: 180px;
  }

  .arrow-item .arrow-front,
  .arrow-item .arrow-back {
    position: relative;
    transform: none !important;
    backface-visibility: visible;
  }

  .arrow-item .arrow-back {
    display: none;
  }

  .arrow-item:hover .arrow-back {
    display: flex;
  }

  .arrow-item:hover .arrow-front {
    display: none;
  }

  /* Floating audio buttons mobile adjustments */
  .audio-controls {
    right: 1rem;
    top: auto;
    bottom: 80px;
    transform: none;
  }

  .audio-toggle-btn,
  .audiobook-toggle-btn {
    width: 44px;
    height: 44px;
  }

  .track-title {
    display: none;
  }

  .track-nav {
    display: none;
  }

  .audio-toggle-btn:hover {
    transform: scale(1.1);
  }

  .audiobook-toggle-btn {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .audiobook-toggle-btn:hover {
    transform: scale(1.1);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 4rem 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }
}

/* ============================================
   GALLERY SUBSECTIONS - Theme-based Organization
   ============================================ */

.gallery-subsection {
  margin-bottom: 3rem;
}

.gallery-subsection .gallery-header {
  margin-bottom: 1.5rem;
}

.gallery-intro {
  display: block;
  width: 100%;
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  margin: 0 auto 2.5rem auto;
  font-size: 1.1rem;
}

/* Addendum Note */
.addendum-note {
  text-align: center;
  margin: 3rem auto 1rem auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 600px;
}

.addendum-note p {
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.03em;
}

.addendum-note .addendum-title {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-secondary);
}

.addendum-note .addendum-subtitle {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.addendum-note .addendum-body {
  font-size: 0.75rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.addendum-note .addendum-closing {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.gallery-subtitle {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--neon-green);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-numeral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--neon-green);
  border-radius: 4px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.gallery-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-style: italic;
}

/* Theme Gallery Toggle Button */
.theme-gallery .gallery-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 255, 153, 0.05) 0%, rgba(0, 204, 255, 0.03) 100%);
  border: 1px solid rgba(0, 255, 153, 0.2);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  cursor: none;
  transition: all var(--transition-medium);
  text-align: left;
}

.theme-gallery .gallery-toggle:hover {
  border-color: var(--neon-green);
  background: linear-gradient(135deg, rgba(0, 255, 153, 0.1) 0%, rgba(0, 204, 255, 0.05) 100%);
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.15);
}

.theme-gallery .gallery-toggle .gallery-header {
  margin-bottom: 0;
}

.toggle-icon {
  font-size: 1.5rem;
  color: var(--neon-green);
  font-family: var(--font-mono);
  transition: transform var(--transition-fast);
  width: 30px;
  text-align: center;
}

.theme-gallery .gallery-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(45deg);
}

/* Collapsible Gallery Content */
.gallery-content {
  max-height: 15000px;
  overflow: hidden;
  transition: max-height 0.5s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
  opacity: 1;
  padding-top: 1.5rem;
}

.gallery-content.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  overflow: hidden;
}

/* Placeholder Cards */
.video-card.placeholder {
  opacity: 0.6;
}

.video-card.placeholder .video-wrapper {
  background: linear-gradient(135deg, rgba(0, 255, 153, 0.03) 0%, rgba(0, 204, 255, 0.02) 100%);
  border: 1px dashed rgba(0, 255, 153, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  text-align: center;
}

.placeholder-number {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--neon-green);
  opacity: 0.7;
}

.placeholder-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Placeholder quote styling */
.placeholder-quote {
  opacity: 0.7;
  font-style: italic;
}

/* Video card hover state for placeholders */
.video-card.placeholder:hover .video-wrapper {
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(0, 255, 153, 0.1);
}

/* Theme cards clickable link */
.theme-card {
  cursor: none;
  transition: all var(--transition-medium);
}

.theme-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-green);
}

/* Gallery navigation hint */
.gallery-nav-hint {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.gallery-nav-hint a {
  color: var(--neon-green);
  text-decoration: none;
  border-bottom: 1px dotted var(--neon-green);
  transition: all var(--transition-fast);
}

.gallery-nav-hint a:hover {
  text-shadow: 0 0 10px var(--neon-green);
}

/* Responsive adjustments for gallery subsections */
@media (max-width: 768px) {
  .gallery-subtitle {
    font-size: 1.2rem;
  }

  .theme-numeral {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8rem;
  }

  .theme-gallery .gallery-toggle {
    padding: 1rem;
  }

  .placeholder-content {
    padding: 1.5rem;
  }

  .placeholder-number {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-subtitle {
    font-size: 1rem;
    flex-wrap: wrap;
  }

  .gallery-description {
    font-size: 0.85rem;
  }

  .video-card.placeholder .video-wrapper {
    min-height: 150px;
  }
}
