:root {
  --bg: #0d1117;
  --bg-soft: #111827;
  --panel: #161b22;
  --panel-2: #1c2330;
  --text: #e6edf3;
  --muted: #a9b4c0;
  --line: #2b3442;
  --accent: #d8b36a;
  --accent-soft: rgba(216, 179, 106, 0.12);
  --max: 1160px;
  --narrow: 820px;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(var(--narrow), 100%);
  margin: 0 auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

nav a.active {
  color: var(--text);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--text);
}

/* TYPOGRAPHY */

.eyebrow,
.section-kicker,
.panel-label,
.kicker,
.meta-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
}

.section h1 {
  font-size: 2.8rem;
  margin: 0 0 20px;
}

.section h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.section p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

/* HERO */

.hero {
  padding: 6rem 0 4rem;
  background:
    radial-gradient(circle at top right, rgba(216, 179, 106, 0.16), transparent 34%),
    linear-gradient(180deg, #0f1520 0%, var(--bg) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.08;
  margin: 0 0 1.2rem;
  max-width: 12ch;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 58ch;
  margin-bottom: 1.5rem;
}

.thesis {
  font-size: 1.25rem;
  margin-bottom: 1.8rem;
}

.thesis span {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  display: inline-block;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: #111;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-book-cover {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
}

/* PANELS / CARDS */

.hero-panel .panel,
.book-card,
.framework-card,
.case-card,
.method-item,
.exhibit-card,
.source-item,
.status-item,
.timeline-item {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 1.5rem;
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
}

/* SIMPLE TRAJECTORY LIST */

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

.trajectory li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trajectory li:last-child {
  border-bottom: none;
}

.trajectory li::before {
  content: "↓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* SECTIONS */

.section {
  padding: 80px 20px;
}

.section-dark {
  background: var(--bg-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section.alt {
  background: #0f1726;
}

.section-heading {
  margin-bottom: 2rem;
  max-width: 58ch;
}

/* MODEL EXPLANATION + DIAGRAM */

.framework-visual {
  padding: 70px 20px 30px;
  background: #071225;
  text-align: center;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.8;
  color: #d7dde7;
}

.model-diagram-section {
  padding: 20px 20px 90px;
  background: #040b17;
}

.diagram-container {
  max-width: 1100px;
  margin: 0 auto;
}

.trajectory-diagram-large {
  display: flex;
  justify-content: center;
  align-items: center;
}

.trajectory-diagram-large img {
  width: 100%;
  max-width: 920px;
  height: auto;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* FRAMEWORK / CASE GRID */

.framework-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.framework-card,
.case-card {
  padding: 1.4rem;
}

.step-number {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.framework-card h3,
.case-card h3,
.exhibit-card h3,
.method-item h3,
.source-item h3,
.status-item h3,
.timeline-item h3 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
}

.case-card h3 a {
  color: var(--text);
  transition: color 0.2s ease;
}

.case-card h3 a:hover {
  color: var(--accent);
}

.center-link {
  text-align: center;
  margin-top: 2rem;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

/* TWO COLUMN */

.two-col {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

/* BOOK */

.book-subtitle {
  color: var(--accent) !important;
  font-style: italic;
  margin-top: -0.2rem;
}

.book-card {
  padding: 1.25rem;
}

.book-cover-live {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.book-cover-placeholder {
  aspect-ratio: 2 / 3;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(216, 179, 106, 0.12), rgba(255, 255, 255, 0.02)),
    #11161f;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.book-cover-inner {
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  border: 1px solid rgba(216, 179, 106, 0.3);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cover-top {
  color: var(--text);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.cover-middle {
  color: var(--muted);
  font-size: 0.95rem;
}

.cover-bottom {
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* TAGS */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.tag-list span {
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
}

/* OPTIONAL SIMPLE DIAGRAM BLOCKS */

.diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.diagram-step {
  width: min(520px, 100%);
  padding: 1rem 1.3rem;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.diagram-arrow {
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}

.figure img {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  border-radius: 10px;
}

/* RESEARCH EXHIBITS */

.exhibits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.exhibit-card {
  padding: 1.2rem;
}

.exhibit-image-wrap {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.exhibit-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.exhibit-card p {
  margin: 0;
}

.exhibit-placeholder {
  min-height: 220px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.exhibit-placeholder span {
  color: var(--accent);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* METHODOLOGY */

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 2rem;
}

.method-item {
  padding: 1.2rem;
}

.method-item p {
  margin: 0;
}

/* PROJECT STATUS */

.status-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.8rem;
}

.status-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
}

.status-dot,
.timeline-marker {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(216, 179, 106, 0.12);
}

.status-dot {
  margin-top: 0.45rem;
}

.status-item p {
  margin: 0;
}

/* RESEARCH PAGE */

.research-hero {
  padding-bottom: 3.5rem;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.source-item {
  padding: 1.2rem;
}

.source-item p {
  margin: 0;
}

/* CASE PAGE */

.case-hero {
  padding-bottom: 3.5rem;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.8rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
}

.timeline-marker {
  margin-top: 0.5rem;
}

.timeline-item p {
  margin: 0;
}

/* CASE METADATA PANEL */

.case-meta {
  padding-top: 24px;
  padding-bottom: 16px;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.meta-label {
  margin-bottom: 8px;
  opacity: 0.85;
}

.meta-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.case-type {
  margin-top: 12px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* FOOTER */

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #0a0f15;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-inner p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

/* COMPARATIVE ANALYSIS TABLE */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.analysis-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
}

.analysis-table th,
.analysis-table td {
  padding: 1rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.analysis-table th {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.02);
}

.analysis-table td {
  color: var(--text);
}

.analysis-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.analysis-table a {
  color: var(--text);
  font-weight: 700;
}

.analysis-table a:hover {
  color: var(--accent);
}

/* HOMEPAGE MATRIX PREVIEW */

.homepage-matrix-preview {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.homepage-matrix-preview .analysis-table {
  min-width: 0;
}

.homepage-matrix-preview .analysis-table th,
.homepage-matrix-preview .analysis-table td {
  padding: 1rem 1.25rem;
}

.homepage-matrix-preview .analysis-table td:first-child {
  font-weight: 700;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .framework-grid,
  .case-grid,
  .exhibits-grid,
  .method-grid,
  .source-list,
  .case-meta-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-book-cover,
  .book-cover-live,
  .book-cover-placeholder {
    margin-left: 0;
  }

  .hero-panel,
  .book-card {
    display: flex;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
  }

  .trajectory-diagram-large img {
    max-width: 100%;
  }

  .nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.9rem 0;
    min-height: auto;
  }

  .brand {
    text-align: center;
  }

  nav {
    justify-content: center;
    gap: 0.85rem 1rem;
  }

  nav a {
    font-size: 0.93rem;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 0.8rem 0;
    gap: 0.7rem;
  }

  .brand {
    font-size: 1rem;
    line-height: 1.2;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.55rem 0.75rem;
  }

  nav a {
    display: block;
    text-align: center;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.9rem;
    line-height: 1.2;
  }

  nav a.active {
    border-bottom: none;
    border-color: rgba(216, 179, 106, 0.35);
    background: rgba(216, 179, 106, 0.12);
    color: var(--accent);
  }

  .hero,
  .section {
    padding-left: 0;
    padding-right: 0;
  }

  .framework-visual {
    padding: 56px 16px 24px;
  }

  .model-diagram-section {
    padding: 16px 16px 64px;
  }

  .section-title {
    font-size: 2rem;
  }

  .analysis-table {
    min-width: 720px;
  }
}
