/* ═══════════════════════════════════════════════════════════
   BTS BEV — Fan Page Styles
   Color Palette:
     --pink-bg:    #e47aa4 (extracted from video frames)
     --purple:     #7b2d8e (BTS purple)
     --deep-plum:  #2d1b3d
     --gold:       #d4a843
     --cream:      #fdf0f5
   ═══════════════════════════════════════════════════════════ */

:root {
  --pink-bg: #e47aa4;
  --pink-light: #f0a4c4;
  --pink-dark: #c9558a;
  --purple: #7b2d8e;
  --purple-deep: #5b1a6e;
  --deep-plum: #2d1b3d;
  --gold: #d4a843;
  --cream: #fdf0f5;
  --white: #ffffff;
  --text-dark: #1a0a20;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--deep-plum);
  color: var(--cream);
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 1: Hero — Scroll-driven frame animation
   ═══════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  height: 300vh;
  /* Tall to allow scroll-based animation */
  background: var(--pink-bg);
}

#frame-canvas {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: block;
  z-index: 1;
}

.hero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: radial-gradient(ellipse at center,
      rgba(0, 0, 0, 0) 40%,
      rgba(45, 27, 61, 0.3) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.title-bts {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(6rem, 15vw, 14rem);
  color: var(--white);
  text-shadow:
    0 0 40px rgba(123, 45, 142, 0.6),
    0 0 80px rgba(123, 45, 142, 0.3),
    0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.15em;
  animation: titlePulse 3s ease-in-out infinite;
}

.title-bev {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--deep-plum);
  text-shadow:
    0 0 30px rgba(228, 122, 164, 0.5),
    0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.6em;
  margin-top: -0.2em;
  padding-left: 0.6em;
  /* offset letter-spacing visual balance */
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.3em;
  animation: fadeInUp 2s ease-out 0.5s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 2s ease-out 1s both;
}

.scroll-indicator span {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.scroll-arrow {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════════════════════════
   SECTION 2: Members Grid
   ═══════════════════════════════════════════════════════════ */
.members-section {
  position: relative;
  background: transparent;
  padding: 8rem 2rem 6rem;
  min-height: 100vh;
  z-index: 10;
  overflow: hidden;
}

/* Transition wave from pink to deep plum */
.members-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--deep-plum);
  clip-path: ellipse(60% 100% at 50% 100%);
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink-light), var(--purple), var(--pink-bg));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(253, 240, 245, 0.6);
  letter-spacing: 0.2em;
}

.title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.deco-line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--pink-bg), transparent);
}

.deco-diamond {
  font-size: 1.2rem;
  animation: diamondSpin 4s ease-in-out infinite;
}

/* Members Grid */
.members-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Member Card — Flip Card */
.member-card {
  width: calc(25% - 2rem);
  min-width: 220px;
  perspective: 1000px;
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.member-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.flip-card-inner {
  position: relative;
  width: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.member-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  position: relative;
  z-index: 2;
}

.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #3d1f54 0%, #2d1b3d 50%, #1a0e26 100%);
  border-radius: 16px;
  border: 3px solid rgba(228, 122, 164, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.2rem;
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(228, 122, 164, 0.15);
}

.flip-card-back h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--pink-bg);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.back-stats {
  width: 100%;
  margin-bottom: 1.2rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(228, 122, 164, 0.15);
}

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

.stat-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(228, 122, 164, 0.7);
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--cream);
  text-align: right;
}

.back-links {
  display: flex;
  gap: 0.8rem;
  margin-top: auto;
}

.back-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(228, 122, 164, 0.35);
  color: var(--cream);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: rgba(228, 122, 164, 0.08);
}

.back-links a:hover {
  background: rgba(228, 122, 164, 0.25);
  border-color: var(--pink-bg);
  color: #fff;
  transform: translateY(-2px);
}

.card-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  border: 3px solid rgba(228, 122, 164, 0.3);
  cursor: pointer;
  transition: border-color 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(123, 45, 142, 0.1) 0%,
      transparent 50%,
      rgba(228, 122, 164, 0.15) 100%);
  z-index: 2;
  transition: opacity 0.4s ease;
}

.card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: saturate(0.9);
}

.card-glow {
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: conic-gradient(from 0deg,
      var(--pink-bg),
      var(--purple),
      var(--pink-light),
      var(--gold),
      var(--pink-bg));
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.5s ease;
}

/* Hover effects removed — flip card handles hover */

.card-info {
  text-align: center;
  padding: 1.2rem 0.5rem 0.5rem;
}

.card-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.2rem;
  transition: color 0.3s ease;
}

.card-info p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--pink-bg);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.member-card:hover .card-info h3 {
  color: var(--pink-light);
}

/* ═══════════════════════════════════════════════════════════
   SECTION 2.5: TinyTan Story
   ═══════════════════════════════════════════════════════════ */
.tinytan-story-section {
  background: linear-gradient(to bottom, var(--deep-plum), #1e0f2e);
  padding: 5rem 2rem;
  position: relative;
  z-index: 10;
}

.story-container {
  max-width: 720px;
  margin: 0 auto;
}

.story-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  color: var(--pink-bg);
  margin-bottom: 0.5rem;
}

.story-subtitle {
  text-align: center;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(253, 240, 245, 0.5);
  margin-bottom: 3rem;
  letter-spacing: 0.1em;
}

.story-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story-block {
  background: rgba(45, 27, 61, 0.5);
  border: 1px solid rgba(228, 122, 164, 0.1);
  border-radius: 12px;
  padding: 1.5rem 2rem;
}

.story-block p {
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(253, 240, 245, 0.7);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.story-block p:last-child {
  margin-bottom: 0;
}

.story-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pink-light);
  margin-bottom: 0.8rem;
}

.story-block em {
  color: var(--pink-bg);
  font-style: italic;
}

.story-block strong {
  color: rgba(253, 240, 245, 0.9);
  font-weight: 600;
}

.story-block a {
  color: var(--pink-bg);
  text-decoration: underline;
  text-decoration-color: rgba(228, 122, 164, 0.4);
  text-underline-offset: 2px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.story-block a:hover {
  color: var(--pink-light);
  text-decoration-color: var(--pink-light);
}

.story-quote {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem !important;
  font-style: italic;
  color: var(--pink-bg) !important;
  margin-top: 1rem !important;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 3: BTS Timeline
   ═══════════════════════════════════════════════════════════ */
.timeline-section {
  background: linear-gradient(to bottom, var(--deep-plum), #1e0f2e, var(--deep-plum));
  padding: 2rem 2rem 6rem;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.timeline-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  color: var(--pink-bg);
  margin-bottom: 0.5rem;
}

.timeline-subtitle {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(253, 240, 245, 0.5);
  margin-bottom: 4rem;
  letter-spacing: 0.1em;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Vertical center line */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
      transparent,
      var(--pink-bg) 10%,
      var(--pink-bg) 90%,
      transparent);
  transform: translateX(-50%);
}

/* Timeline item */
.tl-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 3rem;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tl-left {
  left: 0;
  text-align: right;
  padding-right: 3.5rem;
  transform: translateX(-60px);
}

.tl-right {
  left: 50%;
  text-align: left;
  padding-left: 3.5rem;
  transform: translateX(60px);
}

/* Revealed state */
.tl-item.tl-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Glowing dot on the center line */
.tl-dot {
  position: absolute;
  top: 2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pink-bg);
  border: 3px solid var(--deep-plum);
  box-shadow: 0 0 12px rgba(228, 122, 164, 0.6);
  z-index: 2;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.tl-left .tl-dot {
  right: -7px;
}

.tl-right .tl-dot {
  left: -7px;
}

.tl-item.tl-visible .tl-dot {
  box-shadow: 0 0 20px rgba(228, 122, 164, 0.9);
  transform: scale(1.2);
}

/* Card */
.tl-card {
  background: rgba(45, 27, 61, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(228, 122, 164, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.tl-item.tl-visible .tl-card {
  border-color: rgba(228, 122, 164, 0.3);
  box-shadow: 0 4px 30px rgba(228, 122, 164, 0.1);
}

.tl-year {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

.tl-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pink-light);
  margin: 0.4rem 0;
}

.tl-desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(253, 240, 245, 0.6);
  line-height: 1.6;
}

/* Mobile: single column */
@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }

  .tl-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 50px !important;
    padding-right: 1rem !important;
  }

  .tl-left {
    transform: translateX(-40px);
  }

  .tl-right {
    transform: translateX(-40px);
  }

  .tl-dot {
    left: 13px !important;
    right: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   SECTION 4: Footer
/* ═══════════════════════════════════════════════════════════
   SECTION 3.5: TinyTan Scroll Animation
   ═══════════════════════════════════════════════════════════ */
.tinytan-section {
  background: var(--deep-plum);
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.tinytan-inner {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tinytan-logo {
  position: relative;
  z-index: 10;
  pointer-events: none;
  color: var(--pink-bg);
  opacity: 0.4;
  filter: drop-shadow(0 0 30px rgba(228, 122, 164, 0.5));
}

#tinytan-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 4: Footer
   ═══════════════════════════════════════════════════════════ */
.footer-section {
  background: linear-gradient(to bottom, var(--deep-plum), #1a0a20);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--pink-bg), transparent);
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--pink-bg);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(253, 240, 245, 0.6);
  margin-bottom: 0.8rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(253, 240, 245, 0.3);
  letter-spacing: 0.1em;
}

/* ARMY Logo */
.army-logo {
  margin-bottom: 1rem;
  color: var(--pink-bg);
  filter: drop-shadow(0 0 15px rgba(228, 122, 164, 0.3));
  transition: color 0.4s ease, filter 0.4s ease;
}

.army-logo:hover {
  color: var(--pink-light);
  filter: drop-shadow(0 0 25px rgba(228, 122, 164, 0.5));
}

/* Instagram link */
.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: rgba(253, 240, 245, 0.4);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.footer-ig:hover {
  color: var(--pink-bg);
}

/* Generic fade-in element (scroll-triggered) */
.fade-in-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════════════════ */
@keyframes titlePulse {

  0%,
  100% {
    text-shadow: 0 0 40px rgba(123, 45, 142, 0.6), 0 0 80px rgba(123, 45, 142, 0.3), 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  50% {
    text-shadow: 0 0 60px rgba(123, 45, 142, 0.8), 0 0 120px rgba(123, 45, 142, 0.4), 0 4px 20px rgba(0, 0, 0, 0.3);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

@keyframes diamondSpin {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.35);
  }
}

/* ═══════════════════════════════════════════════════════════
   Floating particles (generated in JS)
   ═══════════════════════════════════════════════════════════ */
.particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--pink-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(1);
  }
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .member-card {
    width: calc(50% - 1.5rem);
    min-width: 0;
  }

  .members-grid {
    gap: 1.5rem;
  }

  .members-section {
    padding: 5rem 1.5rem 4rem;
  }

  .hero-section {
    height: 250vh;
  }
}

@media (max-width: 480px) {
  .member-card {
    width: calc(50% - 0.5rem);
  }

  .members-grid {
    gap: 1rem;
  }

  .card-info h3 {
    font-size: 1.1rem;
  }

  .title-bev {
    letter-spacing: 0.4em;
    padding-left: 0.4em;
  }
}

/* ═══════════════════════════════════════════════════════════
   Floating Side Navigation Dots
   ═══════════════════════════════════════════════════════════ */
.side-nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.side-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.side-nav a {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(228, 122, 164, 0.3);
  border: 1.5px solid rgba(228, 122, 164, 0.5);
  transition: all 0.3s ease;
  position: relative;
}

.side-nav a:hover,
.side-nav a.active {
  background: var(--pink-bg);
  border-color: var(--pink-bg);
  box-shadow: 0 0 12px rgba(228, 122, 164, 0.6);
  transform: scale(1.3);
}

.side-nav a .nav-label {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.side-nav a:hover .nav-label {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   Back to Top Button
   ═══════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 1000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(228, 122, 164, 0.4);
  background: rgba(45, 27, 61, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--pink-bg);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(228, 122, 164, 0.2);
  border-color: var(--pink-bg);
  box-shadow: 0 0 20px rgba(228, 122, 164, 0.4);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════
   Mobile Flip Card (tap to flip)
   ═══════════════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  .member-card:hover .flip-card-inner {
    transform: none;
  }

  .member-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
  }
}

/* ═══════════════════════════════════════════════════════════
   Staggered Story Block Entrance Delays
   ═══════════════════════════════════════════════════════════ */
.story-block.fade-in-element:nth-child(1) {
  transition-delay: 0s;
}

.story-block.fade-in-element:nth-child(2) {
  transition-delay: 0.1s;
}

.story-block.fade-in-element:nth-child(3) {
  transition-delay: 0.2s;
}

.story-block.fade-in-element:nth-child(4) {
  transition-delay: 0.3s;
}

/* Hide side nav on small screens */
@media (max-width: 768px) {
  .side-nav {
    display: none;
  }
}

/* Screen-reader only (hidden visually, accessible to crawlers) */
.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;
}