/* ============================================================
   Partner Architects Group, Design System
   Direction: technical blueprint / drafting-table aesthetic.
   Cyan linework on PAG Navy Dark, title-block signature, dimension-
   style callouts. Sequence numbers only where a real sequence
   exists (the four-phase methodology).
   ============================================================ */

:root {
  /* Color */
  /* Text (per PAG brand guide) */
  --heading: #0e273a;        /* headings only, never a background */
  --deep-slate: #103a69;     /* body copy */
  --link: #359ddf;

  /* Backgrounds */
  --navy-dark: #063e5f;      /* dark sections */
  --charcoal-navy: #1e2c3b;  /* darkest, header, overlays */
  --vellum: #f4fbff;         /* White Blue, default page background */
  --vellum-dim: #e5f6ff;     /* Ice Blue, alternating rows, callouts */
  --paper: #f4fbff;
  --white: #ffffff;

  /* Accents */
  --sky: #4296cd;
  --light-sky: #a7ddff;
  --blueprint-blue: #2589c9;
  --cyan-line: #359ddf;
  --grad-primary: linear-gradient(135deg, #4296cd 0%, #a7ddff 100%);
  --grad-button: linear-gradient(135deg, #6cb9ee 0%, #c4eaff 100%);
  --line-hairline: rgba(53, 157, 223, 0.28);
  --line-hairline-dark: rgba(53, 157, 223, 0.35);

  /* Type */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.7rem + 1.8vw, 3rem);
  --step-4: clamp(2.6rem, 1.9rem + 3vw, 4.6rem);
  --step-5: clamp(3.4rem, 2.2rem + 5.2vw, 7rem);   /* data display only */

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--deep-slate);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blueprint-blue); }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 62ch; }

/* Deep Blue #2589C9 measures 3.65:1 on White Blue and 3.45:1 on Ice Blue, under AA for text this size. It stays the accent (the rule below), while the
   label itself uses Navy Dark at 10.79:1. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 1px;
  background: var(--blueprint-blue);
}

/* ---------- blueprint texture ----------
   Real drafting paper has two line weights, hairline minor squares with a
   heavier major line every fifth. A single uniform grid is what reads as
   wallpaper; the two-weight grid plus a vignette gives the ground depth. */
.blueprint {
  background-color: var(--navy-dark);
  background-image:
    /* vignette, keeps the flat navy from reading as a solid fill */
    radial-gradient(120% 90% at 70% 15%, rgba(53,157,223,0.10), transparent 60%),
    radial-gradient(90% 70% at 10% 90%, rgba(6,32,49,0.55), transparent 65%),
    /* major grid */
    linear-gradient(rgba(53,157,223,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53,157,223,0.22) 1px, transparent 1px),
    /* minor grid */
    linear-gradient(rgba(53,157,223,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53,157,223,0.10) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    240px 240px,
    240px 240px,
    48px 48px,
    48px 48px;
  color: var(--vellum);
  position: relative;
  overflow: hidden;
}
.blueprint h1, .blueprint h2, .blueprint h3 { color: var(--white); }
.blueprint p { color: rgba(244, 251, 255, 0.82); }
/* Deep Blue #2589C9 only clears 2.95:1 on Navy Dark, on dark grounds the
   eyebrow steps up to Light Sky so it stays readable. */
.blueprint .eyebrow { color: var(--light-sky); }
.blueprint .eyebrow::before { background: var(--light-sky); }

.crosshair {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0.55;
}
.crosshair::before, .crosshair::after {
  content: "";
  position: absolute;
  background: var(--cyan-line);
}
.crosshair::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.crosshair::after { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.crosshair.tl { top: 18px; left: 18px; }
.crosshair.tr { top: 18px; right: 18px; }
.crosshair.bl { bottom: 18px; left: 18px; }
.crosshair.br { bottom: 18px; right: 18px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(30, 44, 59, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  color: var(--vellum);
  text-decoration: none;
  font-size: 0.92rem;
  opacity: 0.85;
  white-space: nowrap;
}
.main-nav a:hover { opacity: 1; color: var(--cyan-line); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-hairline);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--vellum);
  position: relative;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-toggle-bars::before { content: ""; position: absolute; top: -6px; }
.nav-toggle-bars::after { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy-dark);
    border-bottom: 1px solid var(--line-hairline);
    padding: 0.5rem var(--gutter) 1.2rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .main-nav a { width: 100%; padding: 0.7rem 0; border-bottom: 1px solid var(--line-hairline); }
  .main-nav a.btn { border: 1px solid var(--cyan-line); margin-top: 0.8rem; justify-content: center; }
}
.btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.3em;
  border: 1px solid var(--blueprint-blue);
  color: var(--navy-dark);
  transition: background 0.15s ease, color 0.15s ease;
}
/* filling with Deep Blue would put white on 3.82:1, Navy Dark fill instead */
.btn:hover { background: var(--navy-dark); color: var(--white); border-color: var(--navy-dark); }
.btn-solid {
  background: var(--grad-button);
  color: var(--heading);
  border-color: #6cb9ee;
  font-weight: 500;
}
.btn-solid:hover { background: var(--grad-primary); border-color: var(--sky); color: var(--heading); }
.btn-on-dark { border-color: var(--light-sky); color: var(--light-sky); }
.btn-on-dark:hover { background: var(--light-sky); color: var(--heading); }

/* ---------- breadcrumb ---------- */
.breadcrumb {
  position: relative;
  z-index: 1;
  padding-top: 0.2rem;
  margin-bottom: 1.1rem;
}
.breadcrumb-inner {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  color: rgba(244, 251, 255, 0.6);
}
.breadcrumb-inner a { color: var(--cyan-line); text-decoration: none; }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-inner .sep { opacity: 0.45; }
.breadcrumb-inner [aria-current="page"] { color: rgba(244, 251, 255, 0.82); }

/* ---------- hero schematic ----------
   A drawing of the thing PAG actually builds: vendor → partner layer → market,
   dimensioned across the four phases. Sits behind the hero copy. */
.hero-schematic {
  position: absolute;
  inset: 0;
  color: var(--cyan-line);
  opacity: 0.32;
  pointer-events: none;
}
.hero-schematic svg { width: 100%; height: 100%; display: block; }
.hero-schematic .sch-label {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  fill: currentColor;
  stroke: none;
}
.hero-schematic .sch-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  fill: currentColor;
  opacity: 0.75;
  stroke: none;
}
.hero-schematic .sch-brace,
.hero-schematic .sch-dim { opacity: 0.8; }

@media (prefers-reduced-motion: no-preference) {
  .hero-schematic .sch > g {
    opacity: 0;
    animation: sch-in 0.7s ease-out forwards;
  }
  .hero-schematic .sch-d1 { animation-delay: 0.15s; }
  .hero-schematic .sch-d2 { animation-delay: 0.35s; }
  .hero-schematic .sch-d3 { animation-delay: 0.5s; }
  .hero-schematic .sch-d4 { animation-delay: 0.7s; }
  .hero-schematic .sch-d5 { animation-delay: 0.85s; }
  .hero-schematic .sch-d6 { animation-delay: 1s; }
}
@keyframes sch-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* the drawing needs a wide hero to sit behind the copy without crowding it.
   Below 1000px the hero stacks and there isn't room, drop it entirely. */
@media (max-width: 999px) {
  .hero-schematic { display: none; }
}

/* ---------- hero / cover sheet ---------- */
.cover-sheet {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}
.cover-sheet .wrap { position: relative; z-index: 1; }
.cover-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .cover-grid { grid-template-columns: 1.3fr 0.9fr; align-items: end; }
}
.cover-sheet h1 { max-width: 14ch; }
.cover-sheet .lede { font-size: var(--step-1); max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

/* title block: the signature element */
.title-block {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  border: 1px solid var(--line-hairline);
  color: var(--vellum);
}
.title-block .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55em 0.8em;
  border-bottom: 1px solid var(--line-hairline);
}
.title-block .row:last-child { border-bottom: none; }
.title-block .label { opacity: 0.6; letter-spacing: 0.06em; text-transform: uppercase; }
.title-block .value { color: var(--cyan-line); text-align: right; }

footer .title-block {
  color: var(--vellum);
  max-width: 320px;
}

/* ---------- generic sections ---------- */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
section[id] { scroll-margin-top: 84px; }
.section-head { max-width: 62ch; margin-bottom: 2.6rem; }
.on-light { background: var(--paper); }
.on-vellum { background: var(--vellum-dim); }

/* ---------- problem list ---------- */
.problem-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-hairline);
}
.problem-list li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-hairline);
}
.problem-list .mark { font-family: var(--font-mono); color: var(--blueprint-blue); }

/* ---------- 4-phase schematic ---------- */
.schematic {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border: 1px solid var(--line-hairline);
}
@media (min-width: 860px) {
  .schematic { grid-template-columns: repeat(4, 1fr); }
}
.phase {
  padding: 1.8rem 1.6rem;
  border-bottom: 1px solid var(--line-hairline);
  position: relative;
}
@media (min-width: 860px) {
  .phase { border-bottom: none; border-right: 1px solid var(--line-hairline); }
  .phase:last-child { border-right: none; }
}
.phase .num {
  font-family: var(--font-mono);
  color: var(--cyan-line);
  font-size: 0.82rem;
  display: block;
  margin-bottom: 0.8rem;
}
.phase h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 0.5em; }
.phase p { color: rgba(244,251,255,0.78); font-size: 0.95rem; margin-bottom: 0; }
.phase-arrow {
  display: none;
  position: absolute;
  right: -9px; top: 1.8rem;
  color: var(--cyan-line);
  font-family: var(--font-mono);
  z-index: 2;
}
@media (min-width: 860px) {
  .phase-arrow { display: block; }
  .phase:last-child .phase-arrow { display: none; }
}

/* ---------- proof / dimension callouts ---------- */
.dimension-row {
  display: grid;
  gap: 1px;
  background: var(--line-hairline);
  border: 1px solid var(--line-hairline);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .dimension-row { grid-template-columns: repeat(3, 1fr); }
}
.dimension {
  background: var(--navy-dark);
  padding: 2rem 1.6rem;
  text-align: left;
}
.dimension .value {
  font-family: var(--font-mono);
  font-size: var(--step-2);
  color: var(--cyan-line);
  display: block;
}
.dimension .label {
  color: rgba(244,251,255,0.75);
  font-size: 0.92rem;
  margin-top: 0.4rem;
}

/* ---------- comparison table ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line-hairline-dark); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 620px;
}
table.compare th, table.compare td {
  padding: 0.85em 1.1em;
  text-align: left;
  border-bottom: 1px solid var(--line-hairline);
}
table.compare thead th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan-line);
  background: var(--navy-dark);
}
table.compare tbody th {
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
}
table.compare tbody tr:nth-child(odd) { background: var(--vellum-dim); }
table.compare .win { color: var(--blueprint-blue); font-weight: 600; }

/* ---------- ICP / who we work with ---------- */
.icp-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.icp-card {
  border: 1px solid var(--line-hairline-dark);
  padding: 1.4rem;
  background: var(--white);
}
.icp-card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--blueprint-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.icp-card.featured {
  border-color: var(--blueprint-blue);
  background: linear-gradient(180deg, var(--vellum-dim), var(--white));
}
.icp-card h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.icp-card p { font-size: 0.92rem; margin-bottom: 0.8em; }
.icp-card .card-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--blueprint-blue);
  display: inline-block;
}
.icp-card .card-link:hover { color: var(--cyan-line); }

/* ---------- client logo marquee ----------
   Replaces the old site's Embla carousel. Pure CSS, no library. The track is
   duplicated once and translated -50%, which loops seamlessly. Logos sit on a
   white band because the source files have baked-in white backgrounds. */
.logo-marquee {
  background: var(--white);
  border-block: 1px solid var(--line-hairline-dark);
  padding-block: 2rem;
  overflow: hidden;
}
.logo-marquee .rail {
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  animation: logo-scroll 38s linear infinite;
}
.logo-marquee:hover .rail,
.logo-marquee:focus-within .rail { animation-play-state: paused; }
.logo-marquee img {
  height: 30px;              /* native height of the source files */
  width: auto;
  flex: none;
  filter: grayscale(100%);
  opacity: 0.72;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.logo-marquee img:hover { filter: grayscale(0); opacity: 1; }
/* three identical sets in the rail, travel one third to loop seamlessly */
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; }
  .logo-marquee .rail { animation: none; }
}

/* ---------- ecosystem logo strip ---------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.logo-chip {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px dashed var(--line-hairline-dark);
  padding: 0.7em 1.1em;
  color: var(--deep-slate);
}

/* ---------- team ---------- */
.team-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.team-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1.1rem;
  border: 1px solid var(--line-hairline-dark);
  padding: 1.4rem;
}
.avatar {
  width: 84px; height: 84px;
  border: 1px dashed var(--line-hairline-dark);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  color: var(--blueprint-blue);
  font-size: 1.4rem;
  background: var(--vellum-dim);
}
.team-card h3 { margin-bottom: 0.1em; }
.team-card .role { font-family: var(--font-mono); font-size: 0.78rem; color: var(--blueprint-blue); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.6em; display: block; }
.team-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- faq ---------- */
.faq-item { border-bottom: 1px solid var(--line-hairline-dark); padding-block: 1.1rem; }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--heading); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--blueprint-blue); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 0.7rem; font-size: 0.95rem; }

/* ---------- final cta ---------- */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 20ch; margin-inline: auto; }
.final-cta .lede { margin-inline: auto; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: var(--vellum);
  padding-block: 3rem 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.4rem;
}
@media (min-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.1fr 1fr 1fr 1.2fr; } }
.site-footer nav { display: grid; gap: 0.5rem; }
.site-footer a { color: rgba(244,251,255,0.8); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--cyan-line); }
.footer-bottom {
  border-top: 1px solid var(--line-hairline);
  padding-top: 1.4rem;
  font-size: 0.8rem;
  color: rgba(244,251,255,0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- insights: index ---------- */
.post-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-hairline-dark);
}
.post-card {
  padding-block: 1.8rem;
  border-bottom: 1px solid var(--line-hairline-dark);
}
.post-card-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-dark);
  opacity: 0.8;
  margin-bottom: 0.5em;
}
.post-card h2 { font-size: var(--step-2); margin-bottom: 0.35em; max-width: 30ch; }
.post-card h2 a { color: var(--heading); text-decoration: none; }
.post-card h2 a:hover { color: var(--navy-dark); text-decoration: underline; }
.post-card p { font-size: 0.98rem; margin-bottom: 0.7em; }

/* ---------- insights: single post ---------- */
.post-head h1 { max-width: 22ch; }
.post-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light-sky);
}
.post-body { max-width: 72ch; }
.post-body p,
.post-body li { font-size: 1.05rem; line-height: 1.75; }
.post-body p { max-width: none; }
.post-body h2 { font-size: var(--step-2); margin-top: 2em; }
.post-body h3 { font-size: var(--step-1); margin-top: 1.6em; }
.post-body ul,
.post-body ol { padding-left: 1.2rem; margin-bottom: 1.2em; }
.post-body li { margin-bottom: 0.5em; }
.post-body a { color: var(--navy-dark); text-decoration: underline; }
.post-body blockquote {
  margin: 1.6em 0;
  padding: 0.4em 0 0.4em 1.2em;
  border-left: 2px solid var(--blueprint-blue);
  font-size: 1.15rem;
  color: var(--heading);
}
.post-nav { display: flex; flex-direction: column; gap: 0.6rem; }

/* ---------- contact form ---------- */
.contact-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .contact-layout { grid-template-columns: 1.4fr 0.8fr; }
}
.contact-aside p { font-size: 1rem; margin-bottom: 0.5em; }

.pag-form .field { margin-bottom: 1.3rem; }
.pag-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 0.45em;
}
.pag-form label span { color: var(--blueprint-blue); }
.pag-form input,
.pag-form select,
.pag-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--heading);
  background: var(--white);
  border: 1px solid var(--line-hairline-dark);
  padding: 0.75em 0.9em;
  min-height: 44px;
}
.pag-form textarea { resize: vertical; }
.pag-form input:focus,
.pag-form select:focus,
.pag-form textarea:focus {
  outline: 2px solid var(--cyan-line);
  outline-offset: 1px;
  border-color: var(--blueprint-blue);
}
.pag-form .helper {
  display: block;
  font-size: 0.85rem;
  color: var(--deep-slate);
  opacity: 0.75;
  margin-top: 0.4em;
}
.pag-form button {
  font-family: var(--font-mono);
  cursor: pointer;
  border: 1px solid var(--blueprint-blue);
  min-height: 44px;
}
.hp-field { position: absolute; left: -9999px; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  z-index: 100;
  background: var(--cyan-line);
  color: var(--heading);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.7em 1.2em;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- utility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--cyan-line);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   Contrast corrections (measured, not eyeballed)

   Two PAG palette colours don't carry small text at AA:
     Deep Blue  #2589C9 → 3.65:1 on White Blue, 2.95:1 on Navy Dark
     Link/Cyan  #359DDF → 3.78:1 on Navy Dark
   Both stay as accents (rules, borders, linework). For text they step to
   Navy Dark #063E5F on light grounds (10.79:1) and Light Sky #A7DDFF on
   dark grounds (7.75:1).
   ============================================================ */

/* small text on dark grounds */
.title-block .value,
.phase .num,
.phase-arrow,
table.compare thead th,
.blueprint .card-link,
.blueprint .problem-list .mark { color: var(--light-sky); }

/* small text on light grounds
   (.icp-card .card-link needs the parent in the selector: a bare .card-link
   loses to the earlier .icp-card .card-link rule on specificity) */
.icp-card .tag,
.icp-card .card-link,
.card-link,
.team-card .role,
.avatar,
.problem-list .mark { color: var(--navy-dark); }

/* The comparison table sits inside a .blueprint section. Only its odd rows had
   a background, so even rows fell through to Navy Dark and rendered dark-on-dark
   at 1.0:1, invisible. Give every row an explicit light ground. */
table.compare tbody tr { background: var(--white); }
table.compare tbody tr:nth-child(odd) { background: var(--vellum-dim); }
table.compare tbody { color: var(--deep-slate); }
table.compare tbody th { color: var(--heading); }
table.compare .win { color: var(--navy-dark); font-weight: 600; }

/* schematic linework, decorative, but keep it legible where labels read */
.hero-schematic { color: var(--light-sky); }

/* ============================================================
   UPSCALE PASS
   The proof numbers were rendering at --step-2, smaller than a section
   heading. They are the most valuable content on the site, so they now get
   the largest type, set as a dimensioned drawing rather than a stat row.
   No new animation: the hero schematic is already the one moving thing.
   ============================================================ */

/* ---- display typography: optical tightening at large sizes ---- */
h1 { letter-spacing: -0.028em; }
h2 { letter-spacing: -0.02em; }
.cover-sheet h1 { max-width: 15ch; text-wrap: balance; }
.section-head h2 { text-wrap: balance; }

/* ---- proof: dimensioned data ---- */
.dimension-row {
  background: transparent;
  border: none;
  gap: 0;
  border-top: 1px solid var(--line-hairline);
  border-bottom: 1px solid var(--line-hairline);
}
.dimension {
  background: transparent;
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.2rem, 2.5vw, 2rem);
  position: relative;
}
@media (min-width: 760px) {
  .dimension + .dimension { border-left: 1px solid var(--line-hairline); }
}
@media (max-width: 759px) {
  .dimension + .dimension { border-top: 1px solid var(--line-hairline); }
}
/* extension lines, like a dimension callout on a drawing */
.dimension::before {
  content: "";
  position: absolute;
  top: 0; left: clamp(1.2rem, 2.5vw, 2rem);
  width: 26px; height: 1px;
  background: var(--light-sky);
  opacity: 0.85;
}
.dimension .value {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 0.5rem;
}
.dimension .label {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(244, 251, 255, 0.78);
  max-width: 34ch;
  margin-top: 0;
}

/* ---- cards: depth and a real hover state ---- */
.icp-card {
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.icp-card:hover {
  border-color: var(--blueprint-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -18px rgba(6, 62, 95, 0.55);
}
/* corner tick: a drafting detail that only resolves on hover */
.icp-card::after {
  content: "";
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  border-top: 1px solid var(--blueprint-blue);
  border-right: 1px solid var(--blueprint-blue);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.icp-card:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .icp-card { transition: border-color 0.18s ease; }
  .icp-card:hover { transform: none; box-shadow: none; }
}

/* ---- section rhythm: an asymmetric variant to break the stacked pattern ---- */
.section-split {
  display: grid;
  gap: 1.6rem 3rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.6rem;
}
@media (min-width: 900px) {
  .section-split { grid-template-columns: 0.42fr 1fr; align-items: start; }
  .section-split .section-head { margin-bottom: 0; }
}
.section-split > .eyebrow { margin-bottom: 0; padding-top: 0.5rem; }

/* ---- links: underline that draws rather than blinks ---- */
.card-link {
  position: relative;
  padding-bottom: 2px;
}
.card-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.card-link:hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .card-link::after { transition: none; }
}

/* ---------- footer tagline ---------- */
.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--light-sky);
  margin: 1rem 0 0;
  max-width: 26ch;
  letter-spacing: -0.01em;
}

/* ---------- insights: card thumbnails ----------
   The image is decorative: the post title sits right beside it and carries the
   meaning, so it's alt="" and hidden from assistive tech rather than repeating
   the headline. Duotoned into the brand palette so 20 stock photos read as one set. */
.post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: start;
}
@media (min-width: 720px) {
  .post-card { grid-template-columns: 240px 1fr; gap: 1.8rem; }
}
.post-card-thumb {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-hairline-dark);
  background: var(--vellum-dim);
  aspect-ratio: 3 / 2;
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .post-card-thumb img { transition: none; }
  .post-card:hover .post-card-thumb img { transform: none; }
}

/* ---------- PartnerBOT page: partner brand lockup ----------
   PartnerBOT has its own identity (orange/blue). It appears here as the
   partner's own mark rather than restyled into PAG's palette, so the two
   brands stay distinct. The tagline follows it in PartnerBOT's voice. */
.pb-lockup {
  border-left: 2px solid var(--light-sky);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}
.pb-logo {
  display: block;
  max-width: 320px;
  margin-bottom: 0.7rem;
}
.pb-logo img { width: 100%; height: auto; }
.pb-tagline {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--light-sky);
  margin: 0;
  max-width: 34ch;
}

/* ============================================================
   POLISH PASS
   The blueprint language only existed on the navy bands, so the light
   sections (most of the page) read as flat empty colour with a hard seam
   between them. These carry the drafting sheet through the whole page.
   ============================================================ */

/* ---- light sections become drafting paper, not flat fill ---- */
.on-light, .on-vellum {
  position: relative;
  background-image:
    linear-gradient(rgba(37,137,201,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,137,201,0.055) 1px, transparent 1px),
    linear-gradient(rgba(37,137,201,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,137,201,0.028) 1px, transparent 1px);
  background-size: 240px 240px, 240px 240px, 48px 48px, 48px 48px;
}
.on-light { background-color: var(--paper); }
.on-vellum { background-color: var(--vellum-dim); }

/* ---- sheet seam: a drafting rule with a registration tick at each section edge ---- */
.on-light::before, .on-vellum::before, .blueprint::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0, rgba(37,137,201,0.28) 8%, rgba(37,137,201,0.28) 92%, transparent 100%);
  pointer-events: none;
}
.blueprint::before { background: linear-gradient(90deg,
    transparent 0, rgba(167,221,255,0.3) 8%, rgba(167,221,255,0.3) 92%, transparent 100%); }

/* ---- the margin rule: fills the dead right-hand column the way a drawing sheet does ---- */
@media (min-width: 1100px) {
  .on-light > .wrap, .on-vellum > .wrap { position: relative; }
  .on-light > .wrap::after, .on-vellum > .wrap::after {
    content: "";
    position: absolute;
    top: -1.2rem; bottom: -1.2rem;
    right: clamp(1.25rem, 4vw, 3rem);
    width: 1px;
    background: repeating-linear-gradient(
      to bottom,
      rgba(37,137,201,0.30) 0 10px,
      transparent 10px 20px);
    pointer-events: none;
  }
}

/* ---- cards: lift off the sheet instead of sitting flat on it ---- */
.icp-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 1px 2px rgba(6,62,95,0.04), 0 8px 24px -20px rgba(6,62,95,0.35);
}
.icp-card:hover {
  box-shadow: 0 2px 4px rgba(6,62,95,0.06), 0 18px 40px -22px rgba(6,62,95,0.45);
}
.icp-card.featured {
  background: linear-gradient(180deg, var(--vellum-dim) 0%, #ffffff 70%);
  box-shadow: 0 1px 2px rgba(6,62,95,0.05), 0 12px 30px -20px rgba(37,137,201,0.5);
}

/* ---- team: a drafting monogram plate instead of a dashed placeholder box ---- */
.avatar {
  border: 1px solid var(--line-hairline-dark);
  background:
    linear-gradient(135deg, rgba(37,137,201,0.10), transparent 60%),
    var(--vellum-dim);
  font-weight: 600;
  letter-spacing: 0.06em;
  position: relative;
}
.avatar::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(37,137,201,0.28);
  border-radius: 1px;
}

/* ============================================================
   Added 2026-10-01: messaging rebuild from the CRO v3 positioning
   document and the 2026 Executive Summary.
   ============================================================ */

/* ---- engagement program: Sprint, then Scale, then optional retainer.
   Unequal columns on purpose: the entry step carries the most weight.
   The day range above each step is drawn as a dimension line
   (|---- Days 1-90 ----|), the same drafting idiom as the hero. ---- */
.program {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .program { grid-template-columns: 1.2fr 1fr 0.85fr; gap: 0; }
  .program-step + .program-step { border-left: none; }
}
.program-step {
  position: relative;
  padding: 1.5rem 1.5rem 1.7rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--line-hairline-dark);
}
.program-step.entry {
  border-color: var(--blueprint-blue);
  box-shadow: inset 0 3px 0 var(--blueprint-blue), 0 12px 30px -22px rgba(37,137,201,0.55);
  z-index: 1;
}
.program-step.optional {
  background: transparent;
  border-style: dashed;
}
.program-span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 0.9rem;
  padding-inline: 0.45rem;
  margin-bottom: 1.2rem;
  border-inline: 1px solid var(--cyan-line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--blueprint-blue);
  white-space: nowrap;
}
.program-span::before,
.program-span::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line-hairline-dark);
}
.program-step h3 { font-size: 1.15rem; margin-bottom: 0.25em; }
.program-goal {
  font-weight: 600;
  color: var(--heading);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.program-step ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.program-step li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.program-step li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.55rem;
  border-top: 1px solid var(--cyan-line);
}
.program-step .sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--blueprint-blue);
  margin: 0.9rem 0 0.45rem;
}
.program-step .sub:first-of-type { margin-top: 0; }
.program-note {
  margin-top: 1.4rem;
  font-size: 0.92rem;
  max-width: 62ch;
}

/* ---- ICP segments: one row of plain tags instead of a second card grid ---- */
.segments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2.4rem;
  padding: 0;
  list-style: none;
}
.segments li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--heading);
  padding: 0.5em 0.85em;
  border: 1px solid var(--line-hairline-dark);
  background: var(--white);
}

/* ---- fit / not-fit: the exclusions are drawn dashed, as excluded scope ---- */
.fit-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .fit-grid { grid-template-columns: 1fr 1fr; }
}
.fit-col {
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid var(--blueprint-blue);
  background: var(--white);
}
.fit-col.not {
  border: 1px dashed var(--line-hairline-dark);
  background: transparent;
}
.fit-col h3 { font-size: 1.05rem; margin-bottom: 0.9rem; }
.fit-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.fit-col li {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  font-size: 0.95rem;
  line-height: 1.45;
}
.fit-col li::before {
  font-family: var(--font-mono);
  color: var(--blueprint-blue);
}
.fit-col:not(.not) li::before { content: "+"; }
.fit-col.not li::before { content: "\00d7"; color: var(--deep-slate); opacity: 0.7; }

/* ---- logo wall caption: plain sentence case, not another eyebrow ---- */
.marquee-caption {
  font-size: 0.9rem;
  color: var(--deep-slate);
  opacity: 0.8;
  margin: 0;
}

/* ---- final CTA: the line naming what the Sprint opens with ---- */
.final-cta .cta-note {
  max-width: 58ch;
  margin: 0.4rem auto 0;
  font-size: 0.92rem;
}
.blueprint.final-cta .cta-note { color: rgba(244,251,255,0.72); }

/* ---- risk callout under the problem list ---- */
.risk-note {
  margin-top: 1.8rem;
  max-width: 62ch;
  padding-left: 1.1rem;
  border-left: 2px solid var(--blueprint-blue);
}
.risk-note p:last-child { margin-bottom: 0; }

/* ---- comparison table: the one row the full-time hire wins ---- */
table.compare td.hire-wins { color: var(--heading); font-weight: 600; }

/* ---- generic text link (mono, used outside cards) ---- */
.card-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--blueprint-blue);
}
.card-link:hover { color: var(--cyan-line); }
.program-step .card-link { display: inline-block; margin-top: 1.2rem; }
.final-cta h2 { max-width: 24ch; }

/* keep compound terms like "9-month" from splitting at the hyphen */
.nowrap { white-space: nowrap; }

/* ---- homepage hero: the headline spans the full sheet so a 7-word line
   sets in two balanced lines; subtext + CTAs and the title block sit below it.
   Sized for the copy (skill: >6 words should not run at the top display step). */
.cover-head { grid-column: 1 / -1; }
.cover-sheet .cover-head h1 {
  max-width: 26ch;
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);
  margin-bottom: 0;
}
.cover-grid .cover-head + div .lede { margin-top: 0; }

/* ---- team: real headshots replace the monogram plates (2026-10-01).
   Photos share one background tone and drafting grid, so they read as a set. ---- */
.team-card { grid-template-columns: 112px 1fr; align-items: start; }
.headshot {
  display: block;
  width: 112px; height: 112px;
  object-fit: cover;
  border: 1px solid var(--line-hairline-dark);
  background: var(--vellum-dim);
}
.team-grid.lg .team-card { grid-template-columns: 160px 1fr; gap: 1.5rem; }
.team-grid.lg .headshot { width: 160px; height: 160px; }
.team-grid.lg .team-card p { margin-bottom: 0.8em; }
@media (max-width: 520px) {
  .team-card, .team-grid.lg .team-card { grid-template-columns: 1fr; }
  .headshot, .team-grid.lg .headshot { width: 140px; height: 140px; }
}
.team-note { margin-top: 2rem; max-width: 64ch; }
.team-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin: 0.4rem 0 0; }
.blueprint .team-links .card-link { color: var(--light-sky); }

/* ---- headshots, 2026-10-01 revision: looser crop shipped as -v2 files (assets are cached
   for a year, so new crops always get new filenames). Slightly larger on the homepage,
   lighter frame so the photo doesn't read as boxed in. ---- */
.team-card { grid-template-columns: 128px 1fr; }
.headshot { width: 128px; height: 128px; border-color: rgba(53,157,223,0.18); }
.team-grid.lg .team-card { grid-template-columns: 160px 1fr; }
.team-grid.lg .headshot { width: 160px; height: 160px; }
@media (max-width: 520px) {
  .team-card, .team-grid.lg .team-card { grid-template-columns: 1fr; }
  .headshot, .team-grid.lg .headshot { width: 150px; height: 150px; }
}
