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

/* Variables */
:root {
  --bg: #FAFAF8;
  --text: #1A1A1A;
  --accent: #1E3A5F;
  --gold: #E8B931;
  --muted: #6B6B6B;
  --border: #E0DED8;
  --section-alt: #F4F3F0;
  --max-width: 720px;
}

/* Base */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-dot {
  color: var(--gold);
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--section-alt);
}

.section-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
}

/* Studio Pillars */
.studio-pillars {
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pillar {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.pillar h3 {
  font-size: 1.125rem;
}

/* Wide container for CLA table */
.container-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Tables */
.table-wrapper {
  margin: 2rem 0;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--section-alt);
}

/* CLA Table */
.cla-table .stage-idea {
  background: rgba(30, 58, 95, 0.05);
}

.cla-table .stage-idea td:nth-child(2) {
  font-weight: 600;
  color: var(--accent);
}

.cla-table .stage-highlight {
  background: rgba(232, 185, 49, 0.1);
  font-weight: 600;
}

.cla-table .stage-highlight td {
  border-bottom: 2px solid var(--gold);
}

.cla-table td:first-child {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--muted);
}

.cla-table td small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

/* Stage Zero block */
.stage-zero {
  background: var(--section-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Instrument subheadings */
.instrument-heading {
  margin-top: 2.5rem;
}

/* Terms grid (definition list) */
.terms-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0;
  font-size: 0.9375rem;
}

.terms-grid dt {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.125rem;
}

.terms-grid dd {
  color: var(--text);
}

/* Positioning table */
.positioning-table td:first-child {
  color: var(--accent);
  font-weight: 500;
}

.positioning-table td:last-child {
  color: var(--muted);
}

/* Portfolio */
.portfolio-group {
  margin-bottom: 2.5rem;
}

.portfolio-group:last-child {
  margin-bottom: 0;
}

.portfolio-group h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.portfolio-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.portfolio-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
}

.portfolio-domain {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Portfolio Graphs */
.portfolio-graphs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.portfolio-graph h3 {
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.portfolio-graph svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer */
.footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Journey */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}

.stage-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.stage-num {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  min-width: 1rem;
}

.stage-item strong {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
}

.stage-item small {
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
  font-weight: 400;
}

.journey-graph {
  margin: 2.5rem 0 0;
}

.journey-graph svg {
  width: 100%;
  height: auto;
  display: block;
}

.journey-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.journey-type {
  padding: 1.5rem;
  background: var(--section-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.journey-type-gold {
  color: #b8920e;
}

.journey-note {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  .nav-links {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  th, td {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
  }

  .container-wide {
    max-width: 100%;
  }

  .terms-grid {
    grid-template-columns: 1fr;
    gap: 0.25rem 0;
  }

  .terms-grid dt {
    margin-top: 0.75rem;
  }

  .terms-grid dt:first-child {
    margin-top: 0;
  }

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

  .journey-types {
    grid-template-columns: 1fr;
  }

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

  .portfolio-graphs {
    grid-template-columns: 1fr;
  }
}
