/* =====================================================
   KNOW THE SCORE NYC — 2025 Editorial Design
   ===================================================== */

:root {
  --blue: #2B3990;
  --blue-dark: #1A237E;
  --red: #E53935;
  --red-soft: #FF6F61;
  --cream: #FFF8F0;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #64748B;
  --border: #E2E8F0;
  --taxi: #F7C948;

  --font-display: 'Pacifico', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* =====================================================
   LOADING — Full-bleed photo montage
   ===================================================== */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0a;
  overflow: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Full-bleed montage photo — unified cinematic treatment */
.montage-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: grayscale(25%) contrast(1.1) brightness(0.95) saturate(0.85);
}
.montage-photo.active {
  opacity: 1;
}
/* Barella — keep her head in frame */
img[src*="barella"] {
  object-position: center 15% !important;
}
/* Landmarks — cooler, moodier, center-focused */
.montage-photo.montage-landmark {
  filter: grayscale(25%) contrast(1.1) brightness(0.9) saturate(0.8);
  object-position: center center;
}

/* Overlay — hidden until logo reveal */
.montage-logo-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 2;
  transition: background 0.4s ease;
}

/* Logo at end of montage */
.montage-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 4;
  width: min(220px, 45vw);
  filter: brightness(0) invert(1);
  opacity: 0;
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}
.montage-logo.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Small counter / progress dots */
.montage-dots {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 6px;
}
.montage-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.3s;
}
.montage-dot.active {
  background: var(--red);
}

/* Keep old keyframes for fallback but unused now */
@keyframes floatAcross1 {
  0%   { transform: translate(-100%, 0) rotate(-5deg); opacity: 0; }
  15%  { opacity: 0.8; }
  85%  { opacity: 0.8; }
  100% { transform: translate(100vw, -50px) rotate(3deg); opacity: 0; }
}
@keyframes floatAcross2 {
  0%   { transform: translate(100vw, 0) rotate(3deg); opacity: 0; }
  15%  { opacity: 0.8; }
  85%  { opacity: 0.8; }
  100% { transform: translate(-100%, 30px) rotate(-2deg); opacity: 0; }
}
@keyframes floatUp {
  0%   { transform: translateY(100vh) rotate(2deg); opacity: 0; }
  15%  { opacity: 0.8; }
  85%  { opacity: 0.8; }
  100% { transform: translateY(-100%) rotate(-3deg); opacity: 0; }
}
@keyframes floatDiagonal {
  0%   { transform: translate(-50%, 100vh) rotate(-8deg) scale(0.8); opacity: 0; }
  20%  { opacity: 0.7; }
  80%  { opacity: 0.7; }
  100% { transform: translate(100vw, -100%) rotate(5deg) scale(1.1); opacity: 0; }
}
@keyframes pulse {
  0%   { transform: scale(0.5) rotate(-3deg); opacity: 0; }
  30%  { transform: scale(1.1) rotate(2deg); opacity: 0.9; }
  70%  { transform: scale(1) rotate(0deg); opacity: 0.9; }
  100% { transform: scale(0.8) rotate(-2deg); opacity: 0; }
}
@keyframes bounce {
  0%   { transform: translateY(-100%) scale(0.9); opacity: 0; }
  20%  { transform: translateY(10px) scale(1.05); opacity: 0.8; }
  40%  { transform: translateY(-5px) scale(1); opacity: 0.8; }
  60%  { transform: translateY(3px) scale(1); opacity: 0.8; }
  80%  { opacity: 0.5; }
  100% { transform: translateY(100vh) scale(0.9); opacity: 0; }
}

/* =====================================================
   NAV — Minimal, floating
   ===================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(43, 57, 144, 0.08);
}
.nav-logo {
  height: 36px;
  mix-blend-mode: multiply;
}
.nav-links {
  display: flex;
  gap: 0.15rem;
  list-style: none;
}
.nav-links a {
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--text); background: rgba(43, 57, 144, 0.06); }
.nav-links .nav-short { display: none; }
.nav-links a.active { color: var(--blue); font-weight: 600; }

/* =====================================================
   LIVE NYC TICKER — Scrolling data bar
   ===================================================== */
.nyc-ticker {
  position: fixed;
  top: 53px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--text);
  overflow: hidden;
  height: 28px;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 55s linear infinite;
  will-change: transform;
}
.ticker-item {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  padding: 0 0.75rem;
  font-family: var(--font-body);
}
.ticker-sep {
  color: var(--red);
  font-size: 0.5rem;
  opacity: 0.6;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================================================
   HERO — Bold, editorial
   ===================================================== */
.hero {
  padding: 7.5rem 1.5rem 2.5rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hero-logo {
  width: min(200px, 45vw);
  margin: 0 auto 1.5rem;
  mix-blend-mode: multiply;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--blue);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 500;
}
.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons (modern, less rounded) --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: #C62828;
  border-color: #C62828;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
}
.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--blue);
  background: rgba(43, 57, 144, 0.04);
}

/* =====================================================
   MAP SECTION — Full-bleed, immersive
   ===================================================== */
.map-section {
  position: relative;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.map-header {
  padding: 2rem 1.5rem 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}
.map-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.map-header h2 span {
  color: var(--red);
}
.map-header-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.map-container {
  display: flex;
  flex-direction: column;
}
#map {
  width: 100%;
  height: 65vh;
  min-height: 400px;
  z-index: 1;
}

/* Leaflet popup — modern card */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--border) !important;
}
.leaflet-popup-content { margin: 0 !important; width: 300px !important; }
.popup-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.popup-body { padding: 1rem 1.1rem; }
.popup-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.popup-quote {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.popup-place {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}
.popup-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: opacity 0.15s;
}
.popup-link:hover { opacity: 0.7; }

/* Map sidebar */
.map-sidebar {
  background: var(--white);
  padding: 1rem;
  overflow-y: auto;
}
.map-sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}
.sidebar-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  margin-bottom: 0.35rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sidebar-card:hover { background: var(--cream); }
.sidebar-card.active { background: rgba(229, 57, 53, 0.06); }
.sidebar-card-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.sidebar-card-photo-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--red-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
}
.sidebar-card-info { min-width: 0; }
.sidebar-card-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-card-place {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =====================================================
   INTERVIEW GALLERY — Editorial cards with photos
   ===================================================== */
.gallery-section {
  padding: 3.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: 2rem;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.section-title-script {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: var(--blue);
  text-align: center;
  margin-bottom: 0.3rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.interview-card {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.interview-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(43, 57, 144, 0.08);
  transform: translateY(-2px);
}
.card-photo {
  width: 120px;
  min-height: 140px;
  object-fit: cover;
  flex-shrink: 0;
}
.card-photo-placeholder {
  width: 120px;
  min-height: 140px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--red-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 2rem;
}
.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-quote {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.card-name {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.card-bio {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.card-footer {
  margin-top: auto;
  padding-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.card-tag {
  background: var(--cream);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.7rem;
}
.card-arrow {
  margin-left: auto;
  color: var(--red);
  font-weight: 600;
  font-size: 0.82rem;
  transition: transform 0.2s;
}
.interview-card:hover .card-arrow { transform: translateX(3px); }

/* =====================================================
   QUIZ — "What Kind of New Yorker Are You?"
   ===================================================== */
.quiz-section {
  padding: 3.5rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quiz-inner {
  max-width: 620px;
  margin: 0 auto;
}
.quiz-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 1.5rem 0 0.5rem;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  width: 0;
  transition: width 0.4s ease;
}
.quiz-counter {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: right;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.quiz-question {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.quiz-option {
  display: block;
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  letter-spacing: -0.01em;
}
.quiz-option:hover {
  border-color: var(--blue);
  background: rgba(43, 57, 144, 0.04);
  transform: translateX(4px);
}
.quiz-option.selected {
  border-color: var(--red);
  background: rgba(229, 57, 53, 0.08);
  color: var(--red);
  font-weight: 600;
}
/* Result */
.quiz-result {
  text-align: center;
  padding: 1.5rem 0;
}
.quiz-result-emoji {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}
.quiz-result-title {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.quiz-result-quote {
  font-style: italic;
  color: var(--red);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.quiz-result-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.quiz-result-inspired {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.quiz-result-inspired strong {
  color: var(--blue);
}
.quiz-result-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================
   GET INTERVIEWED — Clean, modern form
   ===================================================== */
.interview-request-section {
  padding: 3.5rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.request-inner {
  max-width: 560px;
  margin: 0 auto;
}
.request-form-wrapper {
  margin-top: 2rem;
}
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 57, 144, 0.08);
  background: var(--white);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #94A3B8;
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-submit { width: 100%; margin-top: 0.5rem; }

/* =====================================================
   ABOUT — Clean, centered
   ===================================================== */
.about-section {
  padding: 3.5rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.about-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.about-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}
.about-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================
   ORIGIN STORY — "Native New Yorker"
   ===================================================== */
.origin-section {
  padding: 3.5rem 1.5rem;
  background: var(--text);
  color: var(--white);
  overflow: hidden;
}
.origin-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.origin-vinyl {
  flex-shrink: 0;
}
.vinyl-record {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #111 0%, #111 18%,
    #222 18%, #222 20%,
    #111 20%, #111 38%,
    #1a1a1a 38%, #1a1a1a 40%,
    #222 40%, #222 42%,
    #111 42%, #111 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  animation: vinylSpin 8s linear infinite;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
.vinyl-label {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-soft));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
}
.vinyl-title {
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  animation: vinylSpinReverse 8s linear infinite;
}
.vinyl-artist {
  font-size: 0.38rem;
  opacity: 0.8;
  margin-top: 2px;
  animation: vinylSpinReverse 8s linear infinite;
}
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes vinylSpinReverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
.origin-text {
  min-width: 0;
}
.origin-text .section-label {
  color: var(--red-soft);
}
.origin-headline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.origin-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}
.origin-body em {
  color: var(--taxi);
  font-style: italic;
}
.origin-listen {
  margin-top: 1rem;
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}
.origin-listen:hover {
  border-color: var(--red-soft);
  background: rgba(255,255,255,0.08);
}
@media (max-width: 767px) {
  .origin-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .vinyl-record { width: 140px; height: 140px; }
  .vinyl-label { width: 55px; height: 55px; }
  .vinyl-title { font-size: 0.42rem; }
  .vinyl-artist { font-size: 0.33rem; }
}

/* =====================================================
   NYC GLOSSARY — Subway Sign Style
   ===================================================== */
.glossary-section {
  padding: 4rem 1.5rem;
  background: #1a1a2e;
  position: relative;
  overflow: hidden;
}
/* Subway tile texture overlay */
.glossary-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(255,255,255,0.03) 23px,
      rgba(255,255,255,0.03) 24px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 23px,
      rgba(255,255,255,0.03) 23px,
      rgba(255,255,255,0.03) 24px
    );
  pointer-events: none;
}
.glossary-section .section-label { color: var(--taxi); }
.glossary-section .section-title { color: #fff; }

.glossary-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.glossary-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* --- Each term card --- */
.glossary-card {
  background: #111;
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid transparent;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s;
}
.glossary-card.visible {
  opacity: 1;
  transform: translateX(0);
}
.glossary-card:hover {
  border-left-color: var(--taxi);
}

/* Stagger the animation delays */
.glossary-card:nth-child(1) { transition-delay: 0s; }
.glossary-card:nth-child(2) { transition-delay: 0.07s; }
.glossary-card:nth-child(3) { transition-delay: 0.14s; }
.glossary-card:nth-child(4) { transition-delay: 0.21s; }
.glossary-card:nth-child(5) { transition-delay: 0.28s; }
.glossary-card:nth-child(6) { transition-delay: 0.35s; }
.glossary-card:nth-child(7) { transition-delay: 0.42s; }
.glossary-card:nth-child(8) { transition-delay: 0.49s; }
.glossary-card:nth-child(9) { transition-delay: 0.56s; }
.glossary-card:nth-child(10) { transition-delay: 0.63s; }

/* --- Subway sign row (bullet + term) --- */
.subway-sign-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

/* --- Subway line bullets --- */
.subway-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
  animation: bulletPulse 3s ease-in-out infinite;
}
/* Real MTA line colors */
.subway-bullet[data-line="1"],
.subway-bullet[data-line="2"],
.subway-bullet[data-line="3"] { background: #EE352E; }
.subway-bullet[data-line="4"],
.subway-bullet[data-line="5"],
.subway-bullet[data-line="6"] { background: #00933C; }
.subway-bullet[data-line="7"] { background: #B933AD; }
.subway-bullet[data-line="A"],
.subway-bullet[data-line="C"],
.subway-bullet[data-line="E"] { background: #0039A6; }
.subway-bullet[data-line="B"],
.subway-bullet[data-line="D"],
.subway-bullet[data-line="F"],
.subway-bullet[data-line="M"] { background: #FF6319; }
.subway-bullet[data-line="G"] { background: #6CBE45; }
.subway-bullet[data-line="J"],
.subway-bullet[data-line="Z"] { background: #996633; }
.subway-bullet[data-line="L"] { background: #A7A9AC; }
.subway-bullet[data-line="N"],
.subway-bullet[data-line="Q"],
.subway-bullet[data-line="R"],
.subway-bullet[data-line="W"] { background: #FCCC0A; color: #1a1a2e; }
.subway-bullet[data-line="S"] { background: #808183; }

@keyframes bulletPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.15); }
  50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

/* --- The term itself (subway station sign look) --- */
.subway-sign {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.glossary-pronunciation {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  margin-bottom: 0.4rem;
  padding-left: calc(28px + 0.75rem);
}

.glossary-origin {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  padding-left: calc(28px + 0.75rem);
}

/* --- Mobile --- */
@media (max-width: 767px) {
  .glossary-section { padding: 3rem 1rem; }
  .subway-sign { font-size: 1rem; }
  .subway-bullet { width: 24px; height: 24px; font-size: 0.75rem; }
  .glossary-pronunciation { padding-left: calc(24px + 0.75rem); font-size: 0.72rem; }
  .glossary-origin { padding-left: calc(24px + 0.75rem); font-size: 0.8rem; }
  .glossary-card { padding: 0.9rem 1rem; }
}

/* =====================================================
   FOOTER — Dark, tight
   ===================================================== */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--red-soft);
  margin-bottom: 1.25rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover { color: white; }
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
}
.footer-anthora {
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
  margin-top: 1rem;
}

/* =====================================================
   RESPONSIVE — Desktop
   ===================================================== */
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .card-photo, .card-photo-placeholder { width: 160px; min-height: 180px; }
}

@media (min-width: 1024px) {
  .map-container { flex-direction: row; height: 80vh; }
  #map { width: 65%; height: 100%; }
  .map-sidebar {
    width: 35%;
    height: 100%;
    border-left: 1px solid var(--border);
    padding: 1.25rem;
  }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .card-photo, .card-photo-placeholder { width: 200px; min-height: 200px; }
  .nav-links a { font-size: 0.85rem; }
}

/* =====================================================
   RESPONSIVE — Mobile
   ===================================================== */
@media (max-width: 767px) {
  .nav { padding: 0.4rem 0.5rem; justify-content: center; }
  .nav-logo { display: none; }
  .nav-links { flex-wrap: nowrap; gap: 0; justify-content: center; }
  .nav-links a { padding: 0.3rem 0.4rem; font-size: 0.68rem; white-space: nowrap; }
  .nav-links .nav-full { display: none; }
  .nav-links .nav-short { display: inline; }
  .nyc-ticker { top: 33px; height: 24px; }
  .hero { padding: 5rem 1rem 2rem; }
  .hero-logo { width: min(160px, 40vw); }
  #map { height: 50vh; }
  .map-sidebar { max-height: 35vh; }
  .map-header { padding: 1.25rem 1rem 0.75rem; flex-direction: column; gap: 0.25rem; }
  .card-photo, .card-photo-placeholder { width: 90px; min-height: 120px; }
  .card-body { padding: 1rem; }
  .card-quote { font-size: 0.9rem; }
  .gallery-section,
  .about-section,
  .interview-request-section { padding: 2.5rem 1rem; }
}

/* =====================================================
   UTILITY
   ===================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
