/* ==========================================================
   AIGP — Design System
   Editorial · Institutional · Refined
   ========================================================== */

:root {
  /* Palette */
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --ink-muted: #2a2a2a;
  --paper: #faf8f3;
  --paper-raw: #f0ede5;
  --line: #d9d4c7;
  --line-soft: #e8e4d8;
  --text: #1a1a1a;
  --text-muted: #5a5a55;
  --text-subtle: #8a8a85;
  --accent: #d4ff3a;       /* signal green-yellow — used sparingly */
  --accent-ink: #1a1a1a;
  --warn: #c94a2a;         /* deep terracotta */

  /* Typography */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;

  /* Scale */
  --step--2: clamp(0.75rem, 0.71rem + 0.22vw, 0.875rem);
  --step--1: clamp(0.875rem, 0.83rem + 0.22vw, 1rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --step-3: clamp(2rem, 1.75rem + 1.25vw, 2.75rem);
  --step-4: clamp(2.75rem, 2.25rem + 2.5vw, 4.5rem);
  --step-5: clamp(3.5rem, 2.75rem + 3.75vw, 6.5rem);

  /* Layout */
  --max-w: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-py: clamp(4rem, 8vw, 8rem);
}

/* ==========================================================
   Reset & Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Selection */
::selection { background: var(--accent); color: var(--accent-ink); }

/* ==========================================================
   Typography
   ========================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: 'SOFT' 50, 'WONK' 0, 'opsz' 144;
}

h1 { font-size: var(--step-5); letter-spacing: -0.035em; }
h2 { font-size: var(--step-4); letter-spacing: -0.028em; }
h3 { font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.15; }
h4 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.25; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 500;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--text);
  letter-spacing: -0.01em;
}

.italic-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ==========================================================
   Layout
   ========================================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: var(--section-py) 0; }

.hairline {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ==========================================================
   Nav
   ========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variation-settings: 'SOFT' 30, 'WONK' 1, 'opsz' 144;
}

.nav-logo em {
  font-style: italic;
  color: var(--text-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: var(--step--1);
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

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

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 1.25rem;
  border-radius: 2px;
  font-size: var(--step--1);
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--ink-muted); color: var(--paper); }

.nav-lang {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}
.nav-lang a.current { color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 1.5rem var(--gutter);
    border-bottom: 1px solid var(--line);
    gap: 1.25rem;
    align-items: flex-start;
  }
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(4rem, 10vw, 9rem);
  position: relative;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.hero-meta span { display: flex; align-items: center; gap: 0.5rem; }
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: 2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--text-muted);
  font-weight: 300;
}

.hero-sub {
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 46ch;
  color: var(--text);
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: var(--step-0);
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--ink-muted); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(212, 255, 58, 0.4); }

.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Decorative hero mark */
.hero-mark {
  position: absolute;
  right: calc(var(--gutter) * -1);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(12rem, 30vw, 28rem);
  color: var(--line-soft);
  font-style: italic;
  font-weight: 300;
  pointer-events: none;
  opacity: 0.5;
  z-index: -1;
  letter-spacing: -0.05em;
  user-select: none;
}

/* ==========================================================
   Marquee
   ========================================================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
  overflow: hidden;
  background: var(--paper-raw);
}

.marquee-track {
  display: flex;
  animation: scroll 60s linear infinite;
  white-space: nowrap;
  gap: 3rem;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--text-muted);
  font-weight: 300;
}
.marquee-item::before { content: '·'; margin-right: 3rem; color: var(--accent); font-style: normal; font-weight: 700; }

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================
   Pillars (3 filary na home + landing)
   ========================================================== */
.pillars {
  background: var(--ink);
  color: var(--paper);
}

.pillars .section-head {
  max-width: 50ch;
  margin-bottom: 4rem;
}

.pillars h2 { color: var(--paper); }
.pillars .eyebrow { color: var(--accent); }
.pillars .lead { color: rgba(250, 248, 243, 0.75); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(250, 248, 243, 0.15);
  border: 1px solid rgba(250, 248, 243, 0.15);
}

@media (max-width: 860px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

.pillar {
  background: var(--ink);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  min-height: 420px;
  transition: background 0.3s;
}

.pillar:hover { background: var(--ink-soft); }

.pillar-number {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--accent);
  letter-spacing: 0.1em;
}

.pillar h3 {
  color: var(--paper);
  font-size: var(--step-2);
}

.pillar p {
  color: rgba(250, 248, 243, 0.7);
  font-size: var(--step--1);
  line-height: 1.6;
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: var(--step--1);
  color: rgba(250, 248, 243, 0.85);
  margin-top: auto;
}

.pillar-list li {
  padding-left: 1.25rem;
  position: relative;
}

.pillar-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ==========================================================
   Sectors grid
   ========================================================== */
.sectors {
  background: var(--paper);
}

.section-head {
  max-width: 60ch;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-head .eyebrow { margin-bottom: 1.5rem; display: block; }
.section-head h2 { margin-bottom: 1.5rem; }

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.sector-card {
  background: var(--paper);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.25s;
  text-decoration: none;
  color: inherit;
  min-height: 260px;
  position: relative;
}

.sector-card:hover {
  background: var(--paper-raw);
}

.sector-card.featured {
  background: var(--ink);
  color: var(--paper);
}

.sector-card.featured:hover {
  background: var(--ink-soft);
}

.sector-card.featured h3 { color: var(--paper); }
.sector-card.featured p { color: rgba(250, 248, 243, 0.75); }
.sector-card.featured .sector-arrow { color: var(--accent); }

.sector-num {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--text-subtle);
  letter-spacing: 0.1em;
}
.sector-card.featured .sector-num { color: rgba(250, 248, 243, 0.5); }

.sector-card h3 {
  font-size: var(--step-2);
  margin-bottom: 0.5rem;
}

.sector-card p {
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.55;
}

.sector-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.sector-card:hover .sector-arrow { gap: 0.75rem; }

/* ==========================================================
   Approach
   ========================================================== */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 5rem);
}

@media (max-width: 860px) {
  .approach-grid { grid-template-columns: 1fr; }
}

.approach-steps {
  display: flex;
  flex-direction: column;
}

.approach-step {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.approach-step:last-child { border-bottom: 1px solid var(--line); }

.approach-step-num {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-style: italic;
  color: var(--text-subtle);
  line-height: 1;
  font-weight: 300;
  min-width: 3ch;
}

.approach-step h4 {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
}

.approach-step p {
  color: var(--text-muted);
  font-size: var(--step-0);
  max-width: 55ch;
}

/* ==========================================================
   Quote block
   ========================================================== */
.quote-block {
  background: var(--paper-raw);
  padding: clamp(4rem, 8vw, 8rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-block blockquote {
  margin: 0;
  max-width: 28ch;
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.2;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.quote-block blockquote::before {
  content: '"';
  font-size: 2em;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.35em;
  margin-right: 0.1em;
  font-style: normal;
}

.quote-attribution {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ==========================================================
   About
   ========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-text p {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1.25em;
  max-width: 52ch;
  letter-spacing: -0.005em;
}

.about-text p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 4em;
  float: left;
  line-height: 0.85;
  margin: 0.1em 0.1em 0 0;
  font-weight: 400;
  color: var(--ink);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}

.stat { border-top: 1px solid var(--line); padding-top: 1rem; }

.stat-num {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 144;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ==========================================================
   Insights preview (cards)
   ========================================================== */
.insights {
  background: var(--paper);
}

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

@media (max-width: 860px) {
  .insights-grid { grid-template-columns: 1fr; }
}

.insight-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  transition: transform 0.2s;
}

.insight-card:hover { transform: translateY(-3px); }

.insight-meta {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
}

.insight-card h3 {
  font-size: var(--step-1);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.insight-card p {
  color: var(--text-muted);
  font-size: var(--step--1);
  line-height: 1.55;
}

.insight-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}

/* ==========================================================
   Contact / CTA
   ========================================================== */
.contact {
  background: var(--ink);
  color: var(--paper);
}

.contact h2 { color: var(--paper); max-width: 22ch; }
.contact .lead { color: rgba(250, 248, 243, 0.75); max-width: 48ch; }
.contact .eyebrow { color: var(--accent); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 248, 243, 0.6);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(250, 248, 243, 0.2);
  color: var(--paper);
  font-family: inherit;
  font-size: var(--step-0);
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23faf8f3' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.form-select option { background: var(--ink); color: var(--paper); }

.form-textarea { resize: vertical; min-height: 100px; }

.contact-meta {
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 248, 243, 0.15);
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: var(--step--1);
  color: rgba(250, 248, 243, 0.75);
}

.contact-meta a { color: var(--accent); }

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  background: var(--ink);
  color: rgba(250, 248, 243, 0.6);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(250, 248, 243, 0.1);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer h5 {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  margin: 0 0 1.25rem;
  font-weight: 500;
}

.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; font-size: var(--step--1); }
.footer a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 248, 243, 0.1);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--paper);
  letter-spacing: -0.02em;
  font-weight: 500;
}
.footer-wordmark em { font-style: italic; color: rgba(250, 248, 243, 0.5); font-weight: 400; }

/* ==========================================================
   Sector landing page specific
   ========================================================== */
.sector-hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--ink); }

.sector-hero h1 {
  font-size: var(--step-4);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

.sector-hero h1 em {
  font-style: italic;
  color: var(--text-muted);
  font-weight: 300;
}

.sector-hero-sub {
  font-size: var(--step-1);
  max-width: 52ch;
  color: var(--text);
  margin-bottom: 2.5rem;
  line-height: 1.45;
}

.sector-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .sector-hero-grid { grid-template-columns: 1fr; }
}

.sector-hero-sidecard {
  background: var(--paper-raw);
  padding: 2rem;
  border-top: 3px solid var(--accent);
}

.sector-hero-sidecard h5 {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sector-hero-sidecard ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sector-hero-sidecard li {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--text);
}

.sector-hero-sidecard li:last-child { border-bottom: none; padding-bottom: 0; }

.sector-hero-sidecard strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-0);
  font-weight: 400;
  margin-bottom: 0.2rem;
}

/* Challenge / Solution blocks */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.col-head .eyebrow { margin-bottom: 1rem; display: block; }
.col-head h3 { margin-bottom: 1.5rem; }
.col-head p { font-size: var(--step-0); color: var(--text-muted); line-height: 1.6; max-width: 45ch; }

.challenge-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  counter-reset: challenge;
}

.challenge-list li {
  counter-increment: challenge;
  padding-left: 3rem;
  position: relative;
}

.challenge-list li::before {
  content: counter(challenge, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--accent);
  font-weight: 600;
}

.challenge-list h4 {
  font-size: var(--step-1);
  margin-bottom: 0.4rem;
}

.challenge-list p {
  color: var(--text-muted);
  font-size: var(--step--1);
  line-height: 1.55;
}

/* Case studies */
.cases {
  background: var(--paper-raw);
}

.case-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.case-item:last-child { border-bottom: none; }

@media (max-width: 860px) {
  .case-item { grid-template-columns: 1fr; }
}

.case-meta-col .eyebrow { margin-bottom: 1rem; display: block; }
.case-meta-col h4 {
  font-size: var(--step-2);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.case-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 0.75rem;
}

.case-body p {
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 60ch;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.case-metric-num {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  margin-bottom: 0.4rem;
  font-variation-settings: 'SOFT' 0;
}

.case-metric-label {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Funding pathways */
.funding {
  background: var(--paper);
}

.funding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.funding-card {
  padding: 2rem;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s;
}

.funding-card:hover { border-color: var(--ink); }

.funding-card .eyebrow { color: var(--accent-ink); background: var(--accent); padding: 0.3rem 0.6rem; align-self: flex-start; }

.funding-card h4 {
  font-size: var(--step-1);
}

.funding-card p {
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.55;
}

.funding-card .funding-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ==========================================================
   Article / Insight pages
   ========================================================== */
.article {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
}

.article-header {
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.article-header .eyebrow { margin-bottom: 1.5rem; display: block; }

.article-header h1 {
  font-size: var(--step-4);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.article-header .lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.article-byline {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-body {
  max-width: 42rem;
  margin: 0 auto;
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--text);
}

.article-body > * { margin-bottom: 1.5em; }
.article-body h2 {
  font-size: var(--step-2);
  margin: 2.5em 0 0.8em;
  letter-spacing: -0.02em;
}
.article-body h3 {
  font-size: var(--step-1);
  margin: 2em 0 0.6em;
  letter-spacing: -0.015em;
}

.article-body p { margin: 0 0 1.5em; }

.article-body strong { font-weight: 600; color: var(--ink); }

.article-body em { font-family: var(--font-display); font-style: italic; }

.article-body ul, .article-body ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.article-body li { margin-bottom: 0.5em; }

.article-body blockquote {
  margin: 2em 0;
  padding: 1.5em 2em;
  border-left: 3px solid var(--accent);
  background: var(--paper-raw);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.article-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  transition: background 0.2s;
}
.article-body a:hover { background: var(--accent); }

.article-body .callout {
  border: 1px solid var(--line);
  padding: 1.75rem;
  background: var(--paper-raw);
  font-size: var(--step-0);
  line-height: 1.6;
  margin: 2em 0;
  font-style: normal;
}

.article-body .callout strong {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Table of contents */
.toc {
  margin: 2em 0;
  padding: 1.5em 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.toc-label {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.toc ol {
  list-style: none;
  padding: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

.toc li {
  counter-increment: toc;
  position: relative;
  padding-left: 2.5rem;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--text-subtle);
}

.toc a {
  border-bottom: none;
  color: var(--text);
}

.toc a:hover { color: var(--ink); background: transparent; }

/* Related articles on sector pages */
.related-insights {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

/* ==========================================================
   Utilities
   ========================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.hidden { display: none; }

@media (max-width: 860px) {
  .hide-mobile { display: none; }
}

/* Subtle reveal animation */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }
}
