/* ============================================================
   THE LEGACY OF HAJIYA RAKIYA YUSUF DATTI
   Design System — legacy.css v1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS VARIABLES — DAY MODE (DEFAULT)
   ============================================================ */
:root {
  --bg-primary: #F8F6F2;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-subtle: #F2EEE8;
  --gold: #C9A46A;
  --gold-warm: #B88A44;
  --gold-deep: #8F6A42;
  --text-primary: #1F1F1F;
  --text-secondary: #4A4035;
  --text-muted: #8A7B68;
  --border: rgba(201,164,106,0.25);
  --border-strong: rgba(201,164,106,0.5);
  --shadow: 0 2px 20px rgba(31,31,31,0.06);
  --shadow-card: 0 4px 32px rgba(31,31,31,0.08);
  --shadow-hover: 0 8px 48px rgba(31,31,31,0.12);
  --spotlight: rgba(201,164,106,0.12);
  --nav-bg: rgba(248,246,242,0.92);
  --mode: 'day';
  --transition-theme: all 0.8s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   NIGHT MODE
   ============================================================ */
[data-theme="night"] {
  --bg-primary: #0F0F10;
  --bg-secondary: #18181A;
  --bg-card: #1C1C1F;
  --bg-subtle: #222225;
  --gold: #D8B16A;
  --gold-warm: #E6C17A;
  --gold-deep: #9E7C52;
  --text-primary: #F4F0EA;
  --text-secondary: #C8BFB0;
  --text-muted: #7A7068;
  --border: rgba(216,177,106,0.18);
  --border-strong: rgba(216,177,106,0.35);
  --shadow: 0 2px 20px rgba(0,0,0,0.4);
  --shadow-card: 0 4px 32px rgba(0,0,0,0.5);
  --shadow-hover: 0 8px 48px rgba(0,0,0,0.7);
  --spotlight: rgba(216,177,106,0.08);
  --nav-bg: rgba(15,15,16,0.92);
  --mode: 'night';
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: var(--transition-theme);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.6rem); }

p { font-size: 1rem; line-height: 1.8; color: var(--text-secondary); }
p.lead { font-size: 1.15rem; font-weight: 400; }

a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold-warm); }

.serif { font-family: 'Cormorant Garamond', serif; }
.italic { font-style: italic; }
.gold { color: var(--gold); }
.muted { color: var(--text-muted); }
.caps { letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.78rem; font-weight: 500; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-theme);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
}

.nav-brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  cursor: pointer;
}

.theme-btn {
  padding: 4px 10px;
  border-radius: 100px;
  border: none;
  background: none;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
}

.theme-btn.active {
  background: var(--gold);
  color: #fff;
}

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0; bottom: 0;
  background: var(--bg-primary);
  z-index: 99;
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

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

.container-sm {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

.page-hero {
  padding: 160px 0 80px;
  text-align: center;
}

.page-hero .caps {
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 2rem auto;
}

.divider-left {
  margin: 2rem 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 40%, var(--spotlight), transparent),
    radial-gradient(ellipse 40% 40% at 20% 80%, var(--spotlight), transparent);
  transition: var(--transition-theme);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.hero-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero-title .the {
  display: block;
  font-size: 0.55em;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3em;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.name-pill {
  padding: 6px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 500;
  background: var(--spotlight);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-photo {
  position: relative;
}

.hero-photo-frame {
  aspect-ratio: 3/4;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

[data-theme="night"] .hero-photo-frame {
  box-shadow: 0 0 80px rgba(216,177,106,0.1), 0 0 160px rgba(216,177,106,0.05);
}

.hero-photo-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.hero-photo-placeholder svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.hero-photo-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold);
  border-style: solid;
}

.hero-photo-corner.tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.hero-photo-corner.tr { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.hero-photo-corner.bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.hero-photo-corner.br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 14px 28px;
  border-radius: 3px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}

.btn-gold:hover {
  background: var(--gold-warm);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,164,106,0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover { color: var(--gold-warm); }

.btn-lg { padding: 18px 36px; font-size: 0.85rem; }
.btn-sm { padding: 10px 20px; font-size: 0.75rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.4s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

[data-theme="night"] .card:hover {
  box-shadow: var(--shadow-hover), 0 0 40px rgba(216,177,106,0.06);
}

.card-gold-accent {
  border-top: 2px solid var(--gold);
}

/* ============================================================
   IDENTITY SECTION (home — the four names)
   ============================================================ */
.identity-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.identity-item {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: background 0.3s;
}

.identity-item:last-child { border-right: none; }
.identity-item:hover { background: var(--spotlight); }

.identity-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-style: italic;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.identity-role {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.identity-desc {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border-strong);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 3rem;
  align-items: start;
}

.timeline-item:nth-child(even) .timeline-content { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-empty { grid-column: 1; grid-row: 1; }
.timeline-item:nth-child(even) .timeline-dot { grid-column: 2; }

.timeline-content {
  padding: 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

[data-theme="night"] .timeline-content {
  box-shadow: var(--shadow), 0 0 30px rgba(216,177,106,0.04);
}

.timeline-dot {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
}

.timeline-dot-inner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 1px var(--gold);
}

.timeline-date {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.timeline-text { font-size: 0.9rem; }

/* ============================================================
   TRIBUTE CARDS
   ============================================================ */
.tribute-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.tribute-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.4s;
  position: relative;
}

.tribute-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

[data-theme="night"] .tribute-card.featured {
  box-shadow: 0 4px 32px rgba(0,0,0,0.5), 0 0 40px rgba(216,177,106,0.1);
}

.tribute-quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  line-height: 0.5;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: -1rem;
  display: block;
}

.tribute-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.tribute-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.tribute-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
}

.tribute-author-name {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-primary);
  display: block;
}

.tribute-author-rel {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,16,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-caption {
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* ============================================================
   QUOTE SECTION
   ============================================================ */
.quote-feature {
  text-align: center;
  padding: 5rem 0;
  position: relative;
}

.quote-feature::before {
  content: '\201C';
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 12rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.08;
  pointer-events: none;
}

.quote-feature blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.quote-attribution {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ============================================================
   STATS / IMPACT COUNTER
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.stat-item {
  background: var(--bg-card);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: background 0.3s;
}

.stat-item:hover { background: var(--spotlight); }

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-primary);
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,164,106,0.12);
}

.form-textarea { min-height: 130px; resize: vertical; line-height: 1.7; }

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A46A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.form-error {
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 0.4rem;
}

/* ============================================================
   UPLOAD ZONES
   ============================================================ */
.upload-zone {
  border: 2px dashed var(--border-strong);
  border-radius: 4px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--bg-subtle);
}

.upload-zone:hover,
.upload-zone.dragging {
  border-color: var(--gold);
  background: var(--spotlight);
}

.upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--gold);
  opacity: 0.7;
}

.upload-zone p { font-size: 0.9rem; }
.upload-zone .caps { color: var(--gold); margin-bottom: 0.5rem; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: 4rem;
}

.section-header-center {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-label-center {
  justify-content: center;
  margin-bottom: 1rem;
}

.section-label-center::after { display: none; }

/* ============================================================
   MUSEUM MODE
   ============================================================ */
.exhibit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.exhibit-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 4/5;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.exhibit-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.exhibit-card:hover .exhibit-card-img { transform: scale(1.05); }

.exhibit-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,16,0.9) 0%, rgba(15,15,16,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: background 0.4s;
}

.exhibit-card:hover .exhibit-overlay {
  background: linear-gradient(to top, rgba(15,15,16,0.95) 0%, rgba(15,15,16,0.5) 60%, transparent 100%);
}

.exhibit-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: -0.5rem;
}

.exhibit-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.exhibit-sub {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold); }

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

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px;
  overflow-y: auto;
  z-index: 50;
}

.admin-sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-sidebar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.3rem;
}

.admin-sidebar-sub {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.admin-nav {
  padding: 1.5rem 0;
}

.admin-nav-section {
  padding: 0.5rem 1.5rem;
  margin-bottom: 0.3rem;
}

.admin-nav-section-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 9px 14px;
  border-radius: 3px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.2s;
  margin-bottom: 2px;
  font-weight: 400;
}

.admin-nav-link:hover {
  background: var(--spotlight);
  color: var(--gold);
}

.admin-nav-link.active {
  background: var(--spotlight);
  color: var(--gold);
  border-left: 2px solid var(--gold);
}

.admin-nav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.admin-badge {
  margin-left: auto;
  background: var(--gold);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
}

.admin-main {
  margin-left: 260px;
  min-height: 100vh;
  background: var(--bg-primary);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-topbar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.admin-content {
  padding: 2.5rem;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.admin-stat-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.admin-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.admin-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-weight: 500;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

.admin-table tr:hover td { background: var(--spotlight); }

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.status-pending { background: rgba(201,164,106,0.15); color: var(--gold-warm); }
.status-approved { background: rgba(39,174,96,0.12); color: #27ae60; }
.status-rejected { background: rgba(192,57,43,0.12); color: #c0392b; }
.status-featured { background: rgba(52,73,94,0.12); color: #2c3e50; }

/* ============================================================
   SETUP WIZARD
   ============================================================ */
.wizard-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.wizard-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 3rem 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.wizard-step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 2rem;
}

.wizard-step-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 10px 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-step-item.active {
  background: var(--spotlight);
}

.wizard-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s;
}

.wizard-step-item.active .wizard-step-num,
.wizard-step-item.done .wizard-step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.wizard-step-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.wizard-step-item.active .wizard-step-label { color: var(--text-primary); font-weight: 500; }

.wizard-main {
  padding: 3rem 4rem;
  overflow-y: auto;
}

.wizard-progress {
  height: 3px;
  background: var(--border);
  border-radius: 100px;
  margin-bottom: 3rem;
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 100px;
  transition: width 0.5s;
}

/* ============================================================
   NIGHT MODE SPOTLIGHT EFFECT
   ============================================================ */
[data-theme="night"] .night-spotlight {
  position: relative;
}

[data-theme="night"] .night-spotlight::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  box-shadow: 0 0 40px rgba(216,177,106,0.12), 0 0 80px rgba(216,177,106,0.05);
  pointer-events: none;
}

/* ============================================================
   GENERATION CHAIN
   ============================================================ */
.generation-chain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2rem 0;
}

.gen-node {
  text-align: center;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 260px;
  transition: all 0.3s;
}

.gen-node:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.gen-node.featured {
  border-color: var(--gold);
  background: var(--spotlight);
}

.gen-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: block;
  margin-bottom: 0.3rem;
}

.gen-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.gen-connector {
  width: 1px;
  height: 40px;
  background: var(--border-strong);
  position: relative;
}

.gen-connector::before {
  content: '↓';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  color: var(--gold);
  background: var(--bg-primary);
  padding: 2px 4px;
  font-size: 0.8rem;
}

/* ============================================================
   ALERTS / TOASTS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.88rem;
  max-width: 360px;
  animation: slideIn 0.3s ease;
}

.toast-success { border-left-color: #27ae60; }
.toast-error { border-left-color: #c0392b; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 3px;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.animate-fade-up.delay-1 { animation-delay: 0.1s; }
.animate-fade-up.delay-2 { animation-delay: 0.2s; }
.animate-fade-up.delay-3 { animation-delay: 0.3s; }
.animate-fade-up.delay-4 { animation-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-photo { max-width: 360px; margin: 0 auto; }
  .identity-grid { grid-template-columns: repeat(2, 1fr); }
  .identity-item:nth-child(2) { border-right: none; }
  .identity-item:nth-child(3) { border-top: 1px solid var(--border); }
  .identity-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-sidebar { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .section { padding: 70px 0; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .timeline::before { left: 24px; }
  .timeline-item { grid-template-columns: 48px 1fr; }
  .timeline-item:nth-child(even) .timeline-content { grid-column: 2; }
  .timeline-item:nth-child(even) .timeline-empty { display: none; }
  .timeline-item:nth-child(even) .timeline-dot { grid-column: 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .wizard-main { padding: 2rem; }
  .admin-content { padding: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container, .container-sm { padding: 0 1.25rem; }
  .identity-grid { grid-template-columns: 1fr; }
  .identity-item { border-right: none; border-bottom: 1px solid var(--border); }
  .tribute-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn { justify-content: center; }
}
