:root {
  --color-bg: #0a0a0f;
  --color-primary: #ff1a8c;
  --color-secondary: #ff6b35;
  --color-text: #ffffff;
  --color-reunion: #d4a574;
  
  /* Typography */
  --font-display: 'Bebas Neue', Georgia, serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --font-body: 'DM Sans', system-ui, sans-serif;
  
  /* Layout */
  --nav-height: 72px;
  --container-max: 1200px;
  --container-pad: clamp(1rem, 5vw, 3rem);
  
  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-base: 280ms;
  --dur-slow: 500ms;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  padding: 0.6rem 1.2rem;
  background: var(--color-primary);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* Custom Cursor */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  
  .cursor {
    display: block;
    pointer-events: none;
    position: fixed;
    width: 16px;
    height: 16px;
    z-index: 99999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease);
  }
  
  /* Crosshair horizontal bar */
  .cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 1px;
    background: var(--color-primary);
    transform: translateY(-50%);
    transition: width var(--dur-base) var(--ease);
  }
  
  /* Crosshair vertical bar */
  .cursor::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 16px;
    background: var(--color-primary);
    transform: translateX(-50%);
    transition: height var(--dur-base) var(--ease);
  }
  
  /* Permanent jitter animation */
  @keyframes cursor-jitter {
    0% { transform: translate(-50%, -50%) translate(0, 0); }
    12.5% { transform: translate(-50%, -50%) translate(2px, -2px); }
    25% { transform: translate(-50%, -50%) translate(-2px, 2px); }
    37.5% { transform: translate(-50%, -50%) translate(3px, 1px); }
    50% { transform: translate(-50%, -50%) translate(-1px, -3px); }
    62.5% { transform: translate(-50%, -50%) translate(2px, 2px); }
    75% { transform: translate(-50%, -50%) translate(-3px, -1px); }
    87.5% { transform: translate(-50%, -50%) translate(1px, 3px); }
    100% { transform: translate(-50%, -50%) translate(0, 0); }
  }
  
  .cursor {
    animation: cursor-jitter 125ms steps(1) infinite;
  }
  
  /* Hover burst ring animation */
  @keyframes cursor-hover-burst {
    0% {
      box-shadow: 0 0 0 2px var(--color-primary);
      opacity: 1;
    }
    100% {
      box-shadow: 0 0 0 12px var(--color-primary);
      opacity: 0;
    }
  }

  /* Hover burst: stretch crosshair arms */
  body.cursor-hover .cursor::before {
    width: 24px;
  }
  
  body.cursor-hover .cursor::after {
    height: 24px;
    animation: cursor-hover-burst 400ms var(--ease) forwards;
  }
  
  /* Trail dots */
  .cursor-trail {
    display: block;
    pointer-events: none;
    position: fixed;
    width: 3px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 50%;
    z-index: 99998;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    transition: opacity 400ms var(--ease);
  }
  
  /* Click sparks */
  .cursor-spark {
    display: block;
    pointer-events: none;
    position: fixed;
    width: 12px;
    height: 1px;
    background: var(--color-primary);
    z-index: 99998;
    transform-origin: 0 50%;
    opacity: 0.8;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  }
  
  /* Reduced motion preference */
  @media (prefers-reduced-motion: reduce) {
    .cursor {
      animation: none !important;
    }
  }
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease);
}

.site-header.scrolled {
  border-bottom-color: rgba(255, 26, 140, 0.2);
}

.nav {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  transition: color var(--dur-base) var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width var(--dur-base) var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transition: transform var(--dur-base) var(--ease),
              opacity var(--dur-base) var(--ease);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu */
@media (max-width: 1023px) {
  .nav-hamburger {
    display: flex;
    background: rgba(10, 10, 15, 0.68);
    border-radius: 8px;
    padding: 6px;
    position: relative;
    z-index: 10002;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: #000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2.5rem;
    z-index: 10001;
    overflow-y: auto;
    padding-block: var(--nav-height) 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 80ms; }
.fade-up:nth-child(3) { transition-delay: 160ms; }
.fade-up:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
  border: 1px solid var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ff0077;
  box-shadow: 0 0 32px rgba(255, 26, 140, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Focus ring */
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background-color: var(--color-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 26, 140, 0.12) 0%, transparent 60%),
    rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  animation: grain 8s steps(10) infinite;
}

.hero-static-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 4rem var(--container-pad);
  padding-top: 8rem; /* Extra spacing to prevent header overlap */
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.hero-word {
  display: block;
  position: relative;
  overflow: hidden;
}

.hero-word::before,
.hero-word::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  line-height: inherit;
}

.hero-word::before {
  color: var(--color-primary);
  animation: glitch 3s infinite linear alternate-reverse;
  z-index: -1;
}

.hero-word::after {
  color: var(--color-secondary);
  animation: glitch 2s infinite linear alternate;
  z-index: -1;
}

@keyframes glitch {
  0%, 100% { 
    clip-path: inset(0 0 0 0); 
    transform: translate(0); 
  }
  20% { 
    clip-path: inset(20% 0 60% 0); 
    transform: translate(-2px, 2px); 
  }
  40% { 
    clip-path: inset(40% 0 40% 0); 
    transform: translate(2px, -2px); 
  }
  60% { 
    clip-path: inset(60% 0 20% 0); 
    transform: translate(-1px, 1px); 
  }
  80% { 
    clip-path: inset(80% 0 5% 0); 
    transform: translate(1px, -1px); 
  }
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  animation: scroll-hint-bounce 2s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
}

.hero-scroll-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint { animation: none; }
  .hero-grain { animation: none; }
  .hero-word::before,
  .hero-word::after { animation: none; }
}

/* Sections */
.section {
  padding: 4rem var(--container-pad);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
}

/* ───────────────────────────────────────────────
   MUSIC PLAYER SECTION
─────────────────────────────────────────────── */
.music-section {
  padding: 5rem 0;
  background: var(--color-bg);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-reunion);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.player-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1023px) {
  .player-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── Playlist ─── */
.playlist {
  background: rgba(255, 26, 140, 0.03);
  border: 1px solid rgba(255, 26, 140, 0.15);
  border-radius: 8px;
  overflow: hidden;
  max-height: 560px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) rgba(255, 26, 140, 0.05);
}

.playlist::-webkit-scrollbar {
  width: 4px;
}
.playlist::-webkit-scrollbar-track {
  background: rgba(255, 26, 140, 0.05);
}
.playlist::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 2px;
}

.playlist-album-label {
  padding: 0.6rem 1rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-reunion);
  background: rgba(212, 165, 116, 0.08);
  border-top: 1px solid rgba(212, 165, 116, 0.15);
  border-bottom: 1px solid rgba(212, 165, 116, 0.15);
}

.playlist-album-label:first-child {
  border-top: none;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  text-align: left;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 26, 140, 0.06);
  transition: background var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease);
  position: relative;
}

.playlist-item:last-child {
  border-bottom: none;
}

.playlist-item:hover,
.playlist-item:focus-visible {
  background: rgba(255, 26, 140, 0.08);
  outline: none;
}

.playlist-item.active,
.playlist-item[aria-current="true"] {
  background: rgba(255, 26, 140, 0.12);
}

.playlist-item.active .playlist-title {
  color: var(--color-primary);
}

.playlist-item.active .playlist-play-icon {
  opacity: 1;
  color: var(--color-primary);
}

.playlist-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.playlist-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  min-width: 22px;
  flex-shrink: 0;
}

.playlist-title {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text);
  transition: color var(--dur-base) var(--ease);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-duration {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}

.playlist-play-icon {
  font-size: 0.6rem;
  opacity: 0;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: opacity var(--dur-base) var(--ease);
}

.playlist-item:hover .playlist-play-icon,
.playlist-item:focus-visible .playlist-play-icon {
  opacity: 0.5;
}

/* ─── Video Stage ─── */
.video-stage {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
}

.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(255, 26, 140, 0.05);
  border: 1px solid rgba(255, 26, 140, 0.15);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.video-facade:hover .video-facade-overlay,
.video-facade:focus-visible .video-facade-overlay {
  background: rgba(10, 10, 15, 0.4);
  outline: none;
}

.video-facade:hover .video-play-btn,
.video-facade:focus-visible .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-facade-thumb {
  position: absolute;
  inset: 0;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.video-facade-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.6);
  transition: background var(--dur-base) var(--ease);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: transparent;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease);
  padding: 0;
}

.video-play-btn svg {
  width: 100%;
  height: 100%;
}

.video-facade-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95), transparent);
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.video-now-playing-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-reunion);
}

.video-now-playing-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

/* Injected iframe */
#video-player-container {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  display: none;
}

#video-player-container.active {
  display: block;
}

#video-player-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ───────────────────────────────────────────────
   MEMBERS SECTION
─────────────────────────────────────────────── */
.members-section {
  padding: 5rem 0;
  background: var(--color-bg);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.member-card {
  background: rgba(255, 26, 140, 0.05);
  border: 1px solid rgba(255, 26, 140, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}

.member-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 26, 140, 0.35);
  box-shadow: 0 16px 48px rgba(255, 26, 140, 0.15);
}

.member-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(255, 26, 140, 0.1);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.member-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.05em;
  padding: 1.5rem 1.5rem 0.5rem;
}

.member-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 0 1.5rem;
  margin-bottom: 0.75rem;
}

.member-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  padding: 0 1.5rem 1.5rem;
}

@media (max-width: 1023px) {
  .members-grid {
    grid-template-columns: 1fr;
  }
  
  .member-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
  }
  
  .member-photo {
    aspect-ratio: 1;
    grid-row: span 4;
  }
  
  .member-name {
    grid-column: 2;
    padding: 1rem 1rem 0 0;
  }
  
  .member-role {
    grid-column: 2;
    padding: 0 1rem 0 0;
  }
  
  .member-bio {
    grid-column: 2;
    padding: 0 1rem 1rem 0;
  }
}

/* ───────────────────────────────────────────────
   ABOUT SECTION
─────────────────────────────────────────────── */
.about-section {
  padding: 5rem 0;
  background: var(--color-bg);
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text p:first-child::first-letter {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  float: left;
  margin-right: 0.1em;
  margin-top: 0.1em;
}

.about-link {
  color: var(--color-primary);
  text-decoration: none;
  position: relative;
  transition: color var(--dur-base) var(--ease);
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 2px;
}

.about-link:hover {
  color: #ff0077;
  border-bottom-color: #ff0077;
}

.about-cta-text {
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  padding-left: 1.5rem;
  border-left: 3px solid var(--color-primary);
  margin-top: 2rem !important;
}

@media (max-width: 639px) {
  .about-text {
    font-size: 1rem;
    line-height: 1.75;
  }

  .about-text p {
    margin-bottom: 1.25rem;
  }

  .about-cta-text {
    padding-left: 1rem;
  }
}

/* ───────────────────────────────────────────────
   GALLERY SECTION
─────────────────────────────────────────────── */
.gallery-section {
  padding: 5rem 0;
  background: var(--color-bg);
}

.gallery-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.gallery-toggle-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 26, 140, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease);
}

.gallery-toggle-btn:hover {
  color: var(--color-primary);
  border-color: rgba(255, 26, 140, 0.4);
}

.gallery-toggle-btn.active {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 26, 140, 0.15);
  background: rgba(255, 26, 140, 0.05);
  transition: transform var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: rgba(255, 26, 140, 0.35);
  box-shadow: 0 8px 24px rgba(255, 26, 140, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ───────────────────────────────────────────────
   EKG HEARTBEAT DIVIDERS
─────────────────────────────────────────────── */
.ekg-divider {
  width: 100%;
  max-width: var(--container-max);
  margin: 2rem auto;
  padding: 0 var(--container-pad);
  color: var(--color-primary);
  opacity: 0.3;
  overflow: hidden;
}

.ekg-line {
  width: 100%;
  height: 60px;
}

/* Animated stroke-dasharray effect: line draws itself */
.ekg-line polyline {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: ekg-draw 3s ease-in-out forwards;
}

@keyframes ekg-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .ekg-line polyline {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* ───────────────────────────────────────────────
   FOOTER
─────────────────────────────────────────────── */
.site-footer {
  padding: 4rem 0;
  background: rgba(255, 26, 140, 0.03);
  border-top: 1px solid rgba(255, 26, 140, 0.15);
}

.footer-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-logo-img {
  height: 100px;
  width: auto;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0.5rem 0;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--dur-base) var(--ease), transform var(--dur-fast) var(--ease);
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  max-width: 500px;
}

/* ─── Back to Top ─── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 0 20px rgba(255, 26, 140, 0.4);
  outline: none;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* ── Member Bio Link ── */
.member-bio-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 0 1.5rem 1.5rem;
  transition: color var(--dur-base) var(--ease);
}
.member-bio-link:hover { color: #ff0077; }

/* ── About Story CTA ── */
.about-story-cta {
  margin-top: 2rem;
  text-align: center;
}

/* ── footer badge row ── */
.footer-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* ── humanXai badge ── */
.footer-hx-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 280ms cubic-bezier(0.4,0,0.2,1);
}
.footer-hx-badge:hover { opacity: 1; }
.footer-hx-logo {
  height: 48px;
  width: auto;
}
.footer-label-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 280ms cubic-bezier(0.4,0,0.2,1);
}
.footer-label-badge:hover { opacity: 1; }
.footer-label-logo {
  height: 48px;
  width: auto;
}
