/* ==========================================================================
   Bazl: shared site stylesheet
   Positioning: EoR growth and enablement partner (consulting + white-label tech)
   Brand: navy #062c89 · green #00bf63 · Cormorant Garant + Source Sans 3
   NOTE: the /partners/ landing page has its own stylesheet and does not use this file.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --navy:        #062c89;   /* brand navy, matches logo background */
  --navy-deep:   #041f63;
  --ink:         #0b1b44;   /* headings and body on light backgrounds */
  --slate:       #4f5b75;   /* secondary text */
  --mist:        #b9c4dc;   /* secondary text on navy */
  --paper:       #f4f6fa;   /* cool tinted section background */
  --white:       #ffffff;
  --line:        #d9e0ec;
  --line-navy:   rgba(255, 255, 255, 0.16);
  --green:       #00bf63;   /* accent and CTA fill */
  --green-hover: #00d46e;
  --green-text:  #00804a;   /* accessible green for text on white */

  --serif: "Cormorant Garamond", "Cormorant Garant", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 11vw, 136px);
  --radius: 6px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: inherit; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ---- Type --------------------------------------------------------------- */
.display, h1, .h2 {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.04;
}
h1 { font-size: clamp(2.75rem, 6.4vw, 5.25rem); }
.h2 { font-size: clamp(2.125rem, 4.2vw, 3.375rem); line-height: 1.08; }
.h3 { font-family: var(--sans); font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--slate); max-width: 36em; }
.muted { color: var(--slate); }
.small { font-size: 0.9375rem; }
.kicker { /* sentence-case context line above a heading; used sparingly */
  display: block; font-size: 0.9375rem; font-weight: 600; color: var(--green-text); margin-bottom: 18px;
}
.on-navy .kicker { color: var(--green); }

/* ---- Buttons and links -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 24px;
  font: 600 1rem/1.2 var(--sans); letter-spacing: 0.005em;
  border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn--primary { background: var(--green); color: var(--navy-deep); }
.btn--primary:hover { background: var(--green-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.on-navy .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.on-navy .btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link {
  font-weight: 600; color: var(--navy); text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  text-decoration-color: var(--green);
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
.text-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.on-navy .text-link { color: var(--white); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11,27,68,.45); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 30px; list-style: none; }
.nav__list a {
  position: relative; text-decoration: none; font-weight: 500; font-size: 1rem; color: var(--ink); padding: 6px 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none; width: 46px; height: 46px; margin-right: -10px;
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: var(--radius);
}
.nav-toggle svg { margin: auto; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(11,27,68,.35);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 16px 0; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .nav__list a[aria-current="page"] { color: var(--green-text); }
  .nav .btn { margin-top: 22px; width: 100%; }
}

/* ---- Sections ----------------------------------------------------------- */
.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--tight { padding: calc(var(--section) * .66) 0; }
.on-navy { background: var(--navy); color: var(--white); }
.on-navy .lead, .on-navy .muted { color: var(--mist); }
.on-navy--deep { background: var(--navy-deep); }

/* Split: heading column + content column */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__head { position: sticky; top: 112px; }
.split__head .lead { margin-top: 22px; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split__head { position: static; }
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin-top: 22px; }

/* ---- Hero --------------------------------------------------------------- */
.hero { padding: clamp(64px, 10vw, 128px) 0 clamp(72px, 10vw, 120px); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); align-items: end; }
.hero__audience { font-size: 1rem; color: var(--mist); margin-bottom: 26px; }
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: 28px; color: #d3dbee; }
.hero .btn-row { margin-top: 40px; }
.hero--page h1 { max-width: 16ch; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* Stage ladder: Launch / Grow / Differentiate (a real progression) */
.ladder { list-style: none; border-top: 1px solid var(--line-navy); }
.ladder li { display: grid; grid-template-columns: 2.6em 1fr; gap: 6px 14px; padding: 22px 0; border-bottom: 1px solid var(--line-navy); }
.ladder__n { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; line-height: 1; color: var(--green); padding-top: 12px; font-variant-numeric: tabular-nums; }
.ladder__t { font-family: var(--serif); font-size: 1.875rem; line-height: 1.05; font-weight: 500; }
.ladder__d { grid-column: 2; color: var(--mist); font-size: 0.98rem; line-height: 1.5; }

/* One orchestrated load sequence on the hero only */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-enter] { opacity: 0; transform: translateY(14px); }
  .js .hero.is-ready [data-enter] { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .hero.is-ready [data-enter="2"] { transition-delay: .12s; }
  .js .hero.is-ready [data-enter="3"] { transition-delay: .24s; }
  .js .hero.is-ready .ladder li { animation: ladderIn .7s var(--ease) both; }
  .js .hero.is-ready .ladder li:nth-child(1) { animation-delay: .35s; }
  .js .hero.is-ready .ladder li:nth-child(2) { animation-delay: .5s; }
  .js .hero.is-ready .ladder li:nth-child(3) { animation-delay: .65s; }
  .js .hero:not(.is-ready) .ladder li { opacity: 0; }
}
@keyframes ladderIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* ---- Two capabilities --------------------------------------------------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.panel {
  display: flex; flex-direction: column;
  padding: clamp(32px, 4.5vw, 56px);
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy);
  border-radius: 2px;
}
.panel--tech { border-top-color: var(--green); }
.panel__label { font-weight: 600; color: var(--slate); margin-bottom: 14px; }
.panel .h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); margin-bottom: 20px; }
.panel p { color: var(--slate); }
.panel ul { list-style: none; margin: 8px 0 32px; }
.panel li { padding: 10px 0 10px 26px; border-top: 1px solid var(--line); position: relative; }
.panel li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 2px; background: var(--green); }
.panel .text-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 820px) { .pair { grid-template-columns: 1fr; } }

/* ---- Credentials (signature section) ------------------------------------ */
.cred { position: relative; }
.cred__statement {
  font-family: var(--serif); font-weight: 500; font-variant-numeric: lining-nums;
  font-size: clamp(2.125rem, 5vw, 4.25rem); line-height: 1.08; letter-spacing: -0.015em;
  max-width: 19ch;
}
.cred__figure { color: var(--green); white-space: nowrap; }
.cred__attribution { margin-top: 30px; max-width: 46em; color: var(--mist); font-size: 1.0625rem; }
.cred__attribution strong { color: var(--white); font-weight: 600; }
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin-top: clamp(48px, 7vw, 88px); list-style: none; }
.proof li { padding-top: 22px; border-top: 1px solid var(--line-navy); }
.proof h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 8px; color: var(--white); }
.proof p { color: var(--mist); font-size: 0.98rem; line-height: 1.55; margin: 0; }
.cred__person { display: flex; align-items: center; gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.cred__person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.25); }
.cred__person p { margin: 0; line-height: 1.4; }
.cred__person span { color: var(--mist); font-size: 0.95rem; }
@media (max-width: 960px) { .proof { grid-template-columns: 1fr 1fr; gap: 28px 32px; } }
@media (max-width: 560px) { .proof { grid-template-columns: 1fr; gap: 24px; } }

/* ---- Rows (services, capabilities) -------------------------------------- */
.rows { list-style: none; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 40px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.row h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 500; line-height: 1.15; }
.row p { margin: 0; color: var(--slate); }
.row ul { list-style: none; margin-top: 12px; color: var(--ink); font-size: 0.98rem; }
.row ul li { padding: 3px 0 3px 20px; position: relative; }
.row ul li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 8px; height: 2px; background: var(--green); }
@media (max-width: 720px) { .row { grid-template-columns: 1fr; } }

/* ---- Products ----------------------------------------------------------- */
.products { list-style: none; display: grid; gap: clamp(20px, 3vw, 28px); }
.product {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 44px); background: var(--white); border: 1px solid var(--line); border-radius: 2px;
}
.product__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 14px; }
.product__name { font-family: var(--serif); font-size: clamp(1.875rem, 3vw, 2.375rem); font-weight: 500; line-height: 1; }
.product p { color: var(--slate); }
.product__value { list-style: none; margin-top: 6px; }
.product__value li { padding: 9px 0 9px 24px; border-top: 1px solid var(--line); position: relative; font-size: 0.98rem; }
.product__value li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 10px; height: 2px; background: var(--green); }
.product .text-link { display: inline-block; margin-top: 20px; }
@media (max-width: 880px) { .product { grid-template-columns: 1fr; } }

.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px;
  font-size: 0.875rem; font-weight: 600; line-height: 1.2; border-radius: 999px;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--live { background: #e3f7ec; color: #006b3d; }
.status--dev { background: #eef1f8; color: var(--slate); }

/* Placeholder for a missing product screenshot. Replace with a real asset. */
.shot {
  aspect-ratio: 16 / 11; display: grid; place-items: center; text-align: center;
  padding: 24px; border-radius: 4px;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 10px) border-box;
  border: 1px dashed #b8c3d8;
  color: var(--slate); font-size: 0.9rem;
}
.shot strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.375rem; font-weight: 500; margin-bottom: 4px; }

/* ---- Audiences ---------------------------------------------------------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); list-style: none; }
.trio li { padding-top: 26px; border-top: 2px solid var(--ink); }
.trio h3 { margin-bottom: 12px; }
.trio p { color: var(--slate); margin: 0; }
.trio .why { margin-top: 16px; font-size: 0.95rem; color: var(--ink); }
.on-navy .trio li { border-top-color: var(--green); }
.on-navy .trio p { color: var(--mist); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* ---- Steps (sequence: numbers are meaningful) --------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; counter-reset: step; position: relative; }
.steps li { counter-increment: step; padding: 0 28px 0 0; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; line-height: 1;
  background: var(--white); color: var(--navy); border: 1.5px solid var(--navy);
  position: relative; z-index: 1; margin-bottom: 24px;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: 46px; right: 0; height: 1.5px; background: var(--line);
}
.steps h3 { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; margin-bottom: 10px; }
.steps p { color: var(--slate); margin: 0; font-size: 0.99rem; }
.section--paper .steps li::before { background: var(--paper); }
.steps-note { margin-top: 48px; color: var(--slate); max-width: 44em; padding-left: 18px; border-left: 3px solid var(--green); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 36px 70px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li:not(:last-child)::after { top: 46px; bottom: 0; left: 22px; right: auto; width: 1.5px; height: auto; }
}

/* ---- Lists: questions, deliverables ------------------------------------- */
.qs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.qs li { padding: 22px 0; border-top: 1px solid var(--line); }
.qs q { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; font-weight: 500; quotes: "\201C" "\201D"; margin-bottom: 8px; }
.qs p { color: var(--slate); margin: 0; font-size: 0.98rem; }
@media (max-width: 760px) { .qs { grid-template-columns: 1fr; } }

.deliverables { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.deliverables li { padding: 18px 0 18px 30px; border-top: 1px solid var(--line-navy); position: relative; line-height: 1.4; }
.deliverables li::before {
  content: ""; position: absolute; left: 0; top: 22px; width: 14px; height: 14px;
  border: 1.5px solid var(--green); border-radius: 2px;
}
@media (max-width: 900px) { .deliverables { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .deliverables { grid-template-columns: 1fr; } }

/* ---- Callout (scope note) ----------------------------------------------- */
.note {
  padding: 26px 30px; background: var(--paper); border-left: 3px solid var(--navy);
  color: var(--slate); font-size: 0.99rem; max-width: 60em;
}
.note strong { color: var(--ink); }

/* ---- Founder block ------------------------------------------------------ */
.founder { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.founder__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.founder__meta { margin-top: 14px; font-size: 0.95rem; color: var(--mist); }
.founder__meta strong { display: block; color: var(--white); font-size: 1.0625rem; }
.founder blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; font-weight: 500; }
.founder__body { margin-top: 26px; color: var(--mist); max-width: 40em; }
.founder__body strong { color: var(--white); font-weight: 600; }
.section:not(.on-navy) .founder__meta { color: var(--slate); }
.section:not(.on-navy) .founder__meta strong { color: var(--ink); }
.section:not(.on-navy) .founder__body { color: var(--slate); }
.section:not(.on-navy) .founder__body strong { color: var(--ink); }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } .founder__photo { max-width: 200px; } }

/* ---- Benefits ----------------------------------------------------------- */
.benefits { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
.benefits li { padding-top: 20px; border-top: 2px solid var(--green); }
.benefits h3 { font-size: 1.125rem; margin-bottom: 8px; }
.benefits p { color: var(--slate); margin: 0; font-size: 0.98rem; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font-weight: 600; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 0 24px; color: var(--slate); max-width: 46em; }

/* ---- Final CTA ---------------------------------------------------------- */
.cta { text-align: left; }
.cta__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.cta .h2 { max-width: 16ch; }
.cta .lead { margin-top: 22px; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta__meta { color: var(--mist); font-size: 0.95rem; }
@media (max-width: 860px) { .cta__inner { grid-template-columns: 1fr; } }

/* ---- Contact / booking -------------------------------------------------- */
.book { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.book__list { list-style: none; margin: 26px 0 30px; }
.book__list li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; }
.book__list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 2px; background: var(--green); }
.book__frame { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--white); }
.book__frame iframe { display: block; width: 100%; height: 720px; border: 0; }
.book__fallback { margin-top: 14px; font-size: 0.95rem; color: var(--slate); }
@media (max-width: 960px) { .book { grid-template-columns: 1fr; } .book__frame iframe { height: 760px; } }

.form { display: grid; gap: 18px; max-width: 640px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  padding: 12px 14px; border: 1.5px solid #c3cde0; border-radius: var(--radius);
  transition: border-color .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(6,44,137,.15); }
.form__status { font-weight: 600; margin: 0; }
.form__status[data-state="ok"] { color: var(--green-text); }
.form__status[data-state="error"] { color: #b42318; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--mist); padding: 72px 0 36px; font-size: 0.97rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.footer__brand img { height: 40px; width: auto; margin-left: -4px; }
.footer__brand p { margin-top: 18px; max-width: 30em; }
.site-footer h2 { font: 600 1rem/1.3 var(--sans); color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 5px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-navy); font-size: 0.9rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---- Mobile sticky CTA -------------------------------------------------- */
.mobile-cta { display: none; }
@media (max-width: 880px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { width: 100%; }
  body.has-mobile-cta .site-footer { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }

/* ---- Prose (guides, legal pages) ---------------------------------------- */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.15; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.1875rem; font-weight: 600; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: #2d3a5c; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--navy); text-decoration-color: var(--green); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); }
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); max-width: 18ch; }
.page-head .lead { margin-top: 18px; }

/* ---- Print -------------------------------------------------------------- */
@media print {
  .site-header, .mobile-cta, .nav-toggle { display: none !important; }
  .on-navy { background: none; color: #000; }
}

/* ---- Small utilities ---------------------------------------------------- */
.trio .status + .h3 { margin-top: 16px; }
.after-list { margin-top: 48px; }
.faq + .note { margin-top: 40px; }

/* Vertical steps, for use inside a narrow split column */
.steps--stack { grid-template-columns: 1fr; gap: 0; }
.steps--stack li { padding: 0 0 36px 70px; }
.steps--stack li::before { position: absolute; left: 0; top: 0; margin: 0; }
.steps--stack li:not(:last-child)::after { top: 46px; bottom: 0; left: 22px; right: auto; width: 1.5px; height: auto; }
.steps--stack li:last-child { padding-bottom: 0; }

/* ---- Content pages (legal, PE guide): existing markup, restyled --------- */
.page-wrap { max-width: 780px; margin: 0 auto; padding: clamp(56px, 8vw, 88px) var(--gutter) var(--section); }
.page-header { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.page-header .label { display: block; font-weight: 600; color: var(--green-text); margin-bottom: 14px; }
.page-header h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 16px; }
.page-header p { color: var(--slate); font-size: 1.125rem; margin: 0; }
.page-header .updated { font-size: 0.95rem; }
.policy-body h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.625rem, 2.6vw, 2rem); line-height: 1.15; margin: 48px 0 14px; }
.policy-body h3 { font-size: 1.0625rem; font-weight: 600; margin: 28px 0 10px; }
.policy-body p, .policy-body li { color: #2d3a5c; }
.policy-body ul, .policy-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.policy-body li { margin-bottom: .5em; }
.policy-body a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }
.policy-body .highlight-box { background: var(--paper); border-left: 3px solid var(--navy); padding: 20px 24px; margin: 28px 0; }
.policy-body .highlight-box p { margin: 0; }
.risk-card { padding: 20px 24px; margin: 16px 0; background: var(--white); border: 1px solid var(--line); border-left-width: 4px; }
.risk-card h3 { margin-top: 0; }
.risk-card p { margin: 0; }
.risk-card.high { border-left-color: #c0392b; }
.risk-card.medium { border-left-color: #d98e04; }
.risk-card.low { border-left-color: var(--green); }
.cta-box { margin-top: 56px; padding: clamp(28px, 4vw, 44px); background: var(--navy); color: var(--white); }
.cta-box h2 { margin-top: 0 !important; color: var(--white); }
.cta-box p { color: var(--mist) !important; }
.cta-box .btn-row { margin-top: 24px; }

/* Product card with a real screenshot shown full width beneath the copy */
.product--media-below { grid-template-columns: 1fr; }
.product--media-below > div:first-child { max-width: 760px; }
.screen { margin: 8px 0 0; }
.screen img {
  width: 100%; height: auto; border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -36px rgba(11, 27, 68, 0.45);
}
.screen figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--slate); }

/* Cropped screenshot: fade the cut-off lower edge into the card */
.screen__crop { position: relative; }
.screen--fade img { border: 0; border-radius: 6px 6px 0 0; box-shadow: none; }
.screen__crop::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 42%;
  background: linear-gradient(to bottom, rgba(244,246,250,0), var(--paper) 90%);
  pointer-events: none;
}

/* =========================================================================
   Phase 2 refinements
   ========================================================================= */

/* ---- Readability and mobile type ---------------------------------------- */
.small { font-size: 0.95rem; }
@media (max-width: 600px) {
  .hero--page h1 { font-size: clamp(2.25rem, 9.5vw, 2.75rem); }
  .hero .btn-row .btn, .cta__actions .btn, .offer .btn { width: 100%; }
  .hero .btn-row { flex-direction: column; }
  .lead { font-size: 1.0625rem; }
}

/* ---- Contact / booking -------------------------------------------------- */
.page-head--book { padding-bottom: clamp(28px, 4vw, 40px); }
.page-head--book .lead { max-width: 40em; }
.book-topic {
  display: inline-block; margin: 20px 0 0; padding: 8px 14px;
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--green);
  font-weight: 600; color: var(--ink);
}
.book-topic[hidden] { display: none; }
.book-points { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin: 28px 0 0; }
.book-points li { padding: 12px 0 0 0; border-top: 2px solid var(--green); font-size: 0.98rem; line-height: 1.45; color: var(--ink); }
.book-meta { margin: 20px 0 0; color: var(--slate); font-size: 0.95rem; }
@media (max-width: 860px) { .book-points { grid-template-columns: 1fr 1fr; gap: 16px 24px; } }
@media (max-width: 480px) { .book-points { grid-template-columns: 1fr; gap: 12px; } }

.booking { padding-top: clamp(28px, 4vw, 48px); }
.booking .book__frame iframe { height: 760px; }
@media (max-width: 960px) { .booking .book__frame iframe { height: 940px; } }
@media (max-width: 640px) {
  .booking .wrap { padding-left: 12px; padding-right: 12px; }
  .booking .book__frame { border-radius: 0; border-left: 0; border-right: 0; }
  .booking .book__frame iframe { height: 1320px; }
}
.booking .book__fallback {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  margin-top: 18px; padding: 18px 22px; background: var(--paper); border-radius: 4px; color: var(--ink); font-size: 1rem;
}
.booking .book__fallback p { margin: 0; }

.field__opt { font-weight: 400; color: var(--slate); }
.field__error { margin: 6px 0 0; color: #b42318; font-size: 0.92rem; font-weight: 600; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b42318; }
.field input, .field select, .field textarea { min-height: 48px; font-size: 1rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Technology: solutions ---------------------------------------------- */
.solution {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(32px, 5vw, 72px);
  padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line);
}
.solution:first-of-type { border-top: 0; padding-top: 0; }
.solution__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 10px; }
.solution__name { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; }
.solution__position { font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 12px; }
.solution__problem { color: var(--slate); margin-bottom: 24px; }
.solution__benefits { list-style: none; align-self: start; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.solution__benefits li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.solution__benefits h4 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 4px; }
.solution__benefits p { margin: 0; color: var(--slate); font-size: 0.99rem; }
.solution__media { grid-column: 1 / -1; margin-top: 8px; }
.solution--dev .solution__benefits { border-top-color: var(--line); }
.screen figcaption .text-link { margin-left: 6px; white-space: nowrap; }
@media (max-width: 860px) { .solution { grid-template-columns: 1fr; } }
#products:focus, #readiness:focus { outline: none; }

/* ---- Consulting: readiness offer ---------------------------------------- */
.offer {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 5vw, 64px); background: var(--paper);
  border-top: 4px solid var(--green); border-radius: 2px;
}
.offer .h2 { margin-bottom: 18px; }
.offer .lead { color: var(--ink); margin-bottom: 14px; }
.offer .muted { margin-bottom: 28px; max-width: 38em; }
.offer__scope .h3 { margin-bottom: 14px; }
.ticks { list-style: none; }
.ticks li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px;
  border-left: 2px solid var(--green-text); border-bottom: 2px solid var(--green-text); transform: rotate(-45deg);
}
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; } }

.list-title { margin-bottom: 8px; }
.deliverables--light { grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.deliverables--light li { border-top-color: var(--line); }
@media (max-width: 560px) { .deliverables--light { grid-template-columns: 1fr; } }

/* ---- Founder quote heading (consulting) --------------------------------- */
.founder__quote { font-family: var(--serif); font-weight: 500; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; font-variant-numeric: lining-nums; }

/* ---- Home: founder record ----------------------------------------------- */
.cred__heading {
  font-family: var(--serif); font-weight: 500; font-variant-numeric: lining-nums;
  font-size: clamp(2.125rem, 4.6vw, 3.75rem); line-height: 1.08; letter-spacing: -0.012em; max-width: 18ch;
}
.record { margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; }
.record__caption { color: var(--mist); font-size: 1rem; margin-bottom: 18px; }
.record__figures {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0;
  border-top: 1px solid var(--line-navy); border-bottom: 1px solid var(--line-navy);
}
.record__figures > div { padding: 28px 28px 28px 0; }
.record__figures > div + div { padding-left: 28px; border-left: 1px solid var(--line-navy); }
.record__figures dt {
  font-family: var(--serif); font-weight: 500; font-variant-numeric: lining-nums;
  font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; color: var(--white);
}
.record__figures > div:first-child dt { color: var(--green); }
.record__figures dd { margin: 10px 0 0; color: var(--mist); font-size: 1rem; line-height: 1.4; }
.cred .cred__attribution { margin-top: 28px; }
.cred__more { margin-left: auto; }
@media (max-width: 720px) {
  .record__figures { grid-template-columns: 1fr; }
  .record__figures > div { padding: 20px 0; }
  .record__figures > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-navy); }
  .cred__person { flex-wrap: wrap; }
  .cred__more { margin-left: 0; flex-basis: 100%; }
}

/* ---- About: founder statement ------------------------------------------- */
.statement { margin: 0; }
.statement p { color: var(--slate); font-size: 1.125rem; line-height: 1.7; max-width: 38em; }
.statement .statement__lead {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.2; color: var(--ink); margin-bottom: 24px;
}
.statement__by { margin-top: 24px; font-weight: 600; color: var(--ink); }
.statement__by::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--green); vertical-align: middle; margin-right: 12px; }
.founder blockquote.statement { font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
.statement p { font-family: var(--sans); }
.statement .statement__lead { font-family: var(--serif); }
.statement__by { font-family: var(--sans); font-size: 1rem; }
/* The navy logo file has a faint light edge; clip it so it disappears on navy */
.footer__brand img { clip-path: inset(2px 2px 2px 2px); }

/* ---- Technology: FlexCheck report spread -------------------------------- */
.report { margin: 8px 0 0; }
.report__pages {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px);
  padding: clamp(24px, 4vw, 56px); background: var(--white); border: 1px solid var(--line); border-radius: 4px;
}
.report__page {
  width: 100%; height: auto; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(11,27,68,.12), 0 24px 48px -28px rgba(11,27,68,.45);
}
.report figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 14px; font-size: 0.92rem; color: var(--slate); }
.report figcaption .text-link { white-space: nowrap; }
@media (max-width: 560px) {
  .report__pages { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
}
