/* ===========================================================
   Veritas Concept Engineering — Site Stylesheet
   Palette pulled directly from the company deck & logo:
   Navy #0B1F4B / Gold #FFC300 / Slate #5A6478 / Paper #F4F6FB
   =========================================================== */

:root {
  --navy: #0b1f4b;
  --navy-light: #1c3b7a;
  --navy-lighter: #2c4d8c;
  --navy-dark: #1a2233;
  --slate: #5a6478;
  --slate-light: #838ea3;
  --paper: #f4f6fb;
  --paper-dim: #e7ebf5;
  --white: #ffffff;
  --gold: #ffc300;
  --gold-light: #ffd54a;
  --gold-text: #8a6a00; /* WCAG-safe amber for text/links on light backgrounds */
  --ice: #cadcfc;
  --cream: #fff6dc;
  --line: #d9dee8;

  --font-head: 'Poppins', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1120px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--slate); }
a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1.3em;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.section-navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow {
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { height: 38px; width: auto; }
.logo .logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  line-height: 1.28;
}
.logo .logo-text span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 0;
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.96rem;
}
nav.main-nav a:hover { color: var(--gold-text); text-decoration: none; }
nav.main-nav a.active { color: var(--gold-text); }

.nav-cta { display: flex; align-items: center; gap: 24px; }
.nav-cta .btn { padding: 10px 22px; font-size: 0.88rem; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { color: var(--white); max-width: 780px; }
.hero p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.2rem;
  max-width: 620px;
  margin-bottom: 2em;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); }
.page-hero p.lead { color: rgba(255,255,255,0.78); max-width: 640px; font-size: 1.08rem; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.section-alt { background: var(--paper-dim); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.78); }

.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Grids / Cards ---------- */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 28px;
}
.card .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold-text);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: block;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.97rem; }

.section-navy .card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
.section-navy .card .num { color: var(--gold); }
.section-navy .card h3 { color: var(--white); }

/* service card thumbnail preview — surfaces sample-work images without a click-through */
.card.service-teaser { padding: 0 0 28px; overflow: hidden; }
.card.service-teaser .teaser-thumb { width: 100%; aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--paper-dim); }
.card.service-teaser .teaser-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.service-teaser .teaser-thumb .icon-circle { position: absolute; bottom: -22px; left: 20px; margin: 0; border: 3px solid var(--white); }
.card.service-teaser .teaser-body { padding: 34px 26px 0; }
.card.service-teaser .used-when { margin-top: 14px; }

/* icon circle used throughout (service icons, stakeholders, process) */
.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 16px;
}
.icon-circle svg, .icon-circle .glyph {
  width: 24px;
  height: 24px;
  color: var(--navy);
}
.section-navy .icon-circle { background: var(--gold); }

.stat-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  text-align: center;
}
.stat-row .stat { width: 220px; }
.stat-row .stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--gold);
  font-weight: 700;
}
.stat-row .stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
}

/* research stat cards (light bg) */
.research-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0; }
.research-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
}
.research-card b {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--navy);
  font-weight: 700;
}
.research-card .sub {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  margin: 4px 0 10px;
}
.research-card p { font-size: 0.88rem; margin-bottom: 0; }
.research-source { font-size: 0.8rem; color: var(--slate-light); margin-top: 8px; }

/* ---------- Quote / callout ---------- */
.callout {
  border-left: 4px solid var(--gold);
  padding: 6px 0 6px 28px;
  margin: 2em 0;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 500;
}
.section-navy .callout { color: var(--white); }

/* ---------- Process steps ---------- */
.process-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 40px;
}
.process-step { text-align: center; position: relative; }
.process-step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: calc(50% + 26px);
  width: calc(100% - 52px);
  height: 2px;
  background: var(--line);
}
.process-step h4 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}
.process-step p { font-size: 0.82rem; margin-bottom: 0; }

/* ---------- Sample work gallery ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.work-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.work-item .work-img-wrap { position: relative; cursor: zoom-in; }
.work-item img { width: 100%; height: 210px; object-fit: cover; display: block; background: var(--paper-dim); }
.work-item .work-img-wrap::after {
  content: "⤢ View full size";
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(11,31,75,0.85);
  color: var(--white);
  font-size: 0.72rem;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.work-item .work-img-wrap:hover::after { opacity: 1; }
.work-item .work-body { padding: 18px 20px; }
.work-item .work-num { font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; color: var(--gold-text); letter-spacing: 0.08em; }
.work-item h3 { font-size: 1.02rem; margin: 6px 0 6px; }
.work-item p { font-size: 0.88rem; margin-bottom: 10px; }
.work-item .work-stat {
  display: block;
  font-size: 0.82rem;
  color: var(--navy);
  background: var(--paper-dim);
  border-radius: 5px;
  padding: 8px 10px;
  font-weight: 600;
  margin-bottom: 0;
}
.work-item .work-stat b { color: var(--gold-text); }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,31,75,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  cursor: default;
}
.lightbox-caption {
  color: rgba(255,255,255,0.85);
  text-align: center;
  font-size: 0.9rem;
  max-width: 700px;
  margin: 16px auto 0;
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

/* ---------- Timeline compare (traditional vs VCE) ---------- */
.tc-wrap { margin: 20px 0 8px; }
.tc-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 20px;
  margin-bottom: 18px;
}
.tc-row.tc-vce { border-color: var(--gold); box-shadow: 0 4px 18px rgba(11,31,75,0.07); }
.tc-row-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}
.tc-row.tc-vce .tc-row-label { color: var(--gold-text); }
.tc-stages { display: flex; gap: 14px; flex-wrap: wrap; }
.tc-stage { flex: 1; min-width: 200px; }
.tc-stage-head {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--paper-dim);
}
.tc-step {
  font-size: 0.85rem;
  color: var(--slate);
  padding: 7px 10px;
  border-radius: 4px;
  margin-bottom: 5px;
}
.tc-step.added {
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
  border: 1px dashed var(--gold);
}
.tc-caption {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--slate);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.tc-caption strong { color: var(--navy); font-style: normal; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 52px 0 30px;
  font-size: 0.92rem;
}
footer.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer.site-footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
footer.site-footer .footer-logo img { height: 30px; width: auto; }
footer.site-footer .footer-logo span {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
}
footer.site-footer a { color: rgba(255,255,255,0.75); }
footer.site-footer a:hover { color: var(--gold-light); }
footer.site-footer .footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
footer.site-footer .footer-links h4 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
footer.site-footer .footer-links ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer .footer-links li { margin-bottom: 8px; }
footer.site-footer .bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

/* ---------- Forms ---------- */
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--navy);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* ---------- Utility ---------- */
.contact-block { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 28px; }
.contact-item .label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 6px;
  display: block;
}
.contact-item a, .contact-item span.val { font-size: 1.15rem; color: var(--navy); font-weight: 500; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.tag-list span {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--slate);
}

.avatar-frame {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--navy-lighter), var(--navy));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 700;
}
.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

/* published article list */
.article-list { border-top: 1px solid var(--line); margin-top: 8px; }
.article-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.article-item .a-meta {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 6px;
}
.article-item h3 { margin-bottom: 4px; font-size: 1.05rem; }
.article-item p { margin-bottom: 0; font-size: 0.9rem; }
.article-item .a-body { max-width: 640px; }

/* when-to-engage cards */
.engage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.engage-card { text-align: left; }
.engage-card h3 { font-size: 1rem; }
.engage-card p { font-size: 0.86rem; margin-bottom: 0; }

/* ---------- Service detail pages ---------- */
.service-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.service-meta .service-count {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 12px;
  border-radius: 20px;
}

.full-work-image { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; position: relative; }
.full-work-image img { width: 100%; display: block; }
.full-work-image::after {
  content: "⤢ View full size";
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(11,31,75,0.85);
  color: var(--white);
  font-size: 0.75rem;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.full-work-image:hover::after { opacity: 1; }
.work-image-caption { font-size: 0.85rem; color: var(--slate-light); margin-top: 12px; }

/* relationship tier legend */
.tier-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.tier-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--navy);
}
.tier-chip .dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.tier-chip b { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.04em; }

/* space metrics table */
.metric-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.9rem; }
.metric-table th, .metric-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.metric-table th { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); background: var(--paper-dim); }
.metric-table td.num { font-weight: 700; color: var(--navy); }
.metric-table tr:last-child td { border-bottom: none; }

/* breakdown bars (space by function) */
.breakdown-bars { margin: 22px 0; }
.bbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.bbar-label { width: 150px; flex-shrink: 0; font-size: 0.82rem; color: var(--slate); }
.bbar-track { flex: 1; background: var(--paper-dim); border-radius: 4px; height: 14px; overflow: hidden; }
.bbar-fill { height: 100%; background: var(--gold); border-radius: 4px; }
.bbar-val { width: 42px; flex-shrink: 0; font-size: 0.82rem; font-weight: 700; color: var(--navy); text-align: right; }

/* insight split (flow analysis) */
.insight-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 28px;
}
.insight-card h3 { color: var(--gold); font-size: 0.95rem; letter-spacing: 0.02em; margin-bottom: 10px; }
.insight-card p { color: rgba(255,255,255,0.82); margin-bottom: 0; font-size: 0.95rem; }

/* deliverables checklist (concept package) */
.deliverables-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.deliverable {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
}
.deliverable .d-check {
  width: 24px; height: 24px; border-radius: 50%; background: var(--gold);
  color: var(--navy); font-weight: 700; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.deliverable span.d-text { font-size: 0.92rem; color: var(--navy); font-weight: 500; padding-top: 2px; }

/* cross-links between service pages */
.service-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.service-nav a { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.service-nav a:hover { color: var(--gold-text); }
.service-nav .snav-mid { font-size: 0.85rem; color: var(--slate-light); }

/* service overview teaser cards on hub page */
.service-teaser { display: flex; flex-direction: column; height: 100%; }
.service-teaser p { flex: 1; }
.learn-more { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--navy-light); margin-top: 8px; display: inline-block; }
.learn-more:hover { color: var(--gold-text); }
.service-teaser .used-when { font-size: 0.82rem; color: var(--slate-light); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.service-teaser .used-when b { color: var(--navy); }

/* ---------- OFP Gate Process ---------- */
.ofp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.ofp-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 24px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ofp-card .phase-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; flex-shrink: 0;
}
.ofp-card h3 { font-size: 1.08rem; margin-bottom: 8px; min-height: 46px; box-sizing: border-box; }
.ofp-card .phase-desc { font-size: 0.9rem; min-height: 128px; box-sizing: border-box; }
.ofp-card .ofp-accountable { border-top: 1px solid var(--line); padding: 16px 0; box-sizing: border-box; }
.ofp-card .ofp-accountable .label {
  display: block; font-family: var(--font-head); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-light); margin-bottom: 4px;
}
.ofp-card .ofp-accountable .role { font-size: 0.87rem; font-weight: 600; color: var(--slate); display: block; min-height: 52px; box-sizing: border-box; }
.ofp-gate { background: var(--paper-dim); margin: 0 -24px; padding: 18px 24px 22px; min-height: 210px; box-sizing: border-box; flex: 1; }
.ofp-gate .gate-label {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 8px;
}
.ofp-gate .gate-label svg { width: 15px; height: 15px; flex-shrink: 0; }
.ofp-gate .gate-name { font-weight: 700; color: var(--navy); font-size: 0.95rem; margin-bottom: 6px; }
.ofp-gate .gate-q { font-size: 0.84rem; font-style: italic; color: var(--slate); margin-bottom: 0; }
.ofp-gate .ori-chip {
  display: inline-block; margin-top: 12px; background: var(--ice); color: var(--navy);
  font-weight: 700; font-size: 0.76rem; padding: 7px 12px; border-radius: 20px; line-height: 1.3;
}
.ofp-definitions { max-width: 820px; margin: 40px auto 0; text-align: center; }
.ofp-definitions p { font-size: 0.92rem; margin-bottom: 8px; color: var(--slate); }
.ofp-definitions b { color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ofp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row .stat { width: 160px; gap: 28px; }
  .research-row { grid-template-columns: minmax(0, 1fr); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .process-row .process-step:nth-child(n+5) { margin-top: 20px; }
  .process-row .process-step:nth-child(4)::after { display: none; }
  .timeline .t-row { flex-direction: column; }
  .timeline .t-label { width: 100%; }
  .timeline .t-phase { border-left: none; border-top: 1px solid var(--line); }
  .tc-stages { flex-direction: column; }
  .deliverables-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bbar-label { width: 110px; font-size: 0.76rem; }
  nav.main-nav { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--paper); padding: 20px 28px; display: none; overflow-y: auto; }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 4px; }
  nav.main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta .btn.hide-mobile { display: none; }
  .menu-toggle { display: block; }
  footer.site-footer .footer-top { flex-direction: column; }
}

@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .work-grid { grid-template-columns: 1fr; }
  .engage-grid { grid-template-columns: 1fr; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .ofp-grid { grid-template-columns: 1fr; }
  .service-nav { flex-direction: column; align-items: flex-start; }
}
