/* ==========================================================================
   FormWork Human Capital — styles.css
   Implements locked tokens from specification §3 (brand), §3.4 (layout),
   §3.6 (motion), §37 (accessibility), §38 (performance).
   ========================================================================== */

/* --- Locked colour tokens (spec §3.2) ---------------------------------- */
:root {
  --navy: #0D1B2A;
  --navy-2: #172A3E;
  --blue: #1B4F8A;
  --deep-blue: #143C6B;
  --sky: #5B9BD5;
  --pale-blue: #E8F0FA;
  --green: #1B6F3A;
  --light-green: #E8F5E9;
  --gold: #B5800A;
  --cream: #F5F3EE;
  --white: #FFFFFF;
  --ink: #24313F;
  --muted: #5B6470;
  --line: #DCE3EA;
  --warm-line: #E4E1D9;

  /* Typography (spec §3.3) */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --display-xl: clamp(3rem, 6vw, 5.9rem);
  --display-lg: clamp(2.2rem, 3.8vw, 3.4rem);
  --h1: clamp(2.4rem, 5vw, 4.5rem);
  --h2: clamp(1.75rem, 2.9vw, 2.6rem);
  --h3: clamp(1.25rem, 1.7vw, 1.55rem);
  --body-lg: clamp(1.05rem, 1.2vw, 1.2rem);
  --body: 1rem;
  --small: 0.875rem;

  /* Layout (spec §3.4) */
  --site-max: 1240px;
  --reading-max: 740px;
  --section-y: 112px;
  --gutter: 40px;
  --radius: 2px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1024px) { :root { --section-y: 80px; --gutter: 32px; } }
@media (max-width: 640px)  { :root { --section-y: 64px; --gutter: 20px; } }

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--navy);
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* --- Accessibility (spec §37) ------------------------------------------ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  background: var(--navy);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: var(--small);
  font-weight: 600;
  transition: top 180ms var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.section--navy :focus-visible,
.site-footer :focus-visible { outline-color: var(--sky); }

.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;
}

/* --- Layout primitives -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--site-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.reading { max-width: var(--reading-max); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.66); }
.section--cream { background: var(--cream); }
.section--pale { background: var(--pale-blue); }
.section--navy { background: var(--navy); color: rgba(255,255,255,0.82); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 780px; margin-bottom: 64px; }
.section-head > * + * { margin-top: 20px; }
@media (max-width: 640px) { .section-head { margin-bottom: 44px; } }

/* --- Type utilities ----------------------------------------------------- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--green { color: var(--green); }
.eyebrow--sky { color: var(--sky); }

.h-display { font-size: var(--display-lg); }
.h-1 { font-size: var(--h1); }
.h-2 { font-size: var(--h2); }
.h-3 { font-size: var(--h3); }

.lede {
  font-size: var(--body-lg);
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
}
.section--navy .lede { color: rgba(255,255,255,0.78); }

.prose > * + * { margin-top: 1.35em; }
.prose p { font-size: 1.0625rem; line-height: 1.78; color: var(--ink); }
.prose h2 { font-size: 1.85rem; margin-top: 2.4em; }
.prose h3 { font-size: 1.35rem; margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose li { margin-top: 0.6em; line-height: 1.72; position: relative; padding-left: 1.1em; }
.prose li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.72em;
  width: 5px; height: 5px;
  background: var(--blue);
  border-radius: 50%;
}
.prose ol { counter-reset: n; }
.prose ol li::before {
  counter-increment: n;
  content: counter(n) '.';
  background: none;
  width: auto; height: auto;
  top: 0; left: 0;
  color: var(--blue);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.95em;
}
.prose strong { font-weight: 600; color: var(--navy); }
.prose a:not(.btn) {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: text-decoration-color 180ms var(--ease);
}
.prose a:not(.btn):hover { text-decoration-color: var(--blue); }

.naira { font-family: var(--font-body); }

/* --- Buttons (spec §40 — locked CTA labels) ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
  min-height: 50px;
  padding: 16px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: background-color 200ms var(--ease), color 200ms var(--ease),
              border-color 200ms var(--ease), transform 200ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--primary:hover { background: var(--deep-blue); border-color: var(--deep-blue); }

.btn--dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--dark:hover { background: var(--navy-2); border-color: var(--navy-2); }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); border-color: var(--white); }

.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.link-arrow::after { content: '\2192'; transition: transform 200ms var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

.link-inline {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: text-decoration-color 180ms var(--ease);
}
.link-inline:hover { text-decoration-color: var(--blue); }

/* --- Header (spec §4.2) -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  max-width: var(--site-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 48px; width: auto; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  padding-block: 8px;
  transition: color 180ms var(--ease);
}
.nav__link:hover { color: var(--blue); }
.nav__link[aria-current="page"] { color: var(--blue); }

/* Dropdown */
.nav__item { position: relative; }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  padding-block: 8px;
  transition: color 180ms var(--ease);
}
.nav__toggle:hover { color: var(--blue); }
.nav__toggle svg { width: 11px; height: 11px; transition: transform 220ms var(--ease); }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -20px;
  min-width: 330px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(13,27,42,0.10);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
}
.nav__toggle[aria-expanded="true"] + .nav__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__menu a {
  display: block;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--ink);
  border-radius: var(--radius);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.nav__menu a:hover { background: var(--pale-blue); color: var(--blue); }

.nav__cta { margin-left: 4px; padding: 13px 22px; min-height: 44px; font-size: 0.875rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--navy);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88%, 380px);
  background: var(--white);
  z-index: 200;
  padding: 84px 28px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 300ms var(--ease);
  box-shadow: -12px 0 36px rgba(13,27,42,0.12);
}
.drawer[data-open="true"] { transform: translateX(0); }
.drawer[data-open="false"] { visibility: hidden; pointer-events: none; }
.drawer[inert] { pointer-events: none; }
.drawer__close {
  position: absolute; top: 22px; right: 22px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 1.4rem;
}
.drawer a {
  display: block;
  padding: 15px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.drawer__group-label {
  display: block;
  margin-top: 22px;
  padding-bottom: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.drawer__group a { padding-left: 14px; font-size: 1rem; }
.drawer .btn { margin-top: 28px; width: 100%; }

.overlay {
  position: fixed; inset: 0;
  background: rgba(13,27,42,0.5);
  z-index: 199;
  opacity: 0; visibility: hidden;
  transition: opacity 250ms var(--ease), visibility 250ms;
}
.overlay[data-open="true"] { opacity: 1; visibility: visible; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header__inner { min-height: 76px; }
  .brand img { height: 40px; }
}

/* --- Breadcrumbs (spec §28) --------------------------------------------- */
.breadcrumb { font-size: var(--small); color: var(--muted); margin-bottom: 28px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: '/'; color: var(--line); }
.breadcrumb a { transition: color 180ms var(--ease); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb [aria-current="page"] { color: var(--ink); }
.page-hero .breadcrumb { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb li + li::before { color: rgba(255,255,255,0.3); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb [aria-current="page"] { color: rgba(255,255,255,0.9); }

/* --- Hero (homepage) ----------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 86vh;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}
.hero__media { position: absolute; inset: 0; z-index: 1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(100deg,
    rgba(13,27,42,0.95) 0%,
    rgba(20,60,107,0.84) 52%,
    rgba(27,79,138,0.62) 100%);
}
.hero__inner { position: relative; z-index: 3; width: 100%; padding-block: 148px 104px; }
.hero__content { max-width: 860px; }
.hero__content > * + * { margin-top: 26px; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.05; }
.hero__lede { font-size: var(--body-lg); color: rgba(255,255,255,0.86); max-width: 620px; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero__inner { padding-block: 112px 72px; }
}

/* --- Page hero (interior) ------------------------------------------------ */
.page-hero {
  background: linear-gradient(118deg, var(--navy) 0%, var(--deep-blue) 100%);
  color: var(--white);
  padding-block: 128px 96px;
}
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 3.6vw, 3.2rem); max-width: 19ch; line-height: 1.08; }
.page-hero__lede {
  font-size: var(--body-lg);
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  line-height: 1.6;
  margin-top: 26px;
}
.page-hero .eyebrow { color: rgba(255,255,255,0.65); margin-bottom: 20px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
@media (max-width: 640px) { .page-hero { padding-block: 96px 64px; } }

/* --- Service page media band (spec item 13) ------------------------------- */
.page-media {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: linear-gradient(125deg, var(--navy) 0%, var(--deep-blue) 62%, var(--blue) 100%);
}
/* object-position biased slightly above centre so faces sit in frame
   rather than being cropped at the top of the band. */
.page-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.page-media__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 32px var(--gutter);
}
.page-media__fallback span {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
@media (max-width: 760px) {
  /* spec §19K — taller crop on mobile retains the subject */
  .page-media { aspect-ratio: 4 / 3; }
}

/* --- Toolkit product preview --------------------------------------------- */
.toolkit-preview {
  background: var(--cream, #F6F4EF);
  border: 1px solid var(--stone, #E6DFD0);
  border-radius: 4px;
  overflow: hidden;
}
.toolkit-preview img {
  width: 100%;
  height: auto;
  display: block;
}
.toolkit-preview__caption {
  padding: 16px 20px;
  border-top: 1px solid var(--stone, #E6DFD0);
  font-family: var(--font-body);
  font-size: var(--small);
  color: var(--muted);
  line-height: 1.6;
}

/* --- Positioning strip --------------------------------------------------- */
.strip { border-bottom: 1px solid var(--line); background: var(--cream); }
.strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-block: 44px;
}
.strip__item h3 { font-size: 1.0625rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 8px; }
.strip__item p { font-size: var(--small); color: var(--muted); line-height: 1.62; }
@media (max-width: 860px) { .strip__inner { grid-template-columns: 1fr; gap: 26px; } }

/* --- Featured entry point (diagnostic doorway) --------------------------- */
.feature-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 56px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  transition: background-color 250ms var(--ease), transform 250ms var(--ease);
}
.feature-panel:hover { background: var(--deep-blue); transform: translateY(-2px); }
.feature-panel .eyebrow { color: rgba(255,255,255,0.72); margin-bottom: 14px; }
.feature-panel h2 { color: var(--white); font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: 16px; }
.feature-panel p { color: rgba(255,255,255,0.85); max-width: 640px; line-height: 1.65; }
@media (max-width: 860px) { .feature-panel { grid-template-columns: 1fr; gap: 30px; padding: 40px 30px; } }

/* --- Service grid -------------------------------------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.svc {
  display: flex;
  flex-direction: column;
  padding: 44px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 240ms var(--ease);
}
.svc:last-child { border-right: none; }
.svc:hover { background: var(--pale-blue); }
.svc h3 { font-size: 1.5rem; margin-bottom: 14px; transition: color 200ms var(--ease); }
.svc:hover h3 { color: var(--blue); }
.svc p { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; margin-bottom: 26px; flex-grow: 1; }
.svc .link-arrow { align-self: flex-start; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc { border-right: none; padding: 36px 28px; }
}

/* --- Process / framework steps ------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .steps--two { grid-template-columns: 1fr; } }
.step {
  padding: 42px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-right: none; }
.step__num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}
.step h3 { font-size: 1.3rem; margin-bottom: 12px; }
.step p { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; }
.section--navy .step { border-color: rgba(255,255,255,0.12); }
.section--navy .step p { color: rgba(255,255,255,0.75); }
.section--navy .steps { border-color: rgba(255,255,255,0.12); }
@media (max-width: 1000px) { .steps, .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .steps, .steps--4 { grid-template-columns: 1fr; } .step { border-right: none; padding: 32px 24px; } }

/* --- Engage cards (other ways to work) ----------------------------------- */
.engage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.engage__card {
  display: flex;
  flex-direction: column;
  padding: 46px 36px;
  border-right: 1px solid var(--line);
  transition: background-color 240ms var(--ease);
}
.engage__card:last-child { border-right: none; }
.engage__card:hover,
.engage__card:focus-within { background: var(--cream); }
/* On the navy "other ways to work" band the cards must never flip to a light
   fill — the copy is white. Shift to a lighter brand navy instead. */
.section--navy .engage__card:hover,
.section--navy .engage__card:focus-within { background: var(--navy-2); }
.section--navy .engage__card { border-color: rgba(255,255,255,0.12); }
.section--navy .engage__card h3 { color: var(--white); }
.section--navy .engage__card p { color: rgba(255,255,255,0.78); }
.section--navy .engage__card .link-arrow { color: var(--sky); }
.section--navy .engage__card:hover .link-arrow::after,
.section--navy .engage__card:focus-within .link-arrow::after { transform: translateX(4px); }
.engage__card .eyebrow { margin-bottom: 16px; }
.engage__card h3 { font-size: 1.4rem; margin-bottom: 14px; }
.engage__card p { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; flex-grow: 1; margin-bottom: 22px; }
.engage__meta { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); margin-bottom: 4px; }
.engage__note { font-size: var(--small); color: var(--muted); margin-bottom: 24px; }
.engage__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
@media (max-width: 1000px) {
  .engage { grid-template-columns: 1fr; }
  .engage__card { border-right: none; border-bottom: 1px solid var(--line); padding: 38px 28px; }
  .engage__card:last-child { border-bottom: none; }
}

/* --- Compliance / insight preview ---------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat {
  padding: 48px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 240ms var(--ease);
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--light-green); }
.stat__meta {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--green); margin-bottom: 24px;
}
.stat__meta::before {
  content: ''; width: 7px; height: 7px;
  background: var(--green); border-radius: 50%; flex-shrink: 0;
}
.stat__figure {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.stat__figure .unit { font-size: 0.42em; color: var(--muted); }
.stat h3 { font-size: 1.15rem; margin-bottom: 14px; }
.stat p { font-size: 0.9375rem; color: var(--muted); line-height: 1.62; margin-bottom: 20px; }
.stat__source { font-size: var(--small); color: var(--blue); }
.stat__source::after { content: ' \2197'; }
.stat__source:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-note {
  margin-top: 36px;
  font-size: var(--small);
  color: var(--muted);
  line-height: 1.7;
  max-width: 860px;
}
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; padding: 38px 26px; }
}

/* --- Testimonials --------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.quote__text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 26px;
}
.quote__name { font-size: 0.9375rem; font-weight: 600; color: var(--navy); display: block; }
.quote__role { font-size: var(--small); color: var(--muted); }
.quote--feature {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--warm-line);
  text-align: center;
}
.quote--feature .quote__text {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.28;
  max-width: 800px;
  margin-inline: auto;
}
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; gap: 40px; } }

/* --- Why / three-up ------------------------------------------------------- */
.three-up { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; }
.three-up--two { grid-template-columns: repeat(2, 1fr); gap: 48px 56px; }
@media (max-width: 860px) { .three-up--two { grid-template-columns: 1fr; gap: 36px; } }
.three-up h3 { font-size: 1.35rem; margin-bottom: 14px; }
.three-up p { font-size: 0.9375rem; line-height: 1.68; color: var(--muted); }
.section--navy .three-up p { color: rgba(255,255,255,0.76); }
@media (max-width: 900px) { .three-up { grid-template-columns: 1fr; gap: 36px; } }

/* --- Split (founder / media + copy) --------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--narrow-media { grid-template-columns: 5fr 7fr; }
.split__media { overflow: hidden; }
.split__media img { width: 100%; height: auto; transition: transform 700ms var(--ease); }
.split__media:hover img { transform: scale(1.03); }
.split__body > * + * { margin-top: 20px; }
@media (max-width: 900px) {
  .split, .split--narrow-media { grid-template-columns: 1fr; gap: 44px; }
  .split__media { max-width: 420px; }
  /* spec §5.11 — on mobile, copy first and founder image second */
  .split--copy-first .split__media { order: 2; }
  .split--copy-first .split__body { order: 1; }
}

/* --- Editorial split (landscape supporting image) ------------------------- */
.split--editorial { grid-template-columns: 6fr 5fr; gap: 64px; }
.split--editorial .split__media img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .split--editorial { grid-template-columns: 1fr; gap: 40px; }
  /* full container width on mobile, copy first */
  .split--editorial .split__media { max-width: none; order: 2; }
  .split--editorial .split__body { order: 1; }
}

/* --- Definition list / deliverables --------------------------------------- */
.checklist { border-top: 1px solid var(--line); }
.checklist--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  border-top: none;
}
.checklist--two li { border-top: 1px solid var(--line); border-bottom: none; }
@media (max-width: 760px) { .checklist--two { grid-template-columns: 1fr; } }
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 16px;
  padding-block: 17px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}
.checklist li::before { content: '\2014'; color: var(--blue); }

/* --- FAQ (spec §37: native details) --------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding-block: 26px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--navy);
  transition: color 200ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary::after { content: '+'; font-family: var(--font-body); font-size: 1.25rem; color: var(--muted); }
.faq details[open] summary::after { content: '\2013'; }
.faq__answer { padding-bottom: 28px; max-width: var(--reading-max); }
.faq__answer p { font-size: 1rem; line-height: 1.72; color: var(--muted); }
.faq__answer > * + * { margin-top: 1em; }

/* --- Article ---------------------------------------------------------------*/
.article-head { padding-block: 120px 56px; }
.article-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 20ch; }
.article-standfirst {
  font-size: var(--body-lg);
  line-height: 1.6;
  color: var(--muted);
  max-width: var(--reading-max);
  margin-top: 26px;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: var(--small); color: var(--muted);
}
.article-body { max-width: var(--reading-max); }
.article-toc {
  margin: 40px 0;
  padding: 26px 30px;
  background: var(--cream);
  border-left: 2px solid var(--gold);
}
.article-toc h2 {
  font-family: var(--font-body);
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.article-toc ol { counter-reset: toc; }
.article-toc li { margin-top: 9px; padding-left: 26px; position: relative; font-size: 0.9375rem; }
.article-toc li::before {
  counter-increment: toc; content: counter(toc) '.';
  position: absolute; left: 0; color: var(--gold); font-weight: 600;
}
.article-toc a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.callout {
  margin: 48px 0;
  padding: 34px 36px;
  background: var(--pale-blue);
  border-left: 3px solid var(--blue);
}
.callout h2, .callout h3 { font-size: 1.3rem; margin: 0 0 12px; }
.callout p { font-size: 1rem; line-height: 1.68; color: var(--ink); margin-bottom: 18px; }
.callout p:last-child { margin-bottom: 0; }

.info-note {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--cream);
  font-size: var(--small);
  line-height: 1.72;
  color: var(--muted);
}

.related { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.related__card {
  padding: 32px 30px;
  border: 1px solid var(--line);
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease);
}
.related__card:hover { background: var(--cream); border-color: var(--warm-line); }
.related__card .eyebrow { margin-bottom: 12px; }
.related__card h3 { font-size: 1.2rem; line-height: 1.3; }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; gap: 22px; } }

/* --- Insights hub ---------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 52px; }
.filter {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--muted);
  transition: all 200ms var(--ease);
}
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.post-list { border-top: 1px solid var(--line); }
.post {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 40px;
  padding-block: 36px;
  border-bottom: 1px solid var(--line);
  transition: background-color 220ms var(--ease);
}
.post:hover { background: var(--cream); }
.post__cat { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold); }
.post__date { font-size: var(--small); color: var(--muted); margin-top: 8px; }
.post h3 { font-size: 1.45rem; line-height: 1.26; margin-bottom: 12px; transition: color 200ms var(--ease); }
.post:hover h3 { color: var(--blue); }
.post p { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; max-width: 62ch; }
@media (max-width: 820px) {
  .post { grid-template-columns: 1fr; gap: 14px; padding-block: 30px; }
}

.feature-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 52px;
  background: var(--cream);
  margin-bottom: 64px;
}
.feature-post h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-block: 14px 18px; }
.feature-post p { color: var(--muted); line-height: 1.68; margin-bottom: 26px; }
.feature-post img { width: 100%; border: 1px solid var(--warm-line); }
@media (max-width: 900px) { .feature-post { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; } }

/* --- Toolkit folders ------------------------------------------------------- */
.folders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.folder {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 200ms var(--ease);
}
.folder:hover { border-color: var(--blue); }
.folder__n { font-family: var(--font-display); font-size: 0.8125rem; color: var(--gold); }
.folder__name { font-size: 0.875rem; font-weight: 500; }
.folder__count { font-size: 0.75rem; color: var(--muted); }
@media (max-width: 700px) { .folders { grid-template-columns: 1fr; } }

.price {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}
.price__note { font-size: var(--small); color: var(--muted); margin-top: 10px; }

/* --- Contact -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }

.contact-item { padding-block: 22px; border-top: 1px solid var(--line); }
.contact-item:last-of-type { border-bottom: 1px solid var(--line); }
.contact-item__label {
  display: block;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.contact-item__value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.contact-item__value a { transition: color 180ms var(--ease); }
.contact-item__value a:hover { color: var(--blue); }

.wa {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: #25D366; color: var(--white);
  border-radius: 100px;
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  transition: transform 200ms var(--ease);
}
.wa:hover { color: var(--white); transform: translateY(-1px); }
.wa svg { width: 14px; height: 14px; fill: currentColor; }

.form { padding: 44px; border: 1px solid var(--line); background: var(--white); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,79,138,0.1);
}
.field textarea { min-height: 132px; resize: vertical; }
.form .btn { width: 100%; margin-top: 8px; }
.form__note { margin-top: 14px; font-size: 0.75rem; color: var(--muted); text-align: center; }
.form__status { margin-top: 20px; padding: 18px 20px; border-radius: var(--radius); font-size: 0.9375rem; line-height: 1.6; }
.form__status[hidden] { display: none; }
.form__status--ok { background: var(--light-green); border-left: 3px solid var(--green); color: var(--ink); }
.form__status--error { background: #FDECEA; border-left: 3px solid #A4292B; color: var(--ink); }
.form__status strong { display: block; margin-bottom: 5px; color: var(--navy); }
.form.is-sending .btn { opacity: .6; pointer-events: none; }
@media (max-width: 900px) { .form { padding: 30px 24px; } .form__row { grid-template-columns: 1fr; } }

/* --- Closing CTA ----------------------------------------------------------- */
.cta-band { background: var(--blue); color: var(--white); text-align: center; padding-block: var(--section-y); }
.cta-band h2 { color: var(--white); max-width: 20ch; margin-inline: auto; }
.cta-band p {
  font-size: var(--body-lg);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 22px auto 38px;
  line-height: 1.6;
}
.cta-band__alt {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px;
  font-size: 0.9375rem; color: rgba(255,255,255,0.85);
}
.cta-band__alt a:not(.wa):hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.cta-band__sep { color: rgba(255,255,255,0.4); }

/* --- Footer (spec §4.3) ----------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.66); padding-block: 76px 36px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 46px;
  padding-bottom: 46px;
  margin-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer__brand { max-width: 340px; }
.site-footer__brand img {
  width: 168px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 22px;
}
@media (max-width: 560px) { .site-footer__brand img { width: 140px; } }
.site-footer__brand p { font-size: 0.875rem; line-height: 1.66; margin-bottom: 16px; }
.site-footer__contact { padding-top: 16px; margin-top: 16px; border-top: 1px solid rgba(255,255,255,0.09); font-size: var(--small); line-height: 1.7; }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--white); margin-bottom: 20px;
}
.site-footer nav a {
  display: block;
  padding-block: 7px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.66);
  transition: color 180ms var(--ease), padding-left 180ms var(--ease);
}
.site-footer nav a:hover { color: var(--white); padding-left: 4px; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px;
  font-size: 0.75rem; color: rgba(255,255,255,0.5);
}
.site-footer__base a { color: rgba(255,255,255,0.5); transition: color 180ms var(--ease); }
.site-footer__base a:hover { color: var(--white); }
.site-footer__base nav { display: flex; gap: 20px; }
.site-footer__base nav a { display: inline; padding: 0; }
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__base { flex-direction: column; text-align: center; }
}

/* --- 404 --------------------------------------------------------------------*/
.error-page { padding-block: 140px; text-align: center; }
.error-page h1 { font-size: var(--display-lg); margin-bottom: 22px; }
.error-page p { font-size: var(--body-lg); color: var(--muted); max-width: 520px; margin: 0 auto 38px; }
.error-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --- Motion (spec §3.6) ------------------------------------------------------*/
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-group > * { opacity: 0; transform: translateY(16px); transition: opacity 560ms var(--ease), transform 560ms var(--ease); }
.reveal-group.is-visible > * { opacity: 1; transform: none; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-group > * { opacity: 1 !important; transform: none !important; }
}

/* --- Print -------------------------------------------------------------------*/
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .drawer, .overlay { display: none; }
  body { color: #000; }
}
