/* ===== FRONTLINE ANALYSTS — Global Stylesheet ===== */
/* Deduplicated from 5 merged page stylesheets. Single source of truth. */

/* ===== VARIABLES ===== */
:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --ink: #111318;
  --ink-soft: #2d303a;
  --mid: #5e616e;
  --quiet: #9295a0;
  --rule: #e4e2dd;
  --accent: #0e5c8e;
  --accent-hover: #0a7ab8;
  --accent-bg: #edf5fa;
  --warm: #f5f3ef;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
a:visited { color: inherit; }
.btn:visited { color: var(--ink); }
.btn-dark:visited { color: var(--bg); }
.nav-links a:visited { color: var(--mid); }
.nav-cta:visited { color: var(--bg) !important; }
.footer-col a:visited { color: var(--mid); }

body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: light only;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 3rem; }

/* ===== WIDTH SYSTEM =====
   Four tiers. No exceptions. No inline overrides.
   
   900px  — Homepage hero H1 only
   860px  — Subpage hero H1s, section headings
   720px  — Body text, articles, prose, tiers intro, blog meta
   600px  — Hero subtitle, page ledes, footer brand
   
   The container (1160px) holds grids and cards at full width.
   Everything else uses one of the four tiers.
   NEVER add inline max-width to a <p> tag — the global rule handles it.
   NEVER use ch-based units — they fight px containers.
*/

/* Tier: 720px — body text (global catch-all) */
.section .container > p,
.prose,
.tiers-intro,
.content-page-title,
.content-body,
.content-wrapper,
.blog-meta {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(250, 249, 247, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 3rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: 'Newsreader', serif;
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--mid);
  font-size: 1.18rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .active { color: var(--ink); font-weight: 600; }

.nav-cta {
  background: var(--ink) !important;
  color: var(--bg) !important;
  padding: 0.48rem 1.2rem;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--ink-soft) !important; }

/* ===== INLINE CTA ===== */
.inline-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.inline-cta span:first-child {
  font-size: 1.14rem;
  font-weight: 600;
  color: var(--ink);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1.14rem;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
  font-family: 'Instrument Sans', sans-serif;
}
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-light { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); }
.btn-light:hover { border-color: var(--ink); }
.btn-arrow { font-size: 1.12rem; transition: transform 0.15s; }
.btn:hover .btn-arrow { transform: translateX(2px); }

/* ===== SHARED SECTION ===== */
.section { padding: 5rem 0; }
.section-rule { height: 1px; background: var(--rule); margin: 0 3rem; }

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 0.8rem;
}

.section-heading {
  font-family: 'Newsreader', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-wrap: balance;
}

/* Typography: orphan control */
h1, h2, h3, blockquote, .hero-body, .section-heading, .tier-desc, .lead { text-wrap: balance; }

/* Typography: tabular numerals */
.num, .stat-block .num, .metric-val { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }

/* Typography: measure caps */
.prose p, .content-body p, .diff-item p, .training-text p { }
.hero-body, .lead { max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== HOMEPAGE HERO ===== */
.hero {
  padding: 9.5rem 0 5rem;
  text-align: center;
}

.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: up 0.6s 0.1s forwards;
}

.hero h1 {
  font-family: 'Newsreader', serif;
  font-size: clamp(3.2rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 900px;
  margin: 0 auto 2rem;
  text-wrap: balance;
  opacity: 0;
  animation: up 0.6s 0.2s forwards;
}

.hero-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  animation: up 0.6s 0.35s forwards;
}

.hero-body {
  font-size: 1.32rem;
  line-height: 1.7;
  color: var(--mid);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  justify-content: center;
}
.hero-actions .btn { white-space: nowrap; }

/* Hero right / clients */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.hero-right .clients-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--quiet);
}
.client-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.client-pill {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.client-pill:hover { opacity: 1; }

/* ===== PAGE HERO (all inner pages) ===== */
.page-hero {
  padding: 10rem 0 4rem;
  text-align: left;
}
.page-hero .section-label {
  margin-bottom: 0.8rem;
}
.page-hero h1 {
  font-family: 'Newsreader', serif;
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 860px;
  margin-bottom: 1.5rem;
}
.page-hero .lead {
  font-size: 1.22rem;
  line-height: 1.7;
  color: var(--mid);
  max-width: 600px;
}

/* Centred variant — AI, The Humans, How We Work, Our World View */
.page-hero-centred {
  text-align: center;
}
.page-hero-centred h1 {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.page-hero-centred .lead {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure body sections stay left-aligned */
/* section headings inherit container text-align */
/* section labels inherit alignment */

/* ===== PHOTO STRIP ===== */
.photo-strip {
  margin: 0 3rem;
  height: 340px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.75) contrast(1.04);
}
.photo-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(transparent, rgba(17, 19, 24, 0.6));
  border-radius: 0 0 10px 10px;
}
.photo-caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
}

/* ===== THE DIFFERENCE (homepage) ===== */
.diff-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}
.diff-items { display: flex; flex-direction: column; gap: 2.2rem; }
.diff-item { position: relative; padding-left: 1.4rem; }
.diff-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0.35rem;
  width: 4px;
  height: calc(100% - 0.35rem);
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.2;
  transition: opacity 0.3s;
}
.diff-item:hover::before { opacity: 0.6; }
.diff-item h3 {
  font-family: 'Newsreader', serif;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.diff-item p { font-size: 1.14rem; line-height: 1.6; color: var(--mid); }

/* Stats card */
.stats-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat-block { padding: 1rem; border-radius: 8px; background: var(--bg); }
.stat-block .num {
  font-family: 'Newsreader', serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}
.stat-block .label { font-size: 1.12rem; color: var(--quiet); line-height: 1.35; }

/* ===== THREE TIERS (homepage full) ===== */
.tiers-intro { margin-bottom: 2.5rem; }
.tiers-intro p { font-size: 1.18rem; line-height: 1.65; color: var(--mid); margin-top: 0.8rem; text-align: center; }
.tiers-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tier-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tier-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(14, 92, 142, 0.06); }
.tier-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 1rem;
}
.tier-card:nth-child(1) .tier-badge { background: var(--warm); color: var(--ink-soft); }
.tier-card:nth-child(2) .tier-badge { background: var(--accent-bg); color: var(--accent); }
.tier-card:nth-child(3) .tier-badge { background: var(--ink); color: var(--bg); }
.tier-card h3 {
  font-family: 'Newsreader', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}
.tier-card .tier-desc { font-size: 1.14rem; line-height: 1.6; color: var(--mid); margin-bottom: 1.2rem; flex-grow: 1; }
.tier-list { list-style: none; border-top: 1px solid var(--rule); padding-top: 0.8rem; }
.tier-list li { font-size: 0.95rem; color: var(--mid); padding: 0.3rem 0 0.3rem 1rem; position: relative; }
.tier-list li::before { content: '\2192'; position: absolute; left: 0; top: 0.45rem; color: var(--accent); font-size: 0.7rem; line-height: 1; }

/* Three tiers compact (Solutions page) */
.tiers-compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.tier-mini { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 1.5rem; transition: border-color 0.2s; }
.tier-mini:hover { border-color: var(--accent); }
.tier-mini .tier-badge { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 4px; display: inline-block; margin-bottom: 0.8rem; }
.tier-mini:nth-child(1) .tier-badge { background: var(--warm); color: var(--ink-soft); }
.tier-mini:nth-child(2) .tier-badge { background: var(--accent-bg); color: var(--accent); }
.tier-mini:nth-child(3) .tier-badge { background: var(--ink); color: var(--bg); }
.tier-mini h3 { font-family: 'Newsreader', serif; font-size: 1.32rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--ink); }
.tier-mini p { font-size: 1.18rem; line-height: 1.55; color: var(--mid); }

/* Spectrum bar */
.spectrum-bar { margin-top: 1.2rem; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) 0%, var(--accent) 50%, var(--accent-hover) 100%); }
.spectrum-labels { display: flex; justify-content: space-between; margin-top: 0.5rem; }
.spectrum-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); }

/* ===== COVERAGE GRID (homepage) ===== */
.cov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.cov-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 1.5rem 1.2rem; transition: border-color 0.2s; text-decoration: none; color: inherit; display: block; }
.cov-card:hover { border-color: var(--accent); }
.cov-card h4 { font-family: 'Newsreader', serif; font-size: 1.14rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--ink); line-height: 1.25; }
.cov-card p { font-size: 1.12rem; line-height: 1.5; color: var(--quiet); }

/* ===== EDITORIAL BLOCK (homepage) ===== */
.editorial { margin: 0 3rem; display: grid; grid-template-columns: 1fr 1fr; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); min-height: 380px; }
.editorial-photo { overflow: hidden; }
.editorial-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7); }
.editorial-text { background: var(--ink); color: var(--bg); padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.editorial-text blockquote { font-family: 'Newsreader', serif; font-size: 1.7rem; font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; margin-bottom: 1.5rem; }
.editorial-text cite { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--quiet); font-style: normal; }

/* ===== TRAINING (homepage) ===== */
.training-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 3.5rem; margin-top: 2.5rem; align-items: start; }
.training-text p { font-size: 1.18rem; line-height: 1.7; color: var(--mid); margin-bottom: 0.8rem; }
.training-metrics { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.metric-row { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--rule); gap: 2rem; }
.metric-row:last-child { border-bottom: none; }
.metric-label { font-size: 1.08rem; color: var(--mid); }
.metric-val { font-family: 'Newsreader', serif; font-size: 1.32rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; text-align: right; white-space: nowrap; }

/* ===== DISCIPLINES GRID (Solutions page) ===== */
.disc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.5rem; }
.disc-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 2rem; display: flex; flex-direction: column; transition: border-color 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit; }
.disc-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(14, 92, 142, 0.06); }
.disc-card h3 { font-family: 'Newsreader', serif; font-size: 1.32rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: center; }
.disc-card h3 .arrow { font-size: 1.12rem; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: all 0.2s; }
.disc-card:hover h3 .arrow { opacity: 1; transform: translateX(0); }
.disc-card p { font-size: 1.14rem; line-height: 1.6; color: var(--mid); }
.disc-card .disc-tasks { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--rule); font-size: 1.14rem; color: var(--quiet); line-height: 1.5; }

/* ===== INTEGRATION GRID (Solutions page) ===== */
.integ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; margin-top: 2.5rem; }
.integ-item h3 { font-family: 'Newsreader', serif; font-size: 1.12rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--ink); }
.integ-item p { font-size: 1.14rem; line-height: 1.65; color: var(--mid); }

/* ===== DIFFERENTIATOR CARDS (The Humans page) ===== */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.diff-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 2rem; transition: border-color 0.2s; }
.diff-card:hover { border-color: var(--accent); }
.diff-card .diff-num { font-family: 'Newsreader', serif; font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 0.3rem; letter-spacing: -0.03em; }
.diff-card .diff-stat { font-size: 1.12rem; color: var(--quiet); margin-bottom: 1rem; }
.diff-card h3 { font-family: 'Newsreader', serif; font-size: 1.32rem; font-weight: 700; margin-bottom: 0.5rem; }
.diff-card p { font-size: 1.14rem; line-height: 1.6; color: var(--mid); }

/* ===== COMPARE TABLE (The Humans page) ===== */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: 0.85rem; }
.compare-table th { text-align: left; padding: 0.8rem 1rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--quiet); border-bottom: 2px solid var(--rule); min-width: 140px; }
.compare-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--rule); color: var(--mid); min-width: 140px; }
.compare-table td:first-child { font-weight: 600; color: var(--ink); }
.compare-table .highlight { background: var(--accent-bg); color: var(--accent); font-weight: 600; }

/* ===== PROSE ===== */
.prose p { font-size: 1.12rem; line-height: 1.7; color: var(--mid); margin-bottom: 1rem; }


/* ===== TEAM GRID (The Humans page) ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.team-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 2rem; }
.team-card h3 { font-family: 'Newsreader', serif; font-size: 1.32rem; font-weight: 700; margin-bottom: 0.2rem; }
.team-card .role { font-family: 'IBM Plex Mono', monospace; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem; }
.team-card p { font-size: 1.18rem; line-height: 1.55; color: var(--mid); }

/* ===== CONTACT LAYOUT ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 4rem 0 5rem; }
.contact-details { display: flex; flex-direction: column; gap: 2.5rem; }
.contact-block h3 { font-family: 'Newsreader', serif; font-size: 1.18rem; font-weight: 700; margin-bottom: 0.4rem; }
.contact-block p, .contact-block a { font-size: 1.32rem; line-height: 1.6; color: var(--mid); text-decoration: none; transition: color 0.15s; }
.contact-block a:hover { color: var(--accent); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-group label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--quiet); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--rule); border-radius: 6px; font-family: 'Instrument Sans', sans-serif; font-size: 1.14rem; color: var(--ink); background: var(--bg); transition: border-color 0.15s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.85rem 1.8rem; background: var(--ink); color: var(--bg); font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 1.14rem; border: none; border-radius: 6px; cursor: pointer; transition: background 0.15s; }
.form-submit:hover { background: var(--ink-soft); }
.form-note { margin-top: 1rem; font-size: 0.82rem; color: var(--quiet); }

/* Map placeholder */
.map-band { margin: 0 3rem; height: 300px; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); background: var(--warm); display: flex; align-items: center; justify-content: center; }
.map-band iframe { width: 100%; height: 100%; border: none; }

/* ===== PILLAR CARDS (Our World View / Blog index) ===== */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.pillar-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 2rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: border-color 0.2s, box-shadow 0.2s; }
.pillar-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(14,92,142,0.06); }
.pillar-card .pillar-tag { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.pillar-card h3 { font-family: 'Newsreader', serif; font-size: 1.32rem; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.25; }
.pillar-card p { font-size: 1.18rem; line-height: 1.55; color: var(--mid); flex-grow: 1; }
.pillar-card .read-more { margin-top: 1rem; font-size: 1.14rem; font-weight: 600; color: var(--accent); }

/* ===== ARTICLE LIST (Blog index / Our World View) ===== */
.article-list { margin-top: 2rem; }
.article-row { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: baseline; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; transition: background 0.15s; }
.article-row:first-child { border-top: 1px solid var(--rule); }
.article-row:hover { background: var(--warm); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; border-radius: 6px; }
.article-row h3 { font-family: 'Newsreader', serif; font-size: 1.18rem; font-weight: 600; line-height: 1.3; }
.article-row .article-meta { font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); white-space: nowrap; }
.article-row .article-desc { grid-column: 1 / -1; font-size: 1.18rem; color: var(--mid); line-height: 1.5; margin-top: -0.4rem; }

/* ===== CTA BLOCK ===== */
.cta { background: var(--ink); color: var(--bg); padding: 4rem 0; margin: 0 3rem; border-radius: 10px; text-align: center; }
.cta h2 { font-family: 'Newsreader', serif; font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.8rem; }
.cta p { color: var(--quiet); font-size: 1.18rem; margin-bottom: 2rem; }
.btn-cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2.2rem; background: var(--bg); color: var(--ink); font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 1.18rem; text-decoration: none; border-radius: 6px; transition: all 0.15s; }
.btn-cta:visited { color: var(--ink); }
.btn-cta:hover { background: var(--surface); transform: translateY(-1px); }
.cta .btn-cta { }
.cta-contact { margin-top: 2.5rem; display: flex; justify-content: center; gap: 2.5rem; }
.cta-contact a { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--quiet); text-decoration: none; transition: color 0.15s; }
.cta-contact a:hover { color: var(--bg); }

/* ===== CONTENT PAGES (migrated Squarespace) ===== */
.content-page { padding: 10rem 0 4rem; }
.content-page-title { font-family: 'Newsreader', serif; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); margin-bottom: 1rem; text-wrap: balance; }

.content-body { font-family: 'Instrument Sans', sans-serif; font-size: 1.12rem; line-height: 1.7; color: var(--mid); }
.content-wrapper { font-family: 'Instrument Sans', sans-serif; font-size: 1.12rem; line-height: 1.7; color: var(--mid); margin-left: auto; margin-right: auto; }
.content-wrapper h2 { font-family: 'Newsreader', serif; font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-top: 2.5rem; margin-bottom: 1rem; }
.content-wrapper h3 { font-family: 'Newsreader', serif; font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-top: 2rem; margin-bottom: 0.8rem; }
.content-wrapper h4 { font-family: 'Newsreader', serif; font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content-wrapper p { margin-bottom: 1.2rem; }
.content-wrapper ul, .content-wrapper ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
.content-wrapper li { margin-bottom: 0.5rem; }
.content-wrapper a, .content-wrapper a em, .content-wrapper em a { color: var(--accent); text-decoration: none; }
.content-wrapper a:hover { text-decoration: underline; }
.content-wrapper em { color: var(--mid); }
.content-wrapper blockquote { border-left: 3px solid var(--accent); padding-left: 1.5rem; margin: 1.5rem 0; font-style: italic; }
.content-wrapper [style*="white-space:pre-wrap"] { white-space: normal !important; }
.content-wrapper table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Kill ALL Squarespace layout artifacts — fluid-engine, grids, positioning */
.fluid-engine { display: block !important; grid-template-columns: unset !important; grid-template-rows: unset !important; }
.fe-block { display: block !important; grid-area: unset !important; grid-column: unset !important; grid-row: unset !important; position: static !important; margin-bottom: 1.5rem; }
.section-border { display: none !important; }
.section-divider-display { display: none !important; }
.section-divider-svg-clip { display: none !important; }
.section-divider-svg-stroke { display: none !important; }
.sqsrte-text-color--white { color: var(--ink) !important; }
[style*="clip-path"] { clip-path: none !important; }
[style*="padding-top: calc"] { padding-top: 0 !important; padding-bottom: 0 !important; }
.sqs-block, .sqs-block-content, .sqs-layout, .row, .col,
.sqs-html-content { display: block; }

.content-body h2 { font-family: 'Newsreader', serif; font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-top: 2.5rem; margin-bottom: 1rem; }
.content-body h3 { font-family: 'Newsreader', serif; font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-top: 2rem; margin-bottom: 0.8rem; }
.content-body h4 { font-family: 'Newsreader', serif; font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content-body p { margin-bottom: 1.2rem; }
.content-body ul, .content-body ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
.content-body li { margin-bottom: 0.5rem; }
.content-body a { color: var(--accent); text-decoration: none; }
.content-body a:hover { text-decoration: underline; }
.content-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; }
.content-body blockquote { border-left: 3px solid var(--accent); padding-left: 1.5rem; margin: 1.5rem 0; font-style: italic; }

/* Strip Squarespace inline styles that break layout */
.content-body [style*="white-space:pre-wrap"] { white-space: normal !important; }
.content-body [data-sqsp-text-block-content] { display: block; }

.blog-meta { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--quiet); }
.blog-author { color: var(--accent); font-weight: 500; }

/* ===== FOOTER ===== */
footer { border-top: 2px solid var(--rule); padding: 2.5rem 0 2rem; margin-top: 1rem; }
.content-wrapper > div:last-child, .content-body > div:last-child { margin-bottom: 0; }
.content-wrapper p:empty, .content-body p:empty { display: none; }
.footer-brand-bar { text-align: center; padding-bottom: 1.2rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.footer-brand-bar p { color: var(--quiet); font-size: 1rem; line-height: 1.6; max-width: 600px; margin: 0.8rem auto 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--quiet); margin-bottom: 0.7rem; }
.footer-col a { display: block; color: var(--mid); text-decoration: none; font-size: 1.05rem; padding: 0.2rem 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; font-size: 0.95rem; color: var(--quiet); }
.footer-bottom a { color: var(--quiet); text-decoration: none; }
.footer-bottom a:visited { color: var(--quiet); }
.footer-bottom a:hover { color: var(--mid); }

/* ===== ACCENT BAR ===== */
.owv-accent-bar {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ===== GRID UTILITIES ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2rem; }
.grid-2-asym { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }

/* ===== HOMEPAGE STATS ROW ===== */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat-numeral { font-family: 'Newsreader', serif; font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.stat-caption { font-size: 0.95rem; color: var(--mid); margin-top: 0.2rem; }
@media (max-width: 640px) {
  .stats-row { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ===== SELECTIVITY TABLE (humans page) ===== */
.selectivity-table { display: flex; flex-direction: column; gap: 0.8rem; }
.selectivity-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--rule); padding-bottom: 0.6rem; }
.selectivity-row-last { border-bottom: none; padding-bottom: 0; }
.selectivity-school { font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.selectivity-rate { font-size: 0.95rem; color: var(--mid); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.selectivity-rate-accent { color: var(--accent); font-weight: 600; }
.selectivity-rate-quiet { color: var(--quiet); }

/* ===== MID-PAGE CTA ===== */
.mid-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin: 0 3rem;
  transition: border-color 0.2s;
}
.mid-cta:hover { border-color: var(--accent); }
.mid-cta p {
  font-size: 1.14rem;
  font-weight: 600;
  color: var(--ink);
}

/* ===== ANIMATIONS ===== */
@keyframes up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(14px); transition: all 0.55s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .container { padding: 0 2rem; }
  .nav-inner { padding: 0 2rem; }

  .hero { padding: 8.5rem 0 4rem; }
  .hero-sub { grid-template-columns: 1fr; gap: 2rem; }

  .page-hero { padding: 8rem 0 3rem; }

  .diff-layout { grid-template-columns: 1fr; gap: 2rem; }
  .diff-grid { grid-template-columns: 1fr; }
  .tiers-row { grid-template-columns: repeat(3, 1fr); }
  .tiers-compact { grid-template-columns: 1fr; }
  .cov-grid { grid-template-columns: 1fr 1fr; }
  .disc-grid { grid-template-columns: 1fr; }
  .integ-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pillar-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2-asym { grid-template-columns: 1fr; }
  .mid-cta { margin: 0 2rem; flex-direction: column; gap: 1rem; text-align: center; }
  .contact-layout { grid-template-columns: 1fr; }

  .editorial { grid-template-columns: 1fr; margin: 0 2rem; }
  .editorial-photo { min-height: 220px; }
  .training-layout { grid-template-columns: 1fr; }

  .section { padding: 3.5rem 0; }
  .section-rule { margin: 0 2rem; }
  .photo-strip { margin: 0 2rem; height: 240px; }
  .cta { margin: 0 2rem; padding: 4rem 0; }
  .map-band { margin: 0 2rem; }

  .footer-cols { grid-template-columns: 1fr 1fr; }
  footer { padding: 2rem 0; }

  .compare-table { font-size: 0.85rem; }
}

/* ===== HAMBURGER BUTTON ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  z-index: 200;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.5rem; }
  .nav-inner { padding: 0 1.5rem; }
  .hero { padding: 7rem 0 3rem; }
  .page-hero { padding: 7rem 0 2.5rem; }
  .cov-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .stats-card { grid-template-columns: 1fr; }
  .cta-contact { flex-direction: column; gap: 0.8rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .tiers-row { grid-template-columns: 1fr; }
  .cta { margin: 0 1rem; padding: 3rem 1.5rem; }
  .mid-cta { margin: 0 1rem; }
  .section-rule { margin: 0 1.5rem; }
  .editorial { margin: 0 1rem; }
  .photo-strip { margin: 0 1rem; height: 200px; }
  .map-band { margin: 0 1rem; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
  .section { padding: 2.5rem 0; }
  .footer-col a { padding: 0.75rem 0; min-height: 44px; display: flex; align-items: center; }
  img { max-width: 100%; height: auto; }
  .compare-table th, .compare-table td { min-width: auto; padding: 0.6rem 0.6rem; }
}

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.mobile-nav-link {
  font-family: 'Newsreader', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.15s;
}
.mobile-nav-link:hover { color: var(--accent); }
.mobile-nav-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  background: var(--ink);
  color: var(--bg);
  font-family: 'Newsreader', serif;
  font-size: 1.32rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s;
}
.mobile-nav-cta:hover { background: var(--ink-soft); }
.mobile-nav-contact {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.mobile-nav-contact a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--quiet);
  text-decoration: none;
}

/* ===== UTILITY CLASSES (extracted from repeated inline styles) ===== */

/* Body text — replaces 19 instances of inline font-size 1.12rem, color var(--mid), line-height 1.6 */
.u-body { font-size: 1.12rem; color: var(--mid); line-height: 1.6; }
.u-body-tall { font-size: 1.12rem; color: var(--mid); line-height: 1.7; }
.u-body-tall-spaced { font-size: 1.12rem; color: var(--mid); line-height: 1.7; margin-top: 1rem; }

/* Accent inline link — replaces 12 instances */
.u-link { color: var(--accent); text-decoration: none; }
.u-link:hover { text-decoration: underline; }

/* Card surface — replaces 11 instances */
.u-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 2rem; }

/* Eyebrow label — replaces multiple Plex Mono uppercase patterns */
.u-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem; }
.u-eyebrow-quiet { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--quiet); }

/* Subhead — replaces 7 instances */
.u-subhead { font-family: 'Newsreader', serif; font-size: 1.18rem; font-weight: 700; margin-bottom: 0.4rem; }
.u-subhead-lg { font-family: 'Newsreader', serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.8rem; }

/* Caption — small mid-grey text under an item */
.u-caption-mid { font-size: 0.95rem; color: var(--mid); margin-top: 0.3rem; }
.u-caption-quiet { font-size: 0.95rem; color: var(--quiet); margin-top: 0.3rem; }

/* Engagement card on /how-we-work — narrow label column with mobile fallback */
.engagement-grid {
  display: grid;
  grid-template-columns: 0.3fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .engagement-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Accessibility — visible focus rings on all interactive elements */
a:focus-visible,
button:focus-visible,
.btn-dark:focus-visible,
.nav-cta:focus-visible,
.mobile-nav-cta:focus-visible,
.nav-hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

/* Migrated blog post images — basic responsive constraint */
.content-wrapper img {
  max-width: 100%;
  height: auto;
}
