.source-code-btn {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  color: #1a1a1a;
  border-color: var(--gold-dark);
  font-weight: 700;
  box-shadow: 0 4px 16px 0 rgba(212,175,55,0.18);
  margin-left: 0.5rem;
}
.source-code-btn:hover, .source-code-btn:focus {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple-dark);
}
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&display=swap");

/* ===================================
   ADA LOVELACE TRIBUTE PAGE
   A Modern Tribute to Computing's Pioneer
   =================================== */

:root {
  /* Typography */
  --title-fonts: "Libre Baskerville", Georgia, serif;
  --body-font: "Red Hat Display", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Color Palette - Computing-Inspired */
  --black: #0a0a0a;
  --black-soft: #111111;
  --white: #f5f5f5;
  --white-muted: rgba(245, 245, 245, 0.7);
  --white-subtle: rgba(245, 245, 245, 0.4);

  /* Accent Colors */
  --gold: #d4af37;
  --gold-light: #f0d77c;
  --gold-dark: #b8960c;
  --purple: #6b21a8;
  --purple-light: #9333ea;
  --purple-dark: #4c1d95;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  --gradient-purple: linear-gradient(135deg, var(--purple-dark), var(--purple), var(--purple-light));
  --gradient-hero: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6), var(--black));

  /* Fluid Typography Scale */
  --fs-display: clamp(2.5rem, 6vw, 4rem);
  --fs-hero: clamp(2rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.25rem, 2.5vw, 1.75rem);
  --fs-h3: clamp(1.75rem, 4vw, 2.75rem);
  --fs-body: clamp(1rem, 1.8vw, 1.2rem);
  --fs-small: clamp(0.875rem, 1.5vw, 1rem);
  --fs-timeline: clamp(0.95rem, 1.6vw, 1.1rem);
  --fs-nav: clamp(0.75rem, 1.2vw, 0.9rem);

  /* Spacing Scale */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(1rem, 2vw, 1.5rem);
  --space-md: clamp(2rem, 4vw, 3rem);
  --space-lg: clamp(3rem, 6vw, 5rem);
  --space-xl: clamp(4rem, 8vw, 7rem);
  --space-2xl: clamp(6rem, 10vw, 10rem);

  /* Line Heights */
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  /* Animation Timing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.6s;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.3);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100vh;
  background-color: var(--black);
  color: var(--white);
  font-family: var(--body-font);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Hide scrollbar but keep functionality */
body {
  -ms-overflow-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

body::-webkit-scrollbar {
  width: 6px;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

/* Focus States - Accessibility */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip to Content - Accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--black);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--duration-fast) var(--ease-out-expo);
}

.skip-link:focus {
  top: 1rem;
}

/* ===================================
   ANIMATIONS KEYFRAMES
   =================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes borderGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
  }
}

/* Animation Classes */
.animate-fadeInUp {
  animation: fadeInUp var(--duration-slow) var(--ease-out-expo) forwards;
}

.animate-fadeIn {
  animation: fadeIn var(--duration-slow) var(--ease-out-expo) forwards;
}

.animate-slideInLeft {
  animation: slideInLeft var(--duration-slow) var(--ease-out-expo) forwards;
}

.animate-slideInRight {
  animation: slideInRight var(--duration-slow) var(--ease-out-expo) forwards;
}

/* Initial hidden state for scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   NAVIGATION
   =================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navigation {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding: 0 var(--space-md);
  list-style: none;
  gap: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.navigation li {
  position: relative;
}

.navigation a {
  display: block;
  padding: 1.5rem 2rem;
  font-size: var(--fs-nav);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white-muted);
  transition: color var(--duration-fast) var(--ease-out-expo);
}

.navigation a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 2rem);
  height: 2px;
  background: var(--gradient-gold);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.navigation a:hover,
.navigation a:focus {
  color: var(--gold);
}

.navigation a:hover::after,
.navigation a:focus::after {
  transform: translateX(-50%) scaleX(1);
}

/* Hamburger Menu */
.ham-icon {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  transition: background var(--duration-fast) var(--ease-out-expo),
    border-color var(--duration-fast) var(--ease-out-expo);
}

.ham-icon:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
}

/* ===================================
   HEADER / HERO SECTION
   =================================== */

.header {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background-color: var(--black-soft);
  background-image:
    var(--gradient-hero),
    url("images/header-bg.jpeg");
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(107, 33, 168, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.header-title {
  position: relative;
  width: 100%;
  max-width: 600px;
  padding: var(--space-xl);
  padding-bottom: var(--space-2xl);
  text-transform: uppercase;
  animation: fadeInUp 1s var(--ease-out-expo) 0.3s both;
}

h1 {
  color: var(--white);
  font-family: var(--title-fonts);
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: 3px;
  line-height: var(--lh-tight);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--space-xs);
}

h2 {
  color: var(--gold);
  font-family: var(--body-font);
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: 4px;
  margin-top: var(--space-xs);
}

.hero-subtitle {
  display: block;
  margin-top: var(--space-sm);
  color: var(--white-muted);
  font-family: var(--body-font);
  font-size: var(--fs-body);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 1px;
  text-transform: none;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-muted);
  font-size: var(--fs-small);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about-section {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

.highlight {
  display: block;
  color: var(--gold);
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Portrait with Golden Border */
.about-pic {
  position: relative;
  flex-shrink: 0;
  width: 320px;
  height: 320px;
  background-image: url("images/about-pic.jpeg");
  background-position: center center;
  background-size: cover;
  border-radius: var(--radius-full);
  border: 4px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 4px var(--gold),
    var(--shadow-glow),
    var(--shadow-lg);
  animation: borderGlow 4s ease-in-out infinite;
}

.about-pic::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: var(--radius-full);
  background: var(--gradient-gold);
  z-index: -1;
  opacity: 0.3;
  filter: blur(15px);
}

.about-content {
  flex: 1;
  max-width: 600px;
}

.about-content h3 {
  font-family: var(--title-fonts);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
  color: var(--white);
}

.about-content p {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-relaxed);
  color: var(--white-muted);
}

.about-content em {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 500;
}

/* ===================================
   SECTION DIVIDERS
   =================================== */

.section-divider {
  width: 100%;
  max-width: 200px;
  height: 2px;
  margin: 0 auto;
  background: var(--gradient-gold);
  border: none;
  border-radius: 2px;
  opacity: 0.5;
}

/* ===================================
   TIMELINE SECTION
   =================================== */

.tribute-info {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
  color: var(--white);
}

.tribute-info h3 {
  font-family: var(--title-fonts);
  font-size: var(--fs-h3);
  font-weight: 400;
  text-align: center;
  margin-bottom: var(--space-xl);
  letter-spacing: 0.5px;
  line-height: var(--lh-snug);
}

/* Vertical Timeline Layout */
.timeline-section {
  position: relative;
  width: 100%;
  padding-left: 3rem;
}

/* Timeline vertical line */
.timeline-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
      transparent,
      var(--gold) 10%,
      var(--gold) 90%,
      transparent);
}

.timeline-section hr {
  display: none;
}

/* Timeline Entry */
.timeline-in-detail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    background var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo);
}

/* Timeline dot */
.timeline-in-detail::before {
  content: "";
  position: absolute;
  left: calc(-3rem - 6px);
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--black);
  border: 3px solid var(--gold);
  border-radius: var(--radius-full);
  transition:
    background var(--duration-fast) var(--ease-out-expo),
    transform var(--duration-fast) var(--ease-out-expo);
}

.timeline-in-detail:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateX(5px);
}

.timeline-in-detail:hover::before {
  background: var(--gold);
  transform: translateY(-50%) scale(1.2);
}

/* Timeline content */
.timeline-year,
.timeline-month,
.timeline-event {
  width: auto;
  text-align: left;
}

.timeline-year p {
  display: inline-block;
  font-family: var(--title-fonts);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}

.timeline-month p {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--white-subtle);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.timeline-event p {
  font-size: var(--fs-timeline);
  font-weight: 400;
  line-height: var(--lh-normal);
  color: var(--white-muted);
  margin-top: var(--space-xs);
}

/* ===================================
   BLOCKQUOTE
   =================================== */

/* ===================================
   FINAL SECTION (QUOTE & RESOURCES)
   =================================== */

.final-section {
  width: 90%;
  max-width: 1200px;
  margin: var(--space-xl) auto var(--space-lg) auto;
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-xl);
  background-color: #1a1a1a;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 100px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.final-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05), transparent 60%);
  pointer-events: none;
}

.final-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
  min-width: 0;
}

.final-quote {
  position: relative;
  word-wrap: break-word;
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--gold);
}

.final-quote p {
  font-family: var(--title-fonts);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.final-quote cite {
  display: block;
  font-family: var(--body-font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: var(--space-xs);
}

.final-quote::before {
  content: "\201C";
  position: absolute;
  top: -1rem;
  left: 1rem;
  font-family: serif;
  font-size: 8rem;
  color: var(--gold);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}

.final-resources {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto var(--space-2xl) auto;
  display: flex;
  justify-content: center;
}

.resources-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: 0;
  justify-content: center;
}

.resources-list li::before {
  display: none;
}

.resources-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
}

.resources-list a:hover,
.resources-list a:focus {
  background: var(--gold);
  color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
  border-color: var(--gold);
  text-decoration: none;
}

.resources-img {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3/4;
  background-image: url("images/resources-img.jpeg");
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-lg);
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    inset 0 0 50px rgba(0, 0, 0, 0.5);
  transform: rotate(2deg);
  transition: transform 0.5s ease;
  justify-self: center;
}

.resources-img:hover {
  transform: rotate(0deg) scale(1.02);
}

/* Resources and other styles now incorporated in final-section */

/* ===================================
   FOOTER
   =================================== */

footer {
  width: 100%;
  padding: var(--space-lg);
  background: var(--black-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-tribute {
  font-family: var(--title-fonts);
  font-size: var(--fs-body);
  font-style: italic;
  color: var(--white-muted);
  margin-bottom: var(--space-sm);
}

.footer-tribute span {
  color: var(--gold);
}

.footer-credits {
  font-size: var(--fs-small);
  color: var(--white-subtle);
}

.footer-credits a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-out-expo);
}

.footer-credits a:hover {
  opacity: 0.8;
}


/* ===================================
   TRIBUTE GRID SECTION (FINAL)
   =================================== */

.tribute-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  position: relative;
  background: var(--black-soft);
  border-radius: var(--radius-lg);
  margin: var(--space-xl) auto var(--space-lg) auto;
  max-width: 1200px;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.12);
  overflow: hidden;
}

@media (max-width: 900px) {
  .tribute-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xs);
  }
  .tribute-portrait {
    justify-self: center;
  }
}

.tribute-bg-math {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" xmlns="http://www.w3.org/2000/svg"><text x="10" y="60" font-size="48" fill="%23d4af37" opacity="0.07">∫ Σ π ∆ ∑ ∂ ∞ ≈ ≠ √ ∇</text></svg>');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.tribute-portrait {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.resources-img {
  width: 260px;
  height: 340px;
  max-width: 90vw;
  aspect-ratio: 3/4;
  background-image: url("images/resources-img.jpeg");
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-lg);
  border: 4px solid var(--gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 0 8px rgba(212,175,55,0.08);
  margin-bottom: var(--space-md);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.resources-img:hover {
  transform: scale(1.04) rotate(-1deg);
}

.tribute-quote-resources {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-md);
}

.final-quote {
  font-family: var(--title-fonts);
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  line-height: 1.4;
  color: var(--white);
  background: rgba(0,0,0,0.25);
  border-left: 5px solid var(--gold);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
}
.final-quote cite {
  display: block;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--gold);
  margin-top: 0.5rem;
  font-style: normal;
}

.resources-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: 0.5rem 0 0.5rem 0;
}
.resource-badge {
  display: inline-block;
  padding: 0.7em 1.4em;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid var(--gold);
  border-radius: 2em;
  color: var(--gold);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 8px 0 rgba(212,175,55,0.07);
  cursor: pointer;
}
.resource-badge[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}
.resource-badge:hover:not([aria-disabled="true"]),
.resource-badge:focus:not([aria-disabled="true"]) {
  background: var(--gold);
  color: #1a1a1a;
  border-color: var(--gold-dark);
  box-shadow: 0 4px 16px 0 rgba(212,175,55,0.18);
  outline: none;
}
.resources-license {
  font-size: var(--fs-small);
  color: var(--white-subtle);
  margin-top: 1rem;
}

/* ===================================
   HOVER STATES (pointer devices only)
   =================================== */

@media (hover: hover) and (pointer: fine) {

  .timeline-year p:hover,
  .timeline-event p:hover {
    cursor: default;
  }

  .navigation a:hover {
    cursor: pointer;
  }
}