/* ============================================================
   EQUITY RESEARCH PORTFOLIO — Institutional Design
   Inspired by professional research archives
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&display=swap');

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

:root {
  --bg-primary:     #08090d;
  --bg-secondary:   #0d0f14;
  --bg-card:        #12141b;
  --bg-elevated:    #181b24;
  --bg-hover:       #1e2130;
  --border:         #252836;
  --border-subtle:  #1a1d28;
  --border-accent:  #2d3348;
  --text-primary:   #eaecf5;
  --text-secondary: #9499b3;
  --text-muted:     #5c6180;
  --accent:         #7b93ff;
  --accent-soft:    rgba(123, 147, 255, 0.08);
  --accent-medium:  rgba(123, 147, 255, 0.15);
  --green:          #3ee8a5;
  --green-soft:     rgba(62, 232, 165, 0.08);
  --green-border:   rgba(62, 232, 165, 0.2);
  --red:            #ff6b7a;
  --red-soft:       rgba(255, 107, 122, 0.08);
  --red-border:     rgba(255, 107, 122, 0.2);
  --gold:           #ffcc57;
  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:     'Source Serif 4', 'Georgia', serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;
  --max-width:      1200px;
  --nav-height:     56px;
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      14px;
}

html { font-size: 15px; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #99b0ff; }

::selection { background: rgba(123, 147, 255, 0.25); }

/* ── Typography ────────────────────────────────────────────── */
h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}
h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}
h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

p { margin-bottom: 1rem; color: var(--text-secondary); }

.label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ── Tag Pills ─────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
}
.tag.accent { color: var(--accent); border-color: rgba(123,147,255,0.2); background: var(--accent-soft); }
.tag.green { color: var(--green); border-color: var(--green-border); background: var(--green-soft); }

/* ── Navigation ────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(8, 9, 13, 0.8);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
}
nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .nav-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
nav .nav-logo span { color: var(--text-muted); font-weight: 400; font-family: var(--font-sans); font-size: 0.85rem; }

nav .nav-links { display: flex; gap: 0.35rem; align-items: center; }

nav .nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: all 0.2s;
}
nav .nav-links a:hover { color: var(--text-secondary); background: var(--bg-elevated); }
nav .nav-links a.active { color: var(--text-primary); background: var(--bg-elevated); }

.hamburger { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 6px; border-radius: 6px; }
.hamburger:hover { background: var(--bg-elevated); }
.hamburger svg { width: 20px; height: 20px; }

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

main { padding-top: calc(var(--nav-height) + 2.5rem); padding-bottom: 5rem; }

.page-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 3.5rem;
}
.page-grid .page-content { min-width: 0; }

/* ── Table of Contents ─────────────────────────────────────── */
.toc {
  position: sticky;
  top: calc(var(--nav-height) + 2.5rem);
  align-self: start;
  max-height: calc(100vh - var(--nav-height) - 5rem);
  overflow-y: auto;
  padding-top: 0.5rem;
}
.toc h4 { margin-bottom: 1rem; }
.toc ul { list-style: none; }
.toc li { margin-bottom: 0.15rem; }
.toc a {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: all 0.15s;
}
.toc a:hover { color: var(--text-secondary); background: var(--bg-card); border-left-color: var(--border); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); }

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  padding: 0 0 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}
.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero .company-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}
.hero .ticker-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(123,147,255,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-left: 0.75rem;
  vertical-align: middle;
}
.hero .meta-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.hero .rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-sm);
}
.rec-badge.buy {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.metric-cell {
  padding: 1.15rem 1.25rem;
  border-right: 1px solid var(--border-subtle);
}
.metric-cell:last-child { border-right: none; }
.metric-cell .label { display: block; margin-bottom: 0.35rem; }
.metric-cell .value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.metric-cell .value.green { color: var(--green); }
.metric-cell .sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ── Sections ──────────────────────────────────────────────── */
.section { margin-bottom: 3.5rem; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.section-label .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(123,147,255,0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.section-label .line {
  width: 32px;
  height: 1px;
  background: var(--border);
}

.section h2 { margin-bottom: 1.25rem; }

.section-divider {
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: 1.5rem;
}

/* ── Callout ───────────────────────────────────────────────── */
.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.75rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Pillar Cards ──────────────────────────────────────────── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.2s;
}
.pillar-card:hover { border-color: var(--border-accent); background: var(--bg-elevated); }
.pillar-card .pillar-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}
.pillar-card h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.pillar-card p { font-size: 0.87rem; color: var(--text-secondary); margin-bottom: 0; line-height: 1.65; }

/* ── Bullet List ───────────────────────────────────────────── */
.bullet-list { list-style: none; }
.bullet-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ── Tables ────────────────────────────────────────────────── */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
table.data-table th {
  background: var(--bg-elevated);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
}
table.data-table tr:last-child td { border-bottom: none; }
table.data-table td:first-child {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text-primary);
}
table.data-table tbody tr:hover { background: var(--bg-hover); }
table.data-table .highlight-cell { color: var(--green); font-weight: 700; }
table.data-table .accent-cell { color: var(--accent); font-weight: 700; }

table.data-table.compact td,
table.data-table.compact th { padding: 0.45rem 0.7rem; font-size: 0.76rem; }

.table-source {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  font-style: italic;
}

/* ── Valuation Cards ───────────────────────────────────────── */
.val-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.val-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: border-color 0.2s;
}
.val-card:hover { border-color: var(--border-accent); }
.val-card .val-method-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.val-card .val-row { display: flex; align-items: baseline; gap: 0.75rem; }
.val-card .val-price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.val-card .val-weight {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.val-card .val-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.blended-target {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}
.blended-target .bt-label { display: flex; flex-direction: column; gap: 0.1rem; }
.blended-target .bt-label .label { margin-bottom: 0; }
.blended-target .bt-label .wacc-note { font-size: 0.78rem; color: var(--text-muted); }
.blended-target .bt-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
}

/* ── Risk Cards ────────────────────────────────────────────── */
.risk-list { display: grid; gap: 0.85rem; }

.risk-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.1rem 1.5rem;
  transition: background 0.2s;
}
.risk-item:hover { background: var(--bg-elevated); }
.risk-item h3 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.risk-item p { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 0; line-height: 1.65; }

/* ── Downloads ─────────────────────────────────────────────── */
.downloads-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}
.download-btn:hover { background: var(--bg-elevated); border-color: var(--accent); color: var(--accent); }
.download-btn svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.6; }
.download-btn:hover svg { opacity: 1; }

/* ── Research Index Cards ──────────────────────────────────── */
.research-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.research-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.research-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.research-card:hover::before { opacity: 1; }

.research-card .card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.research-card .card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}
.research-card .card-ticker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.research-card .card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
.card-metric .label { display: block; margin-bottom: 0.2rem; font-size: 0.62rem; }
.card-metric .value { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.card-metric .value.green { color: var(--green); }

.card-highlights { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border-subtle); list-style: none; }
.card-highlights li {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.card-highlights li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.45rem;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.card-link:hover { gap: 0.6rem; }

/* ── Home Page ─────────────────────────────────────────────── */
.home-hero {
  text-align: center;
  padding: 5rem 0 3.5rem;
  position: relative;
}
.home-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--border);
}
.home-hero h1 { font-size: 3rem; margin-bottom: 0.6rem; }
.home-hero .subtitle {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.home-hero .school {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 3rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.home-stat {
  text-align: center;
  padding: 1.75rem 1rem;
  border-right: 1px solid var(--border-subtle);
}
.home-stat:last-child { border-right: none; }
.home-stat .value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.home-stat .label { margin-top: 0.35rem; display: block; }

/* ── Resume Page ───────────────────────────────────────────── */
.resume-section { margin-bottom: 3rem; }

.resume-entry { margin-bottom: 2rem; }
.resume-entry .entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.resume-entry .entry-title { font-weight: 600; font-size: 1rem; color: var(--text-primary); }
.resume-entry .entry-org { color: var(--accent); font-size: 0.92rem; }
.resume-entry .entry-meta { font-size: 0.78rem; color: var(--text-muted); }
.resume-entry .entry-sub { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 0.4rem; }
.resume-entry .entry-bullets { list-style: none; margin-top: 0.5rem; }
.resume-entry .entry-bullets li {
  padding-left: 1.1rem;
  position: relative;
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  line-height: 1.65;
}
.resume-entry .entry-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55rem;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}
.skill-group h4 { margin-bottom: 0.6rem; }
.skill-group p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* ── Contact ───────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: var(--border-accent); }
.contact-card .icon-wrap {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border: 1px solid rgba(123,147,255,0.12);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.contact-card .icon-wrap svg { width: 18px; height: 18px; color: var(--accent); }
.contact-card .contact-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; }
.contact-card .contact-value { font-size: 0.92rem; color: var(--text-primary); margin-top: 0.1rem; }

/* ── PDF Embed ─────────────────────────────────────────────── */
.pdf-embed {
  width: 100%;
  height: 720px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-metrics { grid-template-columns: repeat(3, 1fr); }
  .metric-cell:nth-child(3) { border-right: none; }
  .metric-cell:nth-child(4),
  .metric-cell:nth-child(5) { border-top: 1px solid var(--border-subtle); }
}

@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; }
  .toc { display: none; }
  .pillar-grid { grid-template-columns: 1fr; }
  .val-methods { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .research-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  html { font-size: 14px; }
  h1 { font-size: 2rem; }
  .container { padding: 0 1.25rem; }
  .hero .company-title { font-size: 1.6rem; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .metric-cell:nth-child(2),
  .metric-cell:nth-child(4) { border-right: none; }
  .metric-cell:nth-child(3),
  .metric-cell:nth-child(5) { border-top: 1px solid var(--border-subtle); }
  .card-metrics { grid-template-columns: repeat(2, 1fr); }
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .home-stat:nth-child(2) { border-right: none; }
  .home-stat:nth-child(3),
  .home-stat:nth-child(4) { border-top: 1px solid var(--border-subtle); }
  .home-hero h1 { font-size: 2rem; }
  nav .nav-links {
    display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--bg-primary); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1rem; gap: 0.25rem;
  }
  nav .nav-links.open { display: flex; }
  nav .nav-links a { padding: 0.6rem 1rem; }
  .hamburger { display: block; }
  .pdf-embed { height: 400px; }
  .blended-target { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
