:root {
  --ink: #1c1713;
  --parchment: #f6ede0;
  --parchment-dark: #eddfc8;
  --vermillion: #b5341a;
  --gold: #c9922a;
  --muted: #7a6a58;
  --pale: #faf6f0;
  --accent-blue: #2e4a6b;
  --cream-mid: #e8d9c4;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 22px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  background: rgba(246, 237, 224, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-mid);
}

.nav-logo {
  font-family: 'Spectral SC', serif;
  font-size: 17px;
  letter-spacing: 0.15em;
  color: var(--vermillion);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Crimson Pro', serif;
  font-size: 19px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

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

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 80px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 0 80px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'Spectral SC', serif;
  font-size: 15px;
  letter-spacing: 0.25em;
  color: var(--vermillion);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--vermillion);
  display: inline-block;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--vermillion);
}

.hero-desc {
  font-size: 21px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.hero-term-wrap {
  display: inline-block;
  position: relative;
  max-width: 100%;
  cursor: help;
}

.hero-desc-tail {
  font-weight: 400;
  color: inherit;
}

.hero-term-trigger {
  font-weight: 600;
  font-family: inherit;
  color: var(--ink);
  text-decoration: underline dotted var(--vermillion);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s, background-color 0.2s, text-decoration-color 0.2s;
  background-color: rgba(181, 52, 26, 0.09);
  border-radius: 3px;
  padding: 1px 6px 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-term-tooltip {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: min(calc(100vw - 64px), 400px);
  max-width: 540px;
  background: var(--ink);
  color: var(--parchment);
  padding: 18px 20px;
  font-family: 'Crimson Pro', serif;
  font-size: 18px;
  line-height: 1.65;
  z-index: 250;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  border-left: 3px solid var(--vermillion);
  box-shadow: 0 12px 40px rgba(28, 23, 19, 0.18);
}

.hero-term-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 20px;
  border: 8px solid transparent;
  border-bottom-color: var(--ink);
  margin-bottom: -1px;
}

.hero-term-tooltip .tooltip-title {
  margin-bottom: 10px;
}

/* Tooltip only while pointer is over the phrase (no :focus — avoids “stuck open” after click). */
.hero-term-wrap:hover .hero-term-trigger {
  color: var(--vermillion);
  background-color: rgba(181, 52, 26, 0.16);
  text-decoration-color: var(--gold);
}

.hero-term-wrap:hover .hero-term-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-authors {
  margin-bottom: 36px;
  border-left: 3px solid var(--gold);
  background: rgba(201, 146, 42, 0.07);
}

.hero-authors-names {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--ink);
  font-weight: 600;
  padding: 14px 18px 2px;
  margin-bottom: 0;
}

.hero-authors-org {
  font-family: 'Spectral SC', serif;
  font-size: 19px;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 0 18px 10px;
}

.hero-sharing {
  font-family: 'Crimson Pro', serif;
  font-size: 22px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.82;
  border-top: 1px solid rgba(201, 146, 42, 0.25);
  padding: 10px 18px 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--cream-mid);
  background: var(--pale);
}

.hero-stat {
  padding: 20px 12px;
  border-right: 1px solid var(--cream-mid);
  text-align: center;
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--vermillion);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* HERO RIGHT — traditional literary panel */
.hero-right {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #14231d;
}

.hero-bg-base {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(81, 122, 106, 0.5) 0%, rgba(20, 35, 29, 0.9) 70%);
}

.hero-bg-lily {
  position: absolute;
  inset: 0;
  background-image: url('../assets/spider_lily.png');
  background-size: 400px;
  background-repeat: repeat;
  opacity: 0.69;
}

.hero-bg-hatch {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(-55deg, transparent 0px, transparent 18px, rgba(180, 130, 60, 0.055) 18px, rgba(180, 130, 60, 0.055) 19px),
    repeating-linear-gradient(35deg, transparent 0px, transparent 28px, rgba(180, 130, 60, 0.035) 28px, rgba(180, 130, 60, 0.035) 29px);
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(181, 52, 26, 0.07) 0%, transparent 65%);
}

.hero-bg-frame {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(201, 146, 42, 0.28);
  pointer-events: none;
}

.hero-bg-frame::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(201, 146, 42, 0.13);
}



.hero-rule-top,
.hero-rule-bottom {
  position: absolute;
  left: 44px;
  right: 44px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 146, 42, 0.35), transparent);
}

.hero-rule-top {
  top: 64px;
}

.hero-rule-bottom {
  bottom: 64px;
}

.hero-ghost-chars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-ghost-char {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: rgba(201, 146, 42, 0.045);
  line-height: 1;
  user-select: none;
}

.hero-poem {
  position: relative;
  z-index: 2;
  padding: 64px 52px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-poem-ornament {
  font-size: 30px;
  color: rgba(201, 146, 42, 0.55);
  margin-bottom: 28px;
  letter-spacing: 0.3em;
  font-family: 'Playfair Display', serif;
}

.hero-poem-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(38px, 3.8vw, 50px);
  color: rgba(246, 237, 224, 0.93);
  line-height: 1.6;
  margin-bottom: 32px;
  position: relative;
}

.hero-poem-text::before {
  content: '\201C';
  font-size: 144px;
  color: rgba(201, 146, 42, 0.13);
  position: absolute;
  top: -24px;
  left: -28px;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.hero-poem-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 146, 42, 0.65), transparent);
  margin-bottom: 20px;
}

.hero-poem-source {
  font-family: 'Spectral SC', serif;
  font-size: 26px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.85;
}

/* SECTION COMMON */
section {
  padding: 100px 80px;
  position: relative;
}

.project-motivation {
  margin-top: 0;
  padding: 64px 120px;
  font-family: 'Crimson Pro', serif;
  font-size: 19px;
  line-height: 1.75;
  color: rgba(30, 22, 14, 0.78);
  background: var(--parchment);
  text-align: left;
  max-width: 72vw;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.project-motivation::before,
.project-motivation::after {
  content: '';
  position: absolute;
  top: 56px;
  bottom: 56px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

.project-motivation::before {
  left: 56px;
}

.project-motivation::after {
  right: 56px;
}

.project-motivation p {
  margin-bottom: 20px;
}

.project-motivation p:last-child {
  margin-bottom: 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-label {
  font-family: 'Spectral SC', serif;
  font-size: 19px;
  letter-spacing: 0.25em;
  color: var(--vermillion);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--vermillion);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.section-subtitle {
  margin-top: 16px;
  font-size: 22px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.75;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--vermillion), transparent);
  margin-bottom: 60px;
}

/* CITATIONS */
#citations {
  background: var(--pale);
}

/* Analytical framing (motivation) */
.analytical-framing {
  margin-bottom: 80px;
}

.analytical-framing-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 44px 48px 48px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.65) 0%, rgba(246, 237, 224, 0.35) 100%);
  border: 1px solid var(--cream-mid);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  position: relative;
}

.analytical-framing-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 48px;
  right: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.55;
}

.analytical-framing-ornament {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  letter-spacing: 0.45em;
  color: rgba(181, 52, 26, 0.35);
  margin-bottom: 28px;
}

.analytical-framing-lede {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
  text-align: center;
  line-height: 1.45;
  max-width: 820px;
  margin: 0 auto 36px;
}

.analytical-framing-lede em {
  font-style: italic;
}

.analytical-framing-lede em:nth-of-type(1) {
  color: var(--vermillion);
}

.analytical-framing-lede em:nth-of-type(2) {
  color: var(--accent-blue);
}

.analytical-framing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--cream-mid);
  background: var(--cream-mid);
}

.analytical-pillar {
  background: var(--pale);
  padding: 32px 36px 36px;
  text-align: left;
}

.analytical-pillar--horizontal {
  border-top: 3px solid var(--vermillion);
}

.analytical-pillar--vertical {
  border-top: 3px solid var(--accent-blue);
}

.analytical-pillar-label {
  font-family: 'Spectral SC', serif;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.analytical-pillar--horizontal .analytical-pillar-label {
  color: var(--vermillion);
}

.analytical-pillar--vertical .analytical-pillar-label {
  color: var(--accent-blue);
}

.analytical-pillar-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
  max-width: 120px;
}

.analytical-pillar-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.2;
}

.analytical-pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.analytical-pillar-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  font-size: 19.5px;
  color: var(--muted);
  line-height: 1.65;
}

.analytical-pillar-list li:last-child {
  margin-bottom: 0;
}

.analytical-pillar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
}

.analytical-pillar--horizontal .analytical-pillar-list li::before {
  background: linear-gradient(135deg, var(--vermillion), var(--gold));
}

.analytical-pillar--vertical .analytical-pillar-list li::before {
  background: linear-gradient(135deg, var(--accent-blue), var(--gold));
}

.citations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  background: var(--cream-mid);
}

.citations-col {
  background: var(--pale);
  padding: 40px 32px;
}

.citations-col-title {
  font-family: 'Spectral SC', serif;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cream-mid);
}

.citation-item {
  position: relative;
  margin-bottom: 20px;
  cursor: default;
}

.citation-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.citation-name {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  color: var(--ink);
  flex: 1;
  transition: color 0.2s;
}

.citation-item:hover .citation-name {
  color: var(--vermillion);
}

.citation-count {
  font-family: 'Spectral SC', serif;
  font-size: 16px;
  color: var(--vermillion);
  font-weight: 600;
}

.citation-bar-bg {
  height: 3px;
  background: var(--cream-mid);
  border-radius: 2px;
  overflow: hidden;
}

.citation-bar {
  height: 100%;
  background: linear-gradient(to right, var(--vermillion), var(--gold));
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  width: 500px;
  background: var(--ink);
  color: var(--parchment);
  padding: 18px 20px;
  font-family: 'Crimson Pro', serif;
  font-size: 17.5px;
  line-height: 1.6;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  border-left: 3px solid var(--vermillion);
}

.tooltip-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 12px;
  display: block;
}

.tooltip-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}

.tooltip-why {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-style: italic;
  color: rgba(246, 237, 224, 0.75);
  font-size: 16.5px;
}

.citation-item:hover .tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* THEMES */
#themes {
  background: var(--ink);
  color: var(--parchment);
}

#themes .section-title {
  color: var(--parchment);
}

#themes .section-label {
  color: var(--gold);
}

#themes .section-label::after {
  background: var(--gold);
}

#themes .section-subtitle {
  color: rgba(246, 237, 224, 0.65);
}

.themes-tabs {
  display: flex;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-tab {
  padding: 14px 32px;
  font-family: 'Spectral SC', serif;
  font-size: 16px;
  letter-spacing: 0.15em;
  cursor: pointer;
  color: rgba(246, 237, 224, 0.5);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.theme-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.theme-content {
  display: none;
}

.theme-content.active {
  display: block;
}

.theme-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.theme-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.theme-bar-label {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--parchment);
}

.theme-bar-num {
  font-family: 'Spectral SC', serif;
  font-size: 17px;
  color: var(--gold);
}

.theme-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.theme-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-note {
  margin-top: 36px;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.04);
  font-size: 19px;
  color: rgba(246, 237, 224, 0.7);
  font-style: italic;
  line-height: 1.7;
}

/* LENGTH */
#length {
  background: var(--parchment);
}

.length-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.length-chart-wrap {
  background: var(--pale);
  border: 1px solid var(--cream-mid);
  padding: 32px;
  margin-bottom: 24px;
}

.length-chart-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 4px;
  color: var(--ink);
}

.length-chart-sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 24px;
}

.length-insight {
  background: var(--ink);
  color: var(--parchment);
  padding: 40px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.length-insight-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1.3;
}

.length-insight p {
  font-size: 22px;
  color: rgba(246, 237, 224, 0.8);
  line-height: 1.75;
  margin-bottom: 16px;
}

.length-callout {
  margin-top: 25px;
  padding: 16px 20px;
  border-left: 3px solid var(--vermillion);
  background: rgba(181, 52, 26, 0.1);
  font-size: 18px;
  color: var(--parchment);
  line-height: 1.6;
}

/* TIMELINE */
#timeline {
  background: var(--parchment-dark);
}

.timeline-entries {
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 139px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--vermillion), var(--gold), transparent);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  margin-bottom: 36px;
  align-items: start;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s, transform 0.6s;
}

.timeline-entry.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--vermillion);
  text-align: right;
  padding-right: 24px;
  padding-top: 4px;
  position: relative;
}

.timeline-year::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 14px;
  width: 10px;
  height: 10px;
  background: var(--vermillion);
  border-radius: 50%;
  border: 2px solid var(--parchment-dark);
}

.timeline-body {
  background: var(--pale);
  padding: 20px 24px;
  font-size: 21px;
  color: var(--ink);
  line-height: 1.7;
}

.timeline-body strong {
  color: var(--vermillion);
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.timeline-note {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--ink);
  color: rgba(246, 237, 224, 0.85);
  font-size: 19.5px;
  line-height: 1.8;
  border-left: 4px solid var(--gold);
}

.timeline-note strong {
  color: var(--gold);
}

/* SOCIAL TRENDS */
#social-trends {
  background: var(--pale);
}

.theme-evo-row {
  display: grid;
  grid-template-columns: 190px 1fr 210px;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s, transform 0.5s;
}

.theme-evo-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.theme-evo-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--ink);
  text-align: right;
  line-height: 1.45;
}

.theme-evo-track {
  position: relative;
  height: 38px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.theme-evo-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s 0.4s;
}

.theme-evo-bar.anim {
  opacity: 1;
}

.theme-evo-bar-label {
  font-family: 'Spectral SC', serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-evo-desc {
  font-size: 17.5px;
  color: var(--muted);
  line-height: 1.6;
}

.theme-evo-desc strong {
  color: var(--ink);
  font-family: 'Playfair Display', serif;
}

.theme-evo-period {
  font-family: 'Spectral SC', serif;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--gold);
  display: block;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.evo-axis {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cream-mid);
  margin-bottom: 28px;
  margin-left: 210px;
  margin-right: 230px;
}

.evo-axis span {
  font-family: 'Spectral SC', serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--muted);
}


/* SOURCE VIEWER */
.source-viewer {
  margin-top: 40px;
}

.source-viewer-label {
  font-family: 'Spectral SC', serif;
  font-size: 18px;
  letter-spacing: 0.25em;
  color: rgba(201, 146, 42, 0.7);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.source-viewer-label::after {
  content: '';
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: rgba(201, 146, 42, 0.4);
}

.source-viewer-note {
  font-family: 'Crimson Pro', serif;
  font-size: 23px;
  line-height: 1.65;
  color: rgba(246, 237, 224, 0.65);
  text-align: left;
  margin-bottom: 20px;
}

.source-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 0;
}

.source-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 20px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
  text-align: left;
}

.source-tab:hover {
  background: rgba(255, 255, 255, 0.07);
}

.source-tab.active {
  background: rgba(201, 146, 42, 0.1);
  border-color: rgba(201, 146, 42, 0.35);
  border-bottom-color: #1c1713;
}

.source-tab-num {
  font-family: 'Spectral SC', serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(201, 146, 42, 0.5);
}

.source-tab.active .source-tab-num {
  color: var(--gold);
}

.source-tab-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: rgba(246, 237, 224, 0.5);
  line-height: 1.2;
}

.source-tab.active .source-tab-name {
  color: var(--parchment);
}

.source-tab-type {
  font-size: 15px;
  color: rgba(246, 237, 224, 0.3);
  letter-spacing: 0.04em;
}

.source-tab.active .source-tab-type {
  color: rgba(201, 146, 42, 0.75);
}

.source-pdf-wrap {
  border: 1px solid rgba(201, 146, 42, 0.35);
  border-top: none;
  overflow: hidden;
}

.source-pdf-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #161210;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.source-pdf-chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.source-pdf-chrome-dot:nth-child(1) {
  background: rgba(181, 52, 26, 0.6);
}

.source-pdf-chrome-dot:nth-child(2) {
  background: rgba(201, 146, 42, 0.4);
}

.source-pdf-chrome-dot:nth-child(3) {
  background: rgba(90, 148, 112, 0.4);
}

.source-pdf-chrome-title {
  flex: 1;
  text-align: center;
  font-family: 'Spectral SC', serif;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: rgba(246, 237, 224, 0.35);
  text-transform: uppercase;
}

#sourcePdfFrame {
  display: block;
  width: 100%;
  height: 540px;
  border: none;
  background: #1a1410;
}

/* METHODOLOGY */
#methodology {
  background: var(--ink);
  color: var(--parchment);
  padding: 80px;
}

/* PIPELINE INTRO */
.pipeline-intro {
  font-family: 'Crimson Pro', serif;
  font-size: 26px;
  line-height: 1.5;
  color: rgba(246, 237, 224, 0.85);
  max-width: 1000px;
  margin: 64px auto 0;
  padding: 0 24px;
  text-align: center;
}

/* PIPELINE LAYOUT */
.pipeline-layout {
  display: grid;
  grid-template-columns: 820px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 56px;
}

.pipeline-diagram {
  position: sticky;
  top: 100px;
}

.pipeline-diagram img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.92;
  filter: brightness(1.05);
}

.pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipeline-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pipeline-step:last-child {
  border-bottom: none;
}

.pipeline-step-num {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 800;
  color: rgba(201, 146, 42, 0.18);
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
  text-align: right;
  padding-top: 2px;
}

.pipeline-step-body {
  flex: 1;
}

.pipeline-step-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}

.pipeline-step-body p {
  font-size: 20px;
  color: rgba(246, 237, 224, 0.6);
  line-height: 1.75;
  margin: 0;
}

.pipeline-step-body em {
  color: rgba(246, 237, 224, 0.45);
  font-style: italic;
}

.pipeline-step-body code {
  font-family: 'Spectral SC', serif;
  font-size: 16px;
  color: var(--gold);
  background: rgba(201, 146, 42, 0.1);
  padding: 1px 6px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.pipeline-illustrations {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  margin-top: 56px;
  border: 1px solid rgba(201, 146, 42, 0.25);
  background: rgba(201, 146, 42, 0.06);
}

.pipeline-illus-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pipeline-illus-wrap {
  flex: 1;
  height: 260px;
  overflow: hidden;
  background: rgba(246, 237, 224, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.pipeline-illus-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: transform 0.3s;
}

.pipeline-illus-wrap img:hover {
  transform: scale(1.03);
}

.pipeline-illus-caption {
  font-family: 'Spectral SC', serif;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: rgba(201, 146, 42, 0.65);
  text-transform: uppercase;
  text-align: center;
  padding: 10px 8px;
  border-top: 1px solid rgba(201, 146, 42, 0.15);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.pipeline-illus-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 22px;
  color: rgba(201, 146, 42, 0.4);
  flex-shrink: 0;
  border-left: 1px solid rgba(201, 146, 42, 0.15);
  border-right: 1px solid rgba(201, 146, 42, 0.15);
}

/* FOOTER */
footer {
  background: #110e0b;
  padding: 48px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(246, 237, 224, 0.4);
  font-size: 17px;
  letter-spacing: 0.05em;
}

footer span {
  font-family: 'Spectral SC', serif;
}

/* SCROLL ANIMATION */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
  nav {
    padding: 16px 24px;
  }

  .nav-links {
    display: none;
  }

  section {
    padding: 64px 24px;
  }

  .hero-columns {
    grid-template-columns: 1fr;
  }

  .hero-right {
    min-height: 400px;
  }

  .hero-poem {
    padding: 64px 24px;
  }

  .hero-left {
    padding: 80px 24px 48px;
  }

  .project-motivation {
    padding: 48px 24px;
    max-width: 100%;
    width: 100%;
  }

  .project-motivation::before,
  .project-motivation::after {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .citations-grid {
    grid-template-columns: 1fr;
  }

  .analytical-framing-inner {
    padding: 32px 22px 36px;
  }

  .analytical-framing-inner::before {
    left: 22px;
    right: 22px;
  }

  .analytical-framing-grid {
    grid-template-columns: 1fr;
  }

  .analytical-pillar {
    padding: 28px 22px 30px;
  }

  .analytical-framing {
    margin-bottom: 56px;
  }

  .length-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-layout {
    grid-template-columns: 1fr;
  }

  .pipeline-diagram {
    position: static;
    width: 130%;
    margin: 0 0 48px -15%;
  }

  #methodology {
    padding: 64px 24px;
  }

  footer {
    flex-direction: column;
    gap: 12px;
    padding: 32px 24px;
  }

  .timeline-entry {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }

  .timeline-line {
    left: 79px;
  }

  .theme-evo-row {
    grid-template-columns: 1fr;
  }

  .theme-evo-name {
    text-align: left;
  }

  .evo-axis {
    margin-left: 0;
    margin-right: 0;
  }

  .pipeline-illustrations {
    flex-direction: column;
  }

  .pipeline-illus-arrow {
    display: none;
  }
}