/* ============================================
   TOGETHER WE SOLVE — hall-of-fame.css
   Prestigious Museum-Style Evolved Editorial CSS
   ============================================ */

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

:root {
  /* Editorial Color System */
  --bg-warm: #FAF6F0;       /* Warm Ivory Paper */
  --text-charcoal: #1C1E1D; /* Charcoal Ink */
  --accent-moss: #23382B;   /* Deep Forest Moss */
  --accent-ocean: #3D5A6C;  /* Muted Ocean Blue */
  --accent-clay: #C87D55;   /* Earthy Warm Clay */
  --bg-fog: #EBECE8;        /* Soft Foggy Grey-Green */
  --bg-dark-moss: #1A2E22;  /* Rich Dark Moss Background */

  /* Spacing & Borders */
  --border-light: rgba(28, 30, 29, 0.08);
  --border-dark: rgba(250, 246, 240, 0.08);
  --font-display: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 16px;
  scroll-behavior: auto;
  background-color: var(--bg-warm);
}

body {
  background-color: var(--bg-warm);
  color: var(--text-charcoal);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Tactile Paper Texture Overlay ────────────────── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.045;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ─── UTILITY ─────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}

@media (max-width: 768px) {
  .container { padding: 0 28px; }
}

.label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-clay);
  margin-bottom: 28px;
  display: block;
}

.section {
  padding: 140px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section { padding: 90px 0; }
}

.italic { 
  font-family: var(--font-display);
  font-style: italic; 
}

/* ─── NAV (Editorial Header) ────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 64px;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.nav.scrolled {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(16px);
  padding: 16px 64px;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.nav:not(.scrolled) .nav-logo,
.nav:not(.scrolled) .nav-link {
  color: var(--bg-warm);
}

.nav:not(.scrolled) .nav-link:hover,
.nav:not(.scrolled) .nav-link.active {
  color: var(--bg-warm);
}

.nav:not(.scrolled) .nav-cta {
  background: var(--bg-warm);
  color: var(--accent-moss);
}

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-charcoal);
  text-decoration: none;
  letter-spacing: -0.01em;
  font-weight: 400;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-charcoal);
  text-decoration: none;
  letter-spacing: 0.01em;
  opacity: 0.75;
  transition: opacity 0.3s, color 0.3s;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--accent-moss);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-clay);
  border-radius: 2px;
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--bg-warm);
  text-decoration: none;
  padding: 12px 28px;
  border: none;
  border-radius: 100px;
  transition: var(--transition-smooth);
  letter-spacing: 0.03em;
  background: var(--accent-moss);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--text-charcoal);
  color: var(--bg-warm);
  transform: translateY(-1px);
}

.nav-cta-arrow {
  font-size: 14px;
  display: inline-block;
  transition: transform 0.3s;
}

.nav-cta:hover .nav-cta-arrow {
  transform: translate(2px, -2px);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .nav { padding: 18px 24px; }
  .nav.scrolled { padding: 14px 24px; }
}

/* ─── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 100px;
  transition: var(--transition-smooth);
  cursor: pointer;
  white-space: nowrap;
}

.btn-ghost {
  color: var(--text-charcoal);
  opacity: 0.8;
  padding: 15px 28px;
  border: 1px solid transparent;
}

.btn-ghost:hover {
  opacity: 1;
  color: var(--accent-clay);
}

.btn-sm {
  font-size: 12px;
  padding: 10px 22px;
}

/* ─── PANTHEON HERO (Dark Forest Green) ─────── */
.pantheon-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-dark-moss);
  color: var(--bg-warm);
  border-bottom: 1px solid rgba(250, 246, 240, 0.05);
}

.canvas-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#goldDustCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.pantheon-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 160px 64px 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 780px;
}

.pantheon-hero .hero-eyebrow-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-clay);
  display: block;
  margin-bottom: 12px;
}

.pantheon-hero .hero-eyebrow-line {
  width: 48px;
  height: 2px;
  background: var(--accent-clay);
}

.pantheon-hero .hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--bg-warm);
  margin-bottom: 28px;
}

.pantheon-hero .hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--accent-clay);
  line-height: 1.4;
  margin-bottom: 20px;
}

.pantheon-hero .hero-body {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--bg-warm);
  opacity: 0.85;
  max-width: 580px;
  margin: 0;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .pantheon-hero .hero-content {
    padding: 120px 28px 60px 28px;
  }
}

/* ─── GALLERY SECTION ─────────────────────── */
.gallery-section {
  background: var(--bg-fog);
  border-radius: 60px 60px 0 0;
  margin-top: -60px;
  position: relative;
  z-index: 3;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.015);
  border-bottom: 1px solid var(--border-light);
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--accent-moss);
  margin-bottom: 64px;
}

.legends-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

@media (max-width: 960px) {
  .legends-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .legends-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Legend Cards (Paper aesthetic with asymmetric rotations) */
.legend-card {
  background: var(--bg-warm);
  border: 1px solid rgba(28, 30, 29, 0.05);
  border-radius: 8px;
  padding: 48px 40px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s, border-color 0.6s;
  
  --rot: 0deg;
  transform: rotate(var(--rot));
}

.legend-card:nth-child(1) { --rot: -0.8deg; }
.legend-card:nth-child(2) { --rot: 0.6deg; }
.legend-card:nth-child(3) { --rot: -0.5deg; }

.legend-card:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.02);
  box-shadow: 0 20px 48px rgba(28, 30, 29, 0.06);
  border-color: rgba(200, 125, 85, 0.25);
  z-index: 10;
}

.legend-accent-bar {
  width: 36px;
  height: 3px;
  background: var(--accent-clay);
  margin-bottom: 24px;
}

.legend-year {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-moss);
  opacity: 0.6;
  margin-bottom: 20px;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-fog);
  border: 1px solid rgba(35, 56, 43, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent-moss);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.legend-card:hover .avatar-circle {
  border-color: var(--accent-clay);
  box-shadow: 0 0 0 4px rgba(200, 125, 85, 0.08);
}

.legend-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-charcoal);
  margin-bottom: 4px;
}

.legend-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-clay);
  display: block;
  margin-bottom: 24px;
}

.legend-stats {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 36px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent-moss);
  line-height: 1.2;
}

.stat-lbl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-top: 2px;
}

.legend-teaser {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.view-story-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-moss);
  transition: var(--transition-smooth);
}

.legend-card:hover .view-story-btn {
  color: var(--accent-clay);
  transform: translateX(4px);
}

.hall-profile-card {
  color: inherit;
  text-decoration: none;
}

.legend-admin-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ocean);
  border: 1px solid rgba(61, 90, 108, 0.18);
  border-radius: 100px;
  padding: 3px 10px;
  margin: -10px 0 20px;
}

/* ─── PRESITIGOUS STORY MODALS ─────────────── */
.story-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 30, 29, 0.4);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

.story-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.story-modal-card {
  background: var(--bg-warm);
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  border: 1px solid rgba(28, 30, 29, 0.06);
  box-shadow: 0 30px 90px rgba(28, 30, 29, 0.18);
  position: relative;
  overflow: hidden;
  transform: translateY(40px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-modal-overlay.active .story-modal-card {
  transform: translateY(0);
}

.close-modal-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--text-charcoal);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s;
  z-index: 10;
}

.close-modal-btn:hover {
  opacity: 1;
}

.modal-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 520px;
}

@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Info */
.modal-sidebar {
  background: var(--bg-fog);
  border-right: 1px solid var(--border-light);
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 768px) {
  .modal-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 40px 28px;
  }
}

.modal-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 2px solid var(--accent-clay);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent-clay);
  margin-bottom: 24px;
}

.modal-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-charcoal);
  line-height: 1.2;
  margin-bottom: 4px;
}

.modal-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-clay);
  display: block;
  margin-bottom: 24px;
}

.modal-bio-intro {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.75;
  margin-bottom: 32px;
}

.modal-meta-list {
  width: 100%;
  border-top: 1px solid rgba(28, 30, 29, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  text-align: left;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meta-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.meta-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-moss);
}

/* Main Modal Content */
.modal-content {
  padding: 56px 48px;
  overflow-y: auto;
  max-height: 580px;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 40px 28px;
    max-height: none;
  }
}

.modal-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-clay);
  margin-bottom: 12px;
}

.modal-heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--accent-moss);
  margin-bottom: 24px;
}

.modal-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--accent-ocean);
  border-left: 2px solid var(--accent-clay);
  padding-left: 20px;
  margin: 0 0 28px 0;
}

.modal-body-text {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 18px;
}

.modal-content .modal-label:nth-of-type(2) {
  margin-top: 40px;
}

.modal-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-fog);
  border: 1px solid rgba(28, 30, 29, 0.05);
  padding: 6px 14px;
  border-radius: 100px;
}

.badge-icon {
  font-size: 14px;
}

.badge-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-moss);
}

/* ─── FOOTER (Consistent with Homepage) ──────── */
.footer {
  background: var(--bg-dark-moss);
  color: var(--bg-warm);
  padding: 80px 0;
  border-top: 1px solid rgba(250, 246, 240, 0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

@media (max-width: 768px) {
  .footer-inner { padding: 0 28px; }
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 40px;
}

@media (max-width: 600px) {
  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
}

.footer-nav a {
  color: var(--bg-warm);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(250, 246, 240, 0.08);
  padding-top: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  font-size: 13px;
  opacity: 0.6;
  max-width: 600px;
}
