/* =========================================================
   Holonic site stylesheet
   =========================================================

   Table of contents
   1. Editable design tokens
   2. Base elements and layout helpers
   3. Header, navigation, buttons, footer
   4. Shared cards and content blocks
   5. Page-specific sections
   6. Responsive adjustments
   ========================================================= */

:root {
  /* =====================================================
     EDITABLE DESIGN TOKENS

     The site now uses named desktop, tablet, and mobile tokens instead of fluid sizing formulas.  Desktop values are
     listed here, with tablet/mobile overrides immediately
     below.  Most day-to-day edits should happen in this
     token block instead of hunting through the whole file.
     ===================================================== */

  /* Brand colors */
  --ink: #0E1B1B;
  --navy: #1A2B2B;
  --navy-soft: #233838;
  --green: #00A67E;
  --green-dark: #007F61;
  --green-glow: rgba(0, 166, 126, 0.18);
  --mint: #E8F7F2;
  --paper: #FAFAF7;
  --rule: #D8DDDD;
  --rule-dark: rgba(255, 255, 255, 0.10);
  --text: #1A2B2B;
  --text-dim: #5C6B6B;
  --text-dim-d: #9FB2B2;
  --amber: #C68A2E;
  --crimson: #B23A48;

  /* Typefaces */
  --serif: 'IBM Plex Serif', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* Layout */
  --container: 1240px;
  --site-gutter: 56px;
  --space-section: 30px;
  --space-section-tight: 96px;
  --space-page-head-top: 40px;
  --space-page-head-bottom: 40px;
  --space-page-head-h1-bottom: 22px;

  /* Shared spacing */
  --gap-section-head: 96px;
  --gap-section-head-bottom: 64px;
  --gap-xl: 120px;
  --gap-lg: 88px;
  --gap-md: 80px;
  --gap-sm: 56px;
  --space-card: 32px;
  --space-panel-y: 48px;
  --space-panel-x: 52px;
  --space-panel-alt-y: 44px;
  --space-panel-alt-x: 48px;

  /* Type scale */
  --font-h1: 76px;
  --font-h2: 50px;
  --font-h3: 24px;
  --font-page-head: 60px;
  --font-page-head-copy: 19px;
  --font-lede: 20px;
  --font-copy-large: 20px;
  --font-copy: 18px;
  --font-hero-title: 68px;
  --font-hero-title-small: 60px;
  --font-hero-copy: 19px;
  --font-metric: 44px;
  --font-callout: 42px;
  --font-card-title: 24px;
  --font-card-title-large: 28px;
  --font-quote: 28px;
  --font-case-number: 38px;
  --font-proof-title: 48px;
  --font-cta-title: 60px;
}

@media (max-width: 980px) {
  :root {
    --site-gutter: 36px;
    --space-section: 20px;
    --space-section-tight: 72px;
    --space-page-head-top: 40px;
    --space-page-head-bottom: 40px;
    --gap-section-head: 64px;
    --gap-section-head-bottom: 52px;
    --gap-xl: 80px;
    --gap-lg: 64px;
    --gap-md: 56px;
    --gap-sm: 44px;
    --space-panel-y: 40px;
    --space-panel-x: 44px;
    --space-panel-alt-y: 38px;
    --space-panel-alt-x: 40px;

    --font-h1: 58px;
    --font-h2: 42px;
    --font-page-head: 48px;
    --font-lede: 18px;
    --font-hero-title: 54px;
    --font-hero-title-small: 48px;
    --font-metric: 38px;
    --font-callout: 34px;
    --font-case-number: 34px;
    --font-proof-title: 42px;
    --font-cta-title: 48px;
  }
}

@media (max-width: 640px) {
  :root {
    --site-gutter: 22px;
    --space-section: 20px;
    --space-section-tight: 56px;
    --space-page-head-top: 40px;
    --space-page-head-bottom: 40px;
    --gap-section-head: 40px;
    --gap-section-head-bottom: 40px;
    --gap-xl: 40px;
    --gap-lg: 40px;
    --gap-md: 40px;
    --gap-sm: 32px;
    --space-card: 26px;
    --space-panel-y: 32px;
    --space-panel-x: 32px;
    --space-panel-alt-y: 32px;
    --space-panel-alt-x: 32px;

    --font-h1: 40px;
    --font-h2: 30px;
    --font-h3: 20px;
    --font-page-head: 36px;
    --font-page-head-copy: 16px;
    --font-lede: 17px;
    --font-copy-large: 17px;
    --font-copy: 16px;
    --font-hero-title: 40px;
    --font-hero-title-small: 36px;
    --font-hero-copy: 17px;
    --font-metric: 32px;
    --font-callout: 28px;
    --font-card-title: 20px;
    --font-card-title-large: 22px;
    --font-quote: 20px;
    --font-case-number: 28px;
    --font-proof-title: 34px;
    --font-cta-title: 34px;
  }
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "kern";
  line-height: 1.55;
}

::selection { background: var(--green); color: white; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}
.section { padding: var(--space-section) 0; }
.section--tight { padding: var(--space-section-tight) 0; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: var(--font-h1); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: var(--font-h2); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: var(--font-card-title); line-height: 1.25; font-weight: 500; }
h4 { font-family: var(--sans); font-size: 13px; line-height: 1.3; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
p { margin: 0; }
em.accent { font-style: italic; color: var(--green); font-family: var(--serif); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--green);
}
.lede { font-size: var(--font-lede); line-height: 1.55; color: var(--text-dim); max-width: 60ch; }
.on-dark .lede { color: var(--text-dim-d); }
.on-dark .eyebrow { color: var(--green); }

/* ---------- Page-head banner (sub-pages) ---------- */
.page-head {
  background: var(--ink);
  color: white;
  position: relative;
  overflow: hidden;
  padding: var(--space-page-head-top) 0 var(--space-page-head-bottom);
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at top right, rgba(0,0,0,0.6), transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at top right, rgba(0,0,0,0.6), transparent 65%);
}
.page-head::after {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, var(--green-glow), transparent 70%);
  pointer-events: none;
}
.page-head-inner { position: relative; z-index: 1; max-width: 880px; }
.page-head h1 {
  color: white;
  margin: 0 0 22px;
  font-size: var(--font-page-head);
  line-height: 1.04;
  max-width: 22ch;
}
.page-head h1 em {
  font-style: italic;
  color: var(--green);
  font-family: var(--serif);
}
.page-head p {
  font-size: var(--font-page-head-copy);
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  max-width: 62ch;
}
.page-head p strong { color: white; font-weight: 500; }

/* ---------- Header / Nav (matched to holonic2) ---------- */
body.nav-open { overflow: hidden; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 999;
  background: var(--green);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,246,239,.94);
  border-bottom: 1px solid rgba(215,223,220,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 42px;
}
.brand-wordmark {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .32em;
  font-size: 1.06rem;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 1rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green-dark);
  border-color: var(--green);
}
.nav-links .nav-cta {
  padding: 11px 17px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  border: 2px solid var(--green);
  font-weight: 650;
  font-family: var(--sans);
  letter-spacing: 0;
}
.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}
.menu-button {
  display: none;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 44px;
  font: 700 .9rem var(--sans);
  cursor: pointer;
}
@media (max-width: 860px) {
.menu-button { display: inline-flex; align-items: center; }
.nav-links {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(11, 27, 27, .08);
    padding: 12px;
  }
.nav-links.is-open { display: flex; }
.nav-links a {
    min-height: 48px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--rule);
  }
.nav-links a:last-child { border-bottom: 0; }
.nav-links .nav-cta {
    margin-top: 10px;
    text-align: center;
    border: 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.005em;
  border-radius: 2px;
  transition: all 0.18s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--green);
  color: white;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.04); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn .arrow {
  transition: transform 0.18s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--green);
  border-bottom: 1px solid rgba(0,166,126,0.4);
  padding-bottom: 2px;
  transition: all 0.15s ease;
}
.text-link:hover { border-color: var(--green); color: var(--green-dark); }
.on-dark .text-link { color: rgba(255,255,255,0.78); border-color: rgba(255,255,255,0.22); }
.on-dark .text-link:hover { color: var(--green); border-color: var(--green); }

/* ---------- Section header (asymmetric, two-col) ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-section-head);
  align-items: end;
  margin-bottom: var(--gap-section-head-bottom);
}
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; gap: 20px; } }
.section-head h2 { max-width: 18ch; margin-top: 18px; }
.section-head .lede { padding-bottom: 6px; }

/* ---------- Shared cards / chips ---------- */
.card {
  background: white;
  padding: 32px 28px 36px;
  border: 1px solid var(--rule);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--green);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(14,27,27,0.20);
}
.card-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: block;
}
.card h3 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}
.card p { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; }

/* ---------- CTA (final) ---------- */
.cta-final {
  background: var(--ink);
  color: white;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  bottom: -30%; left: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, var(--green-glow), transparent 70%);
  pointer-events: none;
}
.cta-final-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 820px) {
.cta-final-inner { grid-template-columns: 1fr; gap: 32px; }
}
.cta-final h2 {
  color: white;
  font-size: var(--font-cta-title);
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 18ch;
}
.cta-final h2 em { font-style: italic; color: var(--green); font-family: var(--serif); }
.cta-final p {
  color: rgba(255,255,255,0.78);
  font-size: var(--font-copy);
  line-height: 1.55;
  max-width: 50ch;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.cta-actions .btn { padding: 18px 28px; font-size: 16px; }
.cta-actions a.text-link { color: rgba(255,255,255,0.7); font-size: 14px; font-family: var(--mono); letter-spacing: 0.04em; border-bottom: none; }
.cta-actions a.text-link:hover { color: var(--green); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 56px 0 40px;
  border-top: 1px solid var(--rule-dark);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
@media (max-width: 820px) {
.footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
.footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: var(--serif);
  font-size: 19px;
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.55;
  max-width: 32ch;
  color: rgba(255,255,255,0.55);
}
.footer-col h4 {
  color: rgba(255,255,255,0.85);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a { color: rgba(255,255,255,0.65); transition: color 0.15s ease; font-size: 13.5px; }
.footer-col a:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.footer-bottom a:hover { color: white; }

/* ---------- Reveal animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }
.d5 { animation-delay: 0.45s; }
.d6 { animation-delay: 0.55s; }

@keyframes pulse-line {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.pulse { animation: pulse-line 3.2s ease-in-out infinite; }
.pulse-2 { animation: pulse-line 3.2s ease-in-out infinite; animation-delay: 1.6s; }


/* =========================================================
   5. Page-specific sections
   ========================================================= */

/* Page styles: index.php
   ========================================================= */
/* Page-specific: hero */
.hero {
    background: var(--ink);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 20px 0 0;
  }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: center;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at top right, rgba(0,0,0,0.55), transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at top right, rgba(0,0,0,0.55), transparent 65%);
  }
.hero::after {
    content: "";
    position: absolute;
    top: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--green-glow), transparent 70%);
    pointer-events: none;
  }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: var(--gap-lg);
    align-items: center;
    position: relative;
    z-index: 1;
  }
  @media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
    color: white;
    font-size: var(--font-hero-title);
    line-height: 1.05;
    letter-spacing: -0.025em;
    max-width: 18ch;
    margin: 22px 0 28px;
  }
.hero h1 em {
    font-style: normal;
    color: var(--green);
    font-family: var(--serif);
  }
.hero-sub {
    font-size: var(--font-hero-copy);
    color: rgba(255,255,255,0.82);
    max-width: 56ch;
    line-height: 1.55;
    margin-bottom: 36px;
  }
.hero-sub strong { color: white; font-weight: 500; }
.hero-anchor {
    font-family: var(--sans);
    font-size: 14.5px;
    color: rgba(255,255,255,0.66);
    line-height: 1.55;
    max-width: 56ch;
    margin-bottom: 40px;
    padding-left: 14px;
    border-left: 1px solid rgba(0,166,126,0.5);
  }
.hero-anchor a {
    color: var(--green);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    margin-left: 6px;
    white-space: nowrap;
    transition: opacity 0.15s ease;
  }
.hero-anchor a:hover { opacity: 0.75; }
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
  }
.cta-caption {
    font-family: var(--mono);
    font-size: 12px;
    color: rgba(255,255,255,0.52);
    letter-spacing: 0.04em;
    margin: 0 0 56px;
  }
.hero-diagram {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
  }
.hero-diagram svg { width: 100%; height: auto; display: block; }

  /* Proof strip */
.proof-strip {
    border-top: 1px solid var(--rule-dark);
    padding: 36px 0 48px;
    position: relative;
    z-index: 1;
  }
.metric-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 28px;
  }
  @media (max-width: 800px) {
    .metric-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  }
.metric-item .metric-num {
    font-family: var(--serif);
    font-size: var(--font-metric);
    font-weight: 500;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
  }
.metric-item .metric-num span { color: var(--green); }
.metric-item .metric-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
  }
.proof-strip-sub {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.40);
    padding-top: 24px;
    border-top: 1px solid var(--rule-dark);
  }

  /* Problem block */
.problem { background: var(--paper); border-top: 1px solid var(--rule); }
.problem-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl);
    margin-bottom: 56px;
    align-items: end;
  }
  @media (max-width: 820px) {
    .problem-head { grid-template-columns: 1fr; gap: 24px; }
  }
.problem-head h2 { max-width: 14ch; }
.problem-head h2 em { font-style: italic; color: var(--green); font-family: var(--serif); }
.problem-head .lede { padding-bottom: 8px; }

.villain {
    margin-bottom: var(--gap-sm);
    padding: 56px;
    background: var(--ink);
    color: white;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
  }
  @media (max-width: 820px) {
    .villain { grid-template-columns: 1fr; gap: 24px; padding: 40px 32px; }
  }
.villain::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    opacity: 0.6;
  }
.villain-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--crimson);
    margin-bottom: 18px;
    display: block;
    position: relative;
  }
.villain h3 {
    font-family: var(--serif);
    font-size: var(--font-case-number);
    line-height: 1.1;
    color: white;
    font-weight: 500;
    position: relative;
  }
.villain p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.78);
    max-width: 50ch;
    position: relative;
  }

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  @media (max-width: 700px) { .card-row { grid-template-columns: 1fr; } }

  /* Positioning turn */
.turn {
    background: var(--ink);
    color: white;
    position: relative;
    overflow: hidden;
  }
.turn::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
    opacity: 0.6;
  }
.turn-inner { position: relative; z-index: 1; max-width: 1080px; }
.turn h2 {
    color: white;
    font-size: var(--font-cta-title);
    line-height: 1.05;
    margin-bottom: 36px;
    max-width: 22ch;
  }
.turn p {
    font-size: var(--font-lede);
    color: rgba(255,255,255,0.78);
    max-width: 62ch;
    margin-bottom: 24px;
  }
.turn-question {
    font-family: var(--serif);
    font-style: italic;
    color: var(--green);
    font-size: var(--font-callout);
    line-height: 1.2;
    margin: 36px 0 48px;
    padding-left: 32px;
    border-left: 3px solid var(--green);
    max-width: 36ch;
  }
.turn-callout {
    margin-top: 64px;
    padding: 48px 0;
    border-top: 1px solid var(--rule-dark);
    border-bottom: 1px solid var(--rule-dark);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
  }
  @media (max-width: 760px) {
    .turn-callout { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  }
.turn-callout-item {
    font-family: var(--serif);
    font-size: var(--font-card-title-large);
    line-height: 1.2;
  }
.turn-callout-item span {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }

  /* Where LLMs fit */
.llm-fit { background: var(--paper); border-top: 1px solid var(--rule); }
.llm-fit-head { max-width: 760px; margin-bottom: var(--gap-sm); }
.llm-fit-head h2 { margin: 22px 0 24px; max-width: 22ch; }
.llm-fit-head h2 em { font-style: italic; color: var(--green); font-family: var(--serif); }
.llm-fit-head .lede { max-width: 60ch; }

.llm-fit-table {
    background: white;
    border: 1px solid var(--rule);
    margin-bottom: 40px;
  }
.llm-fit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--rule);
  }
.llm-fit-row:last-child { border-bottom: 0; }
.llm-fit-row > div {
    padding: 22px 28px;
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--text);
  }
.llm-fit-row > div:first-child {
    border-right: 1px solid var(--rule);
    color: var(--text-dim);
  }
.llm-fit-row > div:nth-child(2) {
    font-weight: 500;
  }
.llm-fit-header > div {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 18px 28px;
    background: var(--mint);
  }
.llm-fit-header > div:first-child { color: var(--text); }
.llm-fit-header > div:nth-child(2) { color: var(--green); }
  @media (max-width: 720px) {
    .llm-fit-row { grid-template-columns: 1fr; }
    .llm-fit-row > div:first-child {
      border-right: 0;
      border-bottom: 1px solid var(--rule);
    }
    .llm-fit-header > div { padding: 14px 22px; }
  }

.llm-fit-callout {
    background: var(--ink);
    color: white;
    padding: var(--space-panel-alt-y) var(--space-panel-x);
    border-left: 3px solid var(--green);
    position: relative;
    overflow: hidden;
  }
.llm-fit-callout::after {
    content: "";
    position: absolute;
    top: -30%; right: -10%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, var(--green-glow), transparent 70%);
    pointer-events: none;
  }
.llm-fit-callout p {
    position: relative;
    z-index: 1;
    font-family: var(--serif);
    font-size: var(--font-card-title);
    line-height: 1.45;
    max-width: 64ch;
  }
.llm-fit-callout p em { font-style: italic; color: var(--green); font-family: var(--serif); }

  /* Who it is for */
.who-for { background: white; border-top: 1px solid var(--rule); }
.who-for-head { max-width: 720px; margin-bottom: var(--gap-sm); }
.who-for-head h2 { margin: 22px 0 24px; max-width: 22ch; }
.who-for-head h2 em { font-style: italic; color: var(--green); font-family: var(--serif); }
.who-for-head .lede { max-width: 56ch; }

.who-for-grid {
    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: 900px) { .who-for-grid { grid-template-columns: 1fr; } }
.who-for-card {
    padding: 40px 32px 44px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: white;
    transition: background 0.18s ease;
  }
.who-for-card:hover { background: var(--mint); }
.who-for-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: block;
  }
.who-for-card h3 {
    font-family: var(--serif);
    font-size: var(--font-card-title);
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 14px;
    max-width: 18ch;
  }
.who-for-card p {
    font-size: 14.5px;
    color: var(--text-dim);
    line-height: 1.6;
  }

  /* Pillars overview */
.pillars { background: var(--paper); }
.pillars-head { max-width: 720px; margin-bottom: 56px; }
.pillars-head h2 { margin: 22px 0 24px; max-width: 18ch; }
.pillar-grid {
    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: 900px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar {
    padding: 48px 40px 56px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: white;
    position: relative;
    transition: background 0.18s ease;
    display: flex;
    flex-direction: column;
  }
.pillar:hover { background: var(--mint); }
.pillar-num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--green);
    letter-spacing: 0.16em;
    font-weight: 500;
    margin-bottom: 24px;
    display: block;
  }
.pillar h3 {
    font-family: var(--serif);
    font-size: var(--font-card-title-large);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 22ch;
  }
.pillar p {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
  }
.pillar-take {
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
    color: var(--text);
    font-weight: 500;
  }
.pillar-take span {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 8px;
  }
.pillars-foot {
    margin-top: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }
.pillars-foot p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 22px;
    color: var(--text);
    max-width: 56ch;
    line-height: 1.4;
  }

  /* Proof teaser */
.proof-teaser {
    background: white;
    border-top: 1px solid var(--rule);
  }
.proof-teaser-head { max-width: 720px; margin-bottom: 56px; }
.proof-teaser-head h2 { margin: 22px 0 0; max-width: 18ch; }
.proof-teaser-head h2 em { font-style: italic; color: var(--green); font-family: var(--serif); }
.proof-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
    margin-bottom: 40px;
  }
  @media (max-width: 900px) { .proof-row { grid-template-columns: 1fr; } }
.proof-card {
    background: white;
    padding: 36px 32px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    transition: background 0.18s ease;
  }
.proof-card:hover { background: var(--mint); }
.proof-card .case-id {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.14em;
    margin-bottom: 18px;
    display: block;
  }
.proof-card .case-client {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    margin-bottom: 10px;
  }
.proof-card h3 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 18px;
  }
.proof-card .case-headline {
    font-family: var(--serif);
    font-size: var(--font-case-number);
    color: var(--green);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
  }
.proof-card .case-headline-sub {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.4;
  }
.proof-teaser-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  /* Buyers */
.buyers { background: var(--mint); border-top: 1px solid var(--rule); }
.buyers-head { max-width: 720px; margin-bottom: var(--gap-sm); }
.buyers-head h2 { margin: 22px 0 0; max-width: 16ch; }
.buyers-head h2 em { font-style: italic; color: var(--green); font-family: var(--serif); }
.buyer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
    background: white;
  }
  @media (max-width: 980px) { .buyer-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 700px) { .buyer-grid { grid-template-columns: 1fr; } }
.buyer {
    padding: 40px 36px 44px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
.buyer-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: block;
  }
.buyer h3 {
    font-family: var(--serif);
    font-size: var(--font-card-title);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 14px;
    max-width: 22ch;
  }
.buyer p {
    font-size: 14.5px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 18px;
  }


/* =========================================================
   Page styles: codeintent.php
   ========================================================= */
/* Pillars (detailed) */
.pillars { background: var(--paper); border-top: 1px solid var(--rule); }
.pillars-head { max-width: 720px; margin-bottom: 56px; }
.pillars-head h2 { margin: 22px 0 24px; max-width: 18ch; }
.pillars-head h2 em { font-style: italic; color: var(--green); font-family: var(--serif); }

.pillar-grid {
    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: 900px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar {
    padding: 48px 40px 56px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: white;
    transition: background 0.18s ease;
    display: flex;
    flex-direction: column;
  }
.pillar:hover { background: var(--mint); }
.pillar-num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--green);
    letter-spacing: 0.16em;
    font-weight: 500;
    margin-bottom: 24px;
    display: block;
  }
.pillar h3 {
    font-family: var(--serif);
    font-size: var(--font-card-title-large);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 22ch;
  }
.pillar p {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
  }
.pillar-take {
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
    color: var(--text);
    font-weight: 500;
  }
.pillar-take span {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 8px;
  }

  /* Product mockup */
.product {
    background: var(--mint);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
.product-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
    margin-bottom: 64px;
    align-items: end;
  }
  @media (max-width: 900px) {
    .product-head { grid-template-columns: 1fr; }
  }
.product-head h2 { max-width: 14ch; }
.product-head h2 em { font-style: italic; color: var(--green); font-family: var(--serif); }
.product-head .lede strong { color: var(--text); font-weight: 500; }
.product-mockup {
    background: white;
    border: 1px solid var(--rule);
    box-shadow: 0 30px 80px -40px rgba(14,27,27,0.30);
    margin-bottom: 64px;
    overflow: hidden;
  }
.product-mockup-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--rule);
    background: #F4F8F7;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    flex-wrap: wrap;
  }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.dot:nth-child(1) { background: #E0817B; }
.dot:nth-child(2) { background: #E0BD7B; }
.dot:nth-child(3) { background: #7BC4A4; }
.mock-path { margin-left: 16px; }

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
    background: white;
  }
  @media (max-width: 760px) { .module-grid { grid-template-columns: 1fr; } }
.module {
    padding: 36px 32px 40px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
.module-icon {
    width: 32px; height: 32px;
    margin-bottom: 22px;
    color: var(--green);
  }
.module h4 {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -0.005em;
    margin-bottom: 12px;
    line-height: 1.3;
  }
.module p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
  }

  /* Alternatives / 80-20 */
.alternatives { background: var(--paper); }
.alternatives-head { max-width: 760px; margin-bottom: 56px; }
.alternatives-head h2 { margin: 22px 0 24px; max-width: 18ch; }
.alternatives-head h2 em { font-style: italic; color: var(--green); font-family: var(--serif); }
.alternatives-head p {
    font-size: 17px;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 62ch;
  }
.eighty-twenty {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 36px;
    align-items: center;
    background: white;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--green);
    padding: 36px 40px;
    margin-bottom: var(--gap-sm);
  }
  @media (max-width: 700px) {
    .eighty-twenty { grid-template-columns: 1fr; gap: 16px; }
  }
.eighty-twenty-num {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--serif);
    font-size: 64px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
  }
.eighty-twenty-num .of { color: var(--text-dim); font-size: 0.45em; }
.eighty-twenty-num .pct { color: var(--green); font-size: 0.55em; }
.eighty-twenty p {
    font-family: var(--serif);
    font-size: var(--font-copy-large);
    line-height: 1.45;
    color: var(--text);
    max-width: 60ch;
  }
.eighty-twenty p strong { color: var(--ink); font-weight: 500; }

.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    background: white;
    border: 1px solid var(--rule);
  }
.compare thead {
    background: var(--ink);
    color: white;
  }
.compare th {
    text-align: left;
    padding: 18px 22px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.86);
  }
.compare td {
    padding: 22px;
    border-top: 1px solid var(--rule);
    vertical-align: top;
    line-height: 1.55;
    color: var(--text-dim);
  }
.compare tr.us td {
    background: var(--mint);
    color: var(--text);
    font-weight: 400;
  }
.compare td:first-child {
    font-family: var(--serif);
    font-size: 17px;
    color: var(--text);
    font-weight: 500;
    width: 26%;
  }
.compare tr.us td:first-child::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
  }
  @media (max-width: 760px) {
    .compare, .compare thead, .compare tbody, .compare tr, .compare td, .compare th { display: block; }
    .compare thead { display: none; }
    .compare tr { padding: 14px 0; border-top: 1px solid var(--rule); }
    .compare td { padding: 6px 22px; border: none; }
    .compare td:first-child { padding-top: 22px; }
  }
.alternatives-close {
    margin-top: 48px;
    font-family: var(--serif);
    font-style: italic;
    font-size: var(--font-card-title);
    color: var(--text);
    max-width: 56ch;
    line-height: 1.4;
    padding-left: 24px;
    border-left: 2px solid var(--green);
  }


/* =========================================================
   Page styles: how-it-works.php
   ========================================================= */
/* ===== Page-specific: cold open ===== */
.cold-open {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
  }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    gap: var(--gap-lg);
    align-items: center;
  }
  @media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-copy { max-width: 760px; }
.cold-h1 {
    margin-top: 24px;
    max-width: 22ch;
    font-size: var(--font-hero-title-small);
    line-height: 1.05;
  }
.cold-h1 .accent2 { font-style: italic; color: var(--green); }
.hero-sub {
    margin-top: 28px;
    font-size: var(--font-hero-copy);
    line-height: 1.62;
    color: var(--text);
    max-width: 64ch;
  }
.hero-sub strong { font-weight: 600; }
.hero-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
  }
.hero-secondary {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.07em;
    color: var(--text-dim);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 3px;
    transition: all 0.15s ease;
  }
.hero-secondary:hover { color: var(--green); border-color: var(--green); }
.hero-proof-line {
    margin-top: 30px;
    padding: 18px 20px;
    border-left: 3px solid var(--green);
    background: white;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    box-shadow: 0 12px 30px rgba(14,27,27,0.04);
  }
.hero-proof-line strong { font-weight: 600; }

.hero-workbench {
    background: var(--ink);
    color: white;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 28px 70px rgba(14,27,27,0.18);
    position: relative;
    overflow: hidden;
  }
.hero-workbench::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
  }
.workbench-bar {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255,255,255,0.62);
    letter-spacing: 0.06em;
  }
.workbench-dot { width: 8px; height: 8px; border-radius: 50%; }
.workbench-dot.c1 { background: #E0817B; }
.workbench-dot.c2 { background: #E0BD7B; }
.workbench-dot.c3 { background: #7BC4A4; }
.workbench-body { position: relative; z-index: 1; padding: 28px; }
.flow-stack { display: grid; gap: 12px; }
.flow-row {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    align-items: start;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }
.flow-row:last-child { border-bottom: none; }
.flow-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--green);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding-top: 3px;
  }
.flow-title {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.2;
    color: white;
  }
.flow-desc {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.52;
    color: rgba(255,255,255,0.70);
  }
.workbench-callout {
    margin-top: 22px;
    padding: 16px 18px;
    background: rgba(0,166,126,0.14);
    border: 1px solid rgba(0,166,126,0.28);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255,255,255,0.86);
  }
.workbench-callout strong { color: white; font-weight: 600; }

  /* ===== Pipeline ===== */
.pipeline-section { background: var(--paper); }
.pipeline-panel {
    background: white;
    border: 1px solid var(--rule);
    padding: 48px 40px 32px;
    overflow-x: auto;
  }
.pipeline-svg { width: 100%; height: auto; display: block; min-width: 940px; }
.stage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-left: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: white;
  }
  @media (max-width: 900px) { .stage-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .stage-grid { grid-template-columns: 1fr; } }
.stage {
    padding: 28px 26px 32px;
    border-right: 1px solid var(--rule);
    background: white;
    transition: background 0.18s ease;
  }
.stage:last-child { border-right: none; }
  @media (max-width: 900px) {
    .stage:nth-child(2) { border-right: none; }
    .stage:nth-child(1), .stage:nth-child(2) { border-bottom: 1px solid var(--rule); }
  }
  @media (max-width: 560px) {
    .stage { border-right: none; border-bottom: 1px solid var(--rule); }
    .stage:last-child { border-bottom: none; }
  }
.stage:hover { background: var(--mint); }
.stage.emphasis { background: var(--mint); }
.stage-num {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    display: block;
    font-weight: 500;
  }
.stage h3 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 12px;
  }
.stage p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
.stage em { font-style: italic; color: var(--navy); }

  /* ===== Failure mode ===== */
.failure-section {
    background: var(--mint);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
.failure-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: var(--gap-sm);
    align-items: stretch;
    margin-top: var(--space-panel-y);
  }
  @media (max-width: 900px) { .failure-layout { grid-template-columns: 1fr; } }
.failure-prose {
    background: white;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--green);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
.failure-prose p {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 14px;
  }
.failure-prose p:last-child { margin-bottom: 0; }
.failure-prose strong { color: var(--text); font-weight: 500; }
.failure-prose em { font-style: italic; color: var(--navy); }
.code-block {
    background: var(--ink);
    color: white;
    border: 1px solid var(--navy);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
.code-block-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.025);
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255,255,255,0.55);
  }
.code-block-dot { width: 9px; height: 9px; border-radius: 50%; }
.code-block-dot.c1 { background: #E0817B; }
.code-block-dot.c2 { background: #E0BD7B; }
.code-block-dot.c3 { background: #7BC4A4; }
.code-block-path { margin-left: 14px; }
.code-block pre {
    margin: 0;
    padding: 26px 30px;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.7;
    color: rgba(255,255,255,0.86);
    overflow-x: auto;
    flex: 1;
  }
.code-block .k { color: var(--text-dim-d); }
.code-block .v { color: var(--green); }
.code-block .c { color: rgba(255,255,255,0.40); font-style: italic; }
.code-block .s { color: #C8E6DA; }
.failure-after {
    margin-top: 40px;
    padding-left: 24px;
    border-left: 2px solid var(--green);
    font-family: var(--serif);
    font-style: italic;
    font-size: var(--font-copy-large);
    line-height: 1.4;
    color: var(--text);
    max-width: 64ch;
  }

  /* ===== CodeIntent® ===== */
.intent-section {
    background: white;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
.intent-prose {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    max-width: 62ch;
    margin-bottom: 24px;
  }
.intent-prose strong { font-weight: 500; }
.intent-prose em { font-style: italic; color: var(--navy); }
.convergence-panel {
    background: var(--paper);
    border: 1px solid var(--rule);
    padding: 40px 32px 32px;
    margin: 56px 0 24px;
    overflow-x: auto;
  }
.convergence-svg {
    width: 100%;
    height: auto;
    display: block;
    min-width: 940px;
  }
.convergence-caption {
    margin-top: 32px;
    padding-left: 24px;
    border-left: 2px solid var(--green);
    font-family: var(--serif);
    font-style: italic;
    font-size: var(--font-copy-large);
    line-height: 1.4;
    color: var(--text);
    max-width: 60ch;
  }
.properties {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--rule);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  @media (max-width: 820px) { .properties { grid-template-columns: 1fr; gap: 32px; } }
.property h3 {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.3;
  }
.property p { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; }
.property .label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    display: block;
    font-weight: 500;
  }


/* =========================================================
   Page styles: proof.php
   ========================================================= */
/* Proof page – case studies + languages strip */
.proof-section { background: var(--paper); border-top: 1px solid var(--rule); }
.proof-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
    margin-bottom: 72px;
    align-items: end;
  }
  @media (max-width: 820px) { .proof-head { grid-template-columns: 1fr; gap: 20px; } }
.proof-head h2 { margin: 22px 0 0; max-width: 18ch; }
.proof-head h2 em { font-style: italic; color: var(--green); font-family: var(--serif); }

  /* Case grid */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
    margin-bottom: 64px;
  }
  @media (max-width: 980px) { .case-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 640px) { .case-grid { grid-template-columns: 1fr; } }
.case {
    background: white;
    padding: 36px 32px 36px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    position: relative;
    transition: background 0.18s ease;
    display: flex;
    flex-direction: column;
  }
.case:hover { background: var(--mint); }
.case-id {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.14em;
    margin-bottom: 18px;
    display: block;
  }
.case-client {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    margin-bottom: 10px;
  }
.case h3 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 18px;
  }
.case-conv {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
    background: var(--mint);
    padding: 6px 10px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
    align-self: flex-start;
  }
.case-headline {
    font-family: var(--serif);
    font-size: var(--font-case-number);
    color: var(--green);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    display: block;
  }
.case-headline-sub {
    font-size: 13.5px;
    color: var(--text);
    margin-bottom: 18px;
    line-height: 1.4;
  }
.case-detail {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.55;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
    margin-top: auto;
  }

  /* Client quote */
.client-quote {
    background: var(--ink);
    color: white;
    padding: var(--gap-sm) 64px;
    margin: 0 0 64px;
    border-left: 3px solid var(--green);
    position: relative;
    overflow: hidden;
  }
.client-quote::after {
    content: "";
    position: absolute;
    top: -30%; right: -10%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, var(--green-glow), transparent 70%);
    pointer-events: none;
  }
.client-quote-label {
    position: relative;
    z-index: 1;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
  }
.client-quote blockquote {
    position: relative;
    z-index: 1;
    font-family: var(--serif);
    font-size: var(--font-quote);
    line-height: 1.4;
    color: white;
    margin: 0 0 24px;
    max-width: 64ch;
    font-weight: 400;
  }
.client-quote figcaption {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 14px;
  }
.client-quote figcaption strong {
    color: white;
    font-weight: 500;
    font-family: var(--sans);
  }
.client-quote figcaption span {
    color: rgba(255,255,255,0.65);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  /* Languages mastered strip */
.langs {
    background: white;
    border: 1px solid var(--rule);
    padding: var(--space-panel-y) var(--space-panel-x);
  }
.langs-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 28px;
  }
.langs-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
  }
  @media (max-width: 760px) { .langs-grid { grid-template-columns: 1fr; gap: 24px; } }
.langs-grid h3 {
    font-family: var(--serif);
    font-size: var(--font-card-title-large);
    font-weight: 500;
    line-height: 1.2;
    max-width: 22ch;
  }
.langs-grid h3 em { font-style: italic; color: var(--green); font-family: var(--serif); }
.langs-count {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--green);
    font-size: 1.15em;
  }
.langs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
.lang-chip {
    font-family: var(--mono);
    font-size: 12.5px;
    padding: 8px 14px;
    background: var(--mint);
    border: 1px solid rgba(0,166,126,0.18);
    color: var(--text);
    letter-spacing: 0.02em;
  }
.lang-chip-target {
    background: white;
    border: 1px solid var(--green);
    color: var(--green);
    font-weight: 500;
  }

  /* Summary stats banner */
.proof-stats {
    background: var(--ink);
    color: white;
    padding: var(--space-section-tight) 0;
    border-top: 1px solid var(--rule-dark);
    border-bottom: 1px solid var(--rule-dark);
    position: relative;
    overflow: hidden;
  }
.proof-stats::after {
    content: "";
    position: absolute;
    top: -20%; right: -10%;
    width: 45vw; height: 45vw;
    background: radial-gradient(circle, var(--green-glow), transparent 70%);
    pointer-events: none;
  }
.proof-stats-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
  @media (max-width: 820px) { .proof-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.stat {
    border-left: 2px solid var(--green);
    padding: 4px 0 4px 18px;
  }
.stat-num {
    font-family: var(--serif);
    font-size: var(--font-proof-title);
    color: white;
    line-height: 1;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: -0.02em;
  }
.stat-label {
    font-size: 13.5px;
    color: rgba(255,255,255,0.72);
    line-height: 1.45;
    max-width: 28ch;
  }

  /* Pattern callout */
.pattern-callout {
    background: white;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--green);
    padding: var(--space-panel-alt-y) var(--space-panel-y);
    margin-top: 64px;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: var(--gap-sm);
    align-items: start;
  }
  @media (max-width: 820px) { .pattern-callout { grid-template-columns: 1fr; gap: 20px; } }
.pattern-callout .eyebrow { margin-bottom: 12px; }
.pattern-callout h3 {
    font-family: var(--serif);
    font-size: var(--font-card-title-large);
    font-weight: 500;
    line-height: 1.2;
    max-width: 18ch;
  }
.pattern-callout p {
    font-size: 15.5px;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 56ch;
  }
.pattern-callout p + p { margin-top: 14px; }


/* =========================================================
   Page styles: contact.php
   ========================================================= */
/* Form (simple, candid) */
.form-section { background: white; border-top: 1px solid var(--rule); }

.contact-form-single {
    max-width: 720px;
  }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  @media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
  }
.field input,
.field select,
.field textarea {
    font-family: var(--sans);
    font-size: 15px;
    color: var(--text);
    padding: 12px 14px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 2px;
    transition: border-color 0.15s ease, background 0.15s ease;
    width: 100%;
  }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--green);
    background: white;
  }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.form-submit {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
.form-submit .note {
    font-size: 12.5px;
    color: var(--text-dim);
    font-family: var(--mono);
    letter-spacing: 0.02em;
  }


  /* Locations */
.locations { background: var(--paper); border-top: 1px solid var(--rule); }
.loc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
  }
  @media (max-width: 820px) { .loc-grid { grid-template-columns: 1fr; } }
.loc {
    padding: 36px 32px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: white;
  }
.loc-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: block;
  }
.loc h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.2;
  }
.loc p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.55;
  }
.loc p + p { margin-top: 8px; }
.loc-meta {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
    letter-spacing: 0.02em;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
  }
.locations-head { max-width: 720px; margin-bottom: var(--gap-sm); }
.locations-head h2 { margin: 22px 0 0; max-width: 18ch; }
.locations-head h2 em { font-style: italic; color: var(--green); font-family: var(--serif); }


/* =========================================================
   Generated utility classes from former inline style attributes
   ========================================================= */
.u-style-1 { margin-top:20px; }
.u-style-2 { background:var(--ink); color:white; position:relative; overflow:hidden; }
.u-style-3 { position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,0.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.025) 1px,transparent 1px); background-size:64px 64px; pointer-events:none; mask-image:radial-gradient(ellipse at top right,rgba(0,0,0,0.55),transparent 65%); -webkit-mask-image:radial-gradient(ellipse at top right,rgba(0,0,0,0.55),transparent 65%); }
.u-style-4 { position:absolute; top:-25%; right:-10%; width:55vw; height:55vw; background:radial-gradient(circle, var(--green-glow), transparent 70%); pointer-events:none; }
.u-style-5 { position:relative; z-index:1; }
.u-style-6 { display:block; margin-bottom:0; }
.u-style-7 { color:white; }
.u-style-8 { color:rgba(255,255,255,0.82); max-width:64ch; }
.u-style-9 { color:var(--green); font-style:italic; font-family:var(--serif); }
.u-style-10 { background:rgba(255,255,255,0.04); color:white; box-shadow:none; border-left-color:var(--green); }
.u-style-11 { margin-left:12px; }


/* Page-head compaction after removing breadcrumb/eyebrow lead-ins */
.page-head .page-head-inner {
  padding-top: 0;
}
@media (max-width: 700px) {
.page-head {
    padding: 48px 0 42px;
  }
.page-head h1 {
    margin-bottom: 18px;
  }
}

/* Keep the Janus mark constrained in the footer. */
.footer-mark img.logo-mark {
  width: 30px;
  height: 30px;
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
  flex: 0 0 30px;
}

/* =========================================================
   PHP conversion adjustments
   ========================================================= */
.logo-mark {
  object-fit: contain;
  flex: 0 0 auto;
}
.logo img.logo-mark,
.footer-mark img.logo-mark {
  display: block;
}

/* ---------------------------------------------------------
   Post-conversion cascade fixes
   Page-specific CSS from the original HTML files is now in a
   single stylesheet. These higher-specificity rules prevent
   later page rules from changing hero copy color on dark sections.
   --------------------------------------------------------- */
.on-dark .hero-sub,
.hero.on-dark .hero-sub,
.cold-open.on-dark .hero-sub {
  color: rgba(255,255,255,0.82);
}

.on-dark .hero-sub strong,
.hero.on-dark .hero-sub strong,
.cold-open.on-dark .hero-sub strong {
  color: #fff;
}

.on-dark .hero-sub em,
.hero.on-dark .hero-sub em,
.cold-open.on-dark .hero-sub em {
  color: #fff;
}
