/* =====================================================================
   VIR Insights, Inner page styles (services etc.)
   Matches main site's warm-paper + Inter Tight + Fraunces design system.
   ===================================================================== */

:root {
  --bg: #f4f1ec;
  --bg-elev: #faf8f4;
  --bg-sunk: #ece8e0;
  --ink: #0e0e0c;
  --ink-2: #2a2a26;
  --ink-3: #5a5a52;
  --ink-4: #8a8a80;
  --rule: #d8d2c6;
  --rule-soft: #e6e1d6;
  --accent: oklch(0.52 0.13 232);
  --accent-soft: oklch(0.95 0.025 232);
  --accent-ink: oklch(0.30 0.12 232);
  --signal: oklch(0.65 0.16 145);
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter Tight', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --t-fast: 180ms cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}

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

/* ── TOP BAR ────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
}

.topbar-back {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-back:hover { color: var(--ink); }

.topbar-cta {
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background var(--t-fast);
}

.topbar-cta:hover { background: var(--accent); }

/* ── CONTAINERS ─────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-tight {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── EYEBROW ────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.eyebrow--plain::before { display: none; }

/* ── HERO ───────────────────────────────────────────── */
.page-hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, black 30%, transparent 75%);
  pointer-events: none;
  opacity: 0.6;
}

.page-hero-meta {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.page-hero h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 18ch;
}

.page-hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.page-hero .lead {
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 60ch;
  letter-spacing: -0.005em;
}

/* ── SECTION ────────────────────────────────────────── */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
  align-items: end;
}

@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }

.h-section {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-top: 16px;
}

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

.body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 56ch;
}

.body + .body { margin-top: 16px; }

/* ── CAPABILITY GRID ────────────────────────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

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

.cap {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 36px 32px;
  background: var(--bg);
  transition: background var(--t-fast);
}

.cap:hover { background: var(--bg-elev); }

.cap-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  margin-bottom: 24px;
  display: block;
}

.cap h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin-bottom: 12px;
}

.cap p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ── PROCESS ────────────────────────────────────────── */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

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

.process-step {
  padding: 40px 28px;
  border-right: 1px solid var(--rule);
  position: relative;
}

.process-step:last-child { border-right: none; }

.process-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 24px;
}

.process-num::before {
  content: "·";
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.process-step h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.2;
}

.process-step p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ── METRICS ────────────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

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

.metric {
  padding: 36px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-elev);
}

.metric-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.metric-num {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 44px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-num em {
  font-family: var(--serif);
  font-style: italic;
}

.metric-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ── BULLET LIST ────────────────────────────────────── */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.bullet-list li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  padding-left: 28px;
  position: relative;
}

.bullet-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
}

.bullet-list li strong { color: var(--ink); font-weight: 500; }

/* ── CTA SECTION ────────────────────────────────────── */
.page-cta {
  padding: 96px 0;
  text-align: left;
}

.page-cta h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.028em;
  margin-bottom: 24px;
  max-width: 18ch;
}

.page-cta h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all var(--t-fast);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover { background: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

.btn-ghost:hover { border-color: var(--ink); background: var(--bg-elev); }

/* ── FOOTER ─────────────────────────────────────────── */
.page-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 56px 0 32px;
  margin-top: 0;
}

.page-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.page-footer-brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
}

.page-footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(243, 239, 229, 0.6);
  margin-top: 8px;
  max-width: 30ch;
}

.page-footer-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(243, 239, 229, 0.5);
}

/* ── SITE FOOTER (rich nav footer used by sub-pages) ── */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 32px;
}
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(243, 239, 229, 0.15);
}
@media (max-width: 800px) {
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer .footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  max-width: 30ch;
  color: rgba(243, 239, 229, 0.8);
  margin-top: 16px;
}
.site-footer .footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(243, 239, 229, 0.5);
  margin: 0 0 20px;
  font-weight: 400;
}
.site-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer .footer-col a {
  font-size: 14px;
  color: rgba(243, 239, 229, 0.85);
  text-decoration: none;
  transition: color var(--t-fast);
}
.site-footer .footer-col a:hover { color: var(--accent); }
.site-footer .footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(243, 239, 229, 0.5);
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 700px) {
  .topbar { padding: 14px 20px; }
  .container, .container-tight { padding: 0 20px; }
  .page-hero { padding: 56px 0; }
  .section { padding: 56px 0; }
  .page-cta { padding: 64px 0; }
}
