/* =========================================================================
   QUANTA STUDENT CAPITAL — SITE STYLESHEET
   -------------------------------------------------------------------------
   Table of contents:
     1. CSS variables / design tokens
     2. Reset & base elements
     3. Layout helpers (container, section, grid)
     4. Typography helpers
     5. Buttons
     6. Navigation
     7. Hero
     8. Cards (research, team, topic)
     9. Equation cards
     10. Chart / figure placeholders
     11. Process steps
     12. Forms (newsletter / contact)
     13. Footer
     14. Utility badges & tags
     15. Responsive breakpoints
   ========================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand colours (matches Quanta Student Capital research paper branding) */
  --navy: #10213b;
  --navy-mid: #3a5a8c;
  --gold: #bf953f;
  --gold-light: #e5c57a;
  --cream: #f5f1e8;
  --paper: #fbfaf7;
  --ink: #1b1b1b;
  --ink-soft: #4a4a4a;
  --line: #e2ddd0;
  --line-strong: #cfc8b4;
  --white: #ffffff;
  --success-bg: #eef3ec;
  --error-bg: #f6ecea;

  /* Typography */
  --font-serif: "Georgia", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;

  /* Layout */
  --max-width: 1180px;
  --max-width-narrow: 780px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 33, 59, 0.06), 0 1px 1px rgba(16, 33, 59, 0.04);
  --shadow-md: 0 6px 20px rgba(16, 33, 59, 0.08);
  --nav-height: 72px;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 var(--space-2);
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-2);
  color: var(--ink-soft);
}

/* Focus visibility for accessibility / keyboard nav */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-6) 0;
}

.section-tight {
  padding: var(--space-5) 0;
}

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

.section-header {
  max-width: 640px;
  margin: 0 0 var(--space-4);
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: var(--space-4);
}

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

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

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

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.eyebrow.on-dark {
  color: var(--gold-light);
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.text-center {
  text-align: center;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 0.85rem;
}

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: var(--space-4) 0;
}

.rule-gold {
  border: none;
  border-top: 2px solid var(--gold);
  width: 56px;
  margin: 0 0 var(--space-3);
}

.section-header.center .rule-gold {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: #16305a;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline.on-dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline.on-dark:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ---------- 6. Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}

.nav-brand img {
  height: 34px;
  width: 34px;
}

.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-brand .brand-text small {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--gold);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
  color: var(--navy);
}

/* ---------- 7. Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, #14274a 100%);
  color: var(--white);
  padding: var(--space-7) 0 var(--space-6);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 90% 70% at 60% 20%, black 40%, transparent 90%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  margin-bottom: var(--space-2);
}

.hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: var(--space-3);
}

.hero .desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: var(--space-4);
}

.hero-stats {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
}

.hero-stats .stat .num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--white);
  font-weight: 700;
}

.hero-stats .stat .label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Page header (used on inner pages instead of full hero) */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-6) 0 var(--space-5);
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-bottom: var(--space-1);
}

.page-header .desc {
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  font-size: 1.02rem;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-bottom: var(--space-2);
}

.breadcrumb a {
  color: var(--gold-light);
  border-bottom: 1px solid rgba(229, 197, 122, 0.4);
}

/* ---------- 8. Cards ---------- */
.topic-card,
.research-card,
.team-card,
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.topic-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: var(--space-1);
}

.topic-card .icon svg {
  width: 22px;
  height: 22px;
}

.topic-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.topic-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

/* Research card (featured, used on homepage) */
.research-card.featured {
  display: grid;
  grid-template-columns: 7px 1fr;
  padding: 0;
  overflow: hidden;
}

.research-card.featured .accent {
  background: linear-gradient(180deg, var(--gold) 0%, var(--navy) 100%);
}

.research-card.featured .body {
  padding: var(--space-5);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: var(--space-2);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.meta-row .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-soft);
}

.research-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.research-card .subtitle {
  font-family: var(--font-sans);
  font-style: italic;
  color: var(--navy-mid);
  font-size: 0.98rem;
  margin-bottom: var(--space-3);
}

/* Research archive list card */
.research-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: var(--space-4);
  align-items: center;
}

.research-item .index-num {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--line-strong);
  text-align: center;
}

.research-item.is-live .index-num {
  color: var(--gold);
}

.research-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.research-item .desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.research-item .actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  min-width: 150px;
}

.research-item.is-soon {
  opacity: 0.75;
}

.research-item.is-soon .index-num {
  color: var(--line-strong);
}

/* Team card */
.team-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.team-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-mid);
  margin-bottom: var(--space-2);
}

.team-card .avatar svg {
  width: 30px;
  height: 30px;
}

.team-card .name {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.08rem;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.team-card .school {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

.team-card .bio {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0.4rem 0 0.6rem;
}

/* ---------- 9. Equation cards ---------- */
.equation-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.equation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
}

.equation-card .eq-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-2);
}

.equation-card .eq-formula {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.equation-card .eq-formula sub {
  font-size: 0.65em;
}

.equation-card .eq-formula sup {
  font-size: 0.65em;
}

.equation-card .eq-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

/* ---------- 10. Chart / figure placeholders ---------- */
.figure-placeholder {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--cream);
  padding: var(--space-5) var(--space-3);
  text-align: center;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.figure-placeholder .ph-icon {
  width: 40px;
  height: 40px;
  color: var(--navy-mid);
  opacity: 0.6;
}

.figure-placeholder .ph-icon svg {
  width: 100%;
  height: 100%;
}

.figure-placeholder .ph-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.figure-placeholder code {
  display: inline-block;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--navy-mid);
}

/* ---------- 10b. Real figures (replaces figure-placeholder once a chart exists) ---------- */
.figure-image {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: var(--space-2);
  text-align: center;
}

.figure-image img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
  display: block;
}

.figure-image .fig-caption {
  margin: var(--space-2) 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- 11. Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
  position: relative;
}

.process-step {
  text-align: center;
  padding: var(--space-3) var(--space-1);
  position: relative;
}

.process-step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--navy);
  font-family: var(--font-serif);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-2);
  background: var(--white);
  position: relative;
  z-index: 1;
}

.process-step h4 {
  font-size: 0.96rem;
  margin-bottom: 0.25rem;
}

.process-step p {
  font-size: 0.82rem;
  margin-bottom: 0;
}

.process-line {
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--line-strong);
  z-index: 0;
}

/* ---------- 12. Forms ---------- */
.form-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.form-input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}

.form-input:focus {
  border-color: var(--navy-mid);
}

.form-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

.form-success {
  display: none;
  background: var(--success-bg);
  border: 1px solid #b9d0b3;
  color: #2f5230;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-top: var(--space-2);
}

.form-success.is-visible {
  display: block;
}

.form-error {
  display: none;
  background: var(--error-bg);
  border: 1px solid #dcb6ae;
  color: #7a3226;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-top: var(--space-2);
}

.form-error.is-visible {
  display: block;
}

.contact-block {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}

.contact-block:last-child {
  border-bottom: none;
}

.contact-block .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-block .icon svg {
  width: 20px;
  height: 20px;
}

.contact-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.contact-block p {
  margin-bottom: 0.5rem;
}

/* ---------- 13. Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-6) 0 var(--space-3);
  margin-top: var(--space-7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}

.footer-brand img {
  height: 30px;
  width: 30px;
  background: var(--white);
  border-radius: 50%;
}

.site-footer h5 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.55rem;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: var(--space-2);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-social a:hover {
  border-color: var(--gold-light);
  background: rgba(229, 197, 122, 0.1);
}

.footer-bottom {
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 720px;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

/* ---------- 14. Badges & tags ---------- */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.badge-category {
  background: var(--cream);
  color: var(--navy);
  border: 1px solid var(--line-strong);
}

.badge-live {
  background: #eaf3ea;
  color: #2f6b32;
}

.badge-soon {
  background: #f1eee5;
  color: #8a7a4e;
}

.toc-list a {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 600;
}

.toc-list a:hover {
  color: var(--navy-mid);
}

.toc-list li:last-child a {
  border-bottom: none;
}

.placeholder-note {
  background: #fbf3e0;
  border: 1px solid #eadcae;
  color: #6b5a25;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin: var(--space-2) 0 var(--space-3);
}

.article-section {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
}

.article-section:last-of-type {
  border-bottom: none;
}

.article-section h2 {
  font-size: 1.5rem;
}

.article-section .section-index {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: block;
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .process {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
  }
}

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .research-item {
    grid-template-columns: 60px 1fr;
  }

  .research-item .actions {
    grid-column: 1 / -1;
    flex-direction: row;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-cta .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: var(--space-2) var(--space-3) var(--space-3);
  }

  .site-header.is-open .nav-links a {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .nav-cta {
    display: flex;
    position: absolute;
    top: calc(var(--nav-height) + 210px);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 0 var(--space-3) var(--space-3);
  }

  .site-header.is-open .nav-cta .btn {
    display: inline-flex;
    width: 100%;
  }

  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .process-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    text-align: left;
  }

  .process-step .step-num {
    margin: 0;
    flex-shrink: 0;
  }

  .process-line {
    display: none;
  }

  .research-card.featured {
    grid-template-columns: 1fr;
  }

  .research-card.featured .accent {
    height: 6px;
  }

  .research-card.featured .body {
    padding: var(--space-3);
  }

  .research-item {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .research-item .index-num {
    text-align: left;
  }

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

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

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-5) 0;
  }

  .hero {
    padding: var(--space-6) 0 var(--space-5);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-row .btn {
    width: 100%;
  }
}
