/* ==========================================================================
   Hosmak Solutions Canada Inc — site stylesheet
   Palette and type follow "Hosmak Solutions — brand basics" (brand guide).
   Deep teal #0F6E56 is the only primary. Signal teal #5DCAA5 is graphics-only:
   it measures ~2.1:1 on white and ~3.2:1 on deep teal, so it never carries
   small text. Ink and Slate carry all body copy.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Brand */
  --teal-900: #0A4A3B;   /* pressed state / deepest panels */
  --teal-800: #0B5544;   /* hover on primary */
  --teal-700: #0F6E56;   /* PRIMARY — brand deep teal */
  --signal:   #5DCAA5;   /* graphic accent only, never small text */
  --mist:     #E1F5EE;   /* node fills, section tints */
  --mist-50:  #F4FBF8;   /* softest section wash */
  --ink:      #2C2C2A;   /* body text, wordmark */
  --slate:    #5F5E5A;   /* secondary copy, captions */

  /* Neutrals derived for UI, not part of the printed palette */
  --white:    #FFFFFF;
  --line:     #DFE5E2;
  --line-soft:#EDF1EF;
  --danger:      #B3261E;  /* 6.5:1 on white, 6.0:1 on --danger-bg */
  --danger-ink:  #8C1D18;  /* 8.4:1 on --danger-bg */
  --danger-bg:   #FDF3F2;

  /* Semantic */
  --bg:        var(--white);
  --bg-alt:    var(--mist-50);
  --fg:        var(--ink);
  --fg-muted:  var(--slate);
  --border:    var(--line);
  --accent:    var(--teal-700);
  --on-accent: var(--white);
  --focus:     var(--teal-700);

  /* Type */
  --font-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Spacing scale (4pt rhythm) */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.5rem;   --space-6: 2rem;
  --space-7: 3rem;     --space-8: 4rem;     --space-9: 6rem;

  --section-y: clamp(4rem, 8vw, 7rem);
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --container: 1180px;
  --measure: 68ch;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  /* Elevation — restrained. The brand guide forbids shadows on the logo;
     these apply to UI surfaces only. */
  --shadow-1: 0 1px 2px rgba(44,44,42,.06), 0 1px 3px rgba(44,44,42,.04);
  --shadow-2: 0 6px 16px rgba(15,110,86,.08), 0 2px 6px rgba(44,44,42,.05);

  --z-header: 100;
  --z-nav-panel: 90;
  --z-skip: 200;

  --ease: cubic-bezier(.2,.6,.3,1);
  --dur-fast: 140ms;
  --dur: 220ms;

  --arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --mark-mask: url("../img/hosmak-mark.svg");
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-800); }
ul { margin: 0; padding: 0; }
button { font: inherit; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

/* --- Focus & motion ------------------------------------------------------- */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.section--deep :where(a, button):focus-visible,
.site-footer :where(a, button):focus-visible {
  outline-color: var(--signal);
}

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

.skip-link {
  position: absolute; left: var(--gutter); top: -100px;
  z-index: var(--z-skip);
  background: var(--teal-700); color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; color: var(--white); }

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

/* --- Layout primitives ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--bg-alt); }
.section--mist { background: var(--mist); }
.section--deep { background: var(--teal-700); color: var(--white); }
.section--deep h2, .section--deep h3 { color: var(--white); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 var(--space-4);
  display: flex; align-items: center; gap: var(--space-3);
}
.eyebrow::after {
  content: ""; flex: 0 0 auto; width: 32px; height: 2px; background: var(--signal);
}
.section--deep .eyebrow { color: var(--mist); }
.section--deep .eyebrow::after { background: rgba(255,255,255,.45); }

.section-head { max-width: 48ch; margin-bottom: var(--space-7); }
.section-head p { color: var(--fg-muted); margin-top: var(--space-4); font-size: 1.0625rem; }
.section--deep .section-head p { color: rgba(255,255,255,.85); }

h1 { font-size: clamp(2.25rem, 1.35rem + 3.6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.6rem); }
h3 { font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.4375rem); line-height: 1.25; }

.lede {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: var(--measure);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--teal-700);
  --btn-fg: var(--white);
  --btn-bd: var(--teal-700);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { --btn-bg: var(--teal-800); --btn-bd: var(--teal-800); color: var(--white); box-shadow: var(--shadow-2); }
.btn:active { --btn-bg: var(--teal-900); --btn-bd: var(--teal-900); box-shadow: none; }
.btn .icon { flex: 0 0 auto; transition: transform var(--dur) var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--teal-700); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bg: var(--mist); --btn-bd: var(--teal-700); color: var(--teal-800); box-shadow: none; }

.btn--on-dark { --btn-bg: var(--white); --btn-fg: var(--teal-700); --btn-bd: var(--white); }
.btn--on-dark:hover { --btn-bg: var(--mist); --btn-bd: var(--mist); color: var(--teal-900); }

.btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.5); }
.btn--ghost-dark:hover { --btn-bg: rgba(255,255,255,.12); --btn-bd: var(--white); color: var(--white); box-shadow: none; }

.btn--sm { min-height: 44px; padding: var(--space-2) var(--space-5); font-size: .9375rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px;
  font-weight: 600; font-size: .9375rem;
  color: var(--teal-700); text-decoration: none;
  touch-action: manipulation;
}
.link-arrow::after {
  content: "";
  width: 16px; height: 16px; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--arrow-mask) center/contain no-repeat;
  mask: var(--arrow-mask) center/contain no-repeat;
  transition: transform var(--dur) var(--ease);
}
.link-arrow:hover { color: var(--teal-800); text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(4px); }
.section--deep .link-arrow { color: var(--mist); }
.section--deep .link-arrow:hover { color: var(--white); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(44,44,42,.05); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5);
  min-height: 80px;
}
/* Brand guide: clear space = 25% of mark height on all four sides. */
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 12px 0; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 178px; height: auto; }
.brand__tagline {
  margin-top: -19px;
  margin-left: 79px;
  font-family: var(--font-sans);
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .02em; line-height: 1.3;
  color: var(--teal-700);
}

.nav-desktop { display: none; }
/* Direct child only — the Services submenu is a nested <ul> that must not
   inherit this flex row. */
.nav-desktop > ul { display: flex; align-items: center; gap: var(--space-1); list-style: none; height: 100%; }
.nav-link {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  font-size: .9375rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  position: relative;
}
.nav-link:hover { color: var(--teal-700); background: var(--mist-50); }
/* [aria-current] not [aria-current="page"]: the Services parent carries
   aria-current="true" (section, not exact page) on the three detail pages. */
.nav-link[aria-current] { color: var(--teal-700); font-weight: 600; }
.nav-link[aria-current]::after {
  content: ""; position: absolute; left: var(--space-4); right: var(--space-4); bottom: 6px;
  height: 2px; background: var(--signal); border-radius: 2px;
}
.header-cta { display: none; }

/* --- Services submenu -------------------------------------------------- */
/* The toggle buttons are a JS enhancement — with scripting off, "Services"
   still links to the hub, whose second section is the three service cards. */
.no-js .nav-sub-toggle,
.no-js .nav-m-sub-toggle { display: none; }

.nav-chevron { flex: 0 0 auto; transition: transform var(--dur) var(--ease); }

/* Desktop dropdown */
.nav-has-sub { position: relative; display: flex; align-items: center; align-self: stretch; }
.nav-has-sub > .nav-link { padding-right: var(--space-2); }
.nav-sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; min-height: 44px;
  padding: 0; margin: 0;
  background: none; border: 0;
  color: var(--ink); cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease);
}
.nav-has-sub:hover .nav-sub-toggle,
.nav-sub-toggle[aria-expanded="true"] { color: var(--teal-700); }
.nav-sub-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.nav-submenu {
  position: absolute; top: calc(100% - 1px); left: 0;
  margin: 0; padding: var(--space-2);
  min-width: 340px; width: max-content; max-width: 384px;
  list-style: none;
  display: grid; grid-template-columns: 1fr; gap: 2px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-2);
  z-index: calc(var(--z-header) - 1);
}
.nav-submenu[hidden] { display: none; }
.nav-submenu li { border: 0; }
.nav-submenu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; line-height: 1.35;
  color: var(--ink); text-decoration: none;
}
.nav-submenu a:hover { background: var(--mist-50); color: var(--teal-700); }
.nav-submenu a[aria-current="page"] { color: var(--teal-700); font-weight: 600; }

/* Mobile disclosure — inside the slide-down panel.
   Selectors are prefixed with .nav-mobile so they outrank the general
   .nav-mobile rules further down the file regardless of source order. */
.nav-mobile .nav-m-row { display: flex; align-items: stretch; }
.nav-mobile .nav-m-row > a { flex: 1 1 auto; }
.nav-m-sub-toggle {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; min-height: 56px;
  background: none; border: 0; border-left: 1px solid var(--line-soft);
  color: var(--ink); cursor: pointer;
}
.nav-m-sub-toggle[aria-expanded="true"] { color: var(--teal-700); }
.nav-m-sub-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-mobile .nav-m-submenu { list-style: none; padding: 0 0 var(--space-3) var(--space-5); }
.nav-mobile .nav-m-submenu[hidden] { display: none; }
.nav-mobile .nav-m-submenu li,
.nav-mobile .nav-m-submenu li + li { border-top: 0; }
.nav-mobile .nav-m-submenu a:not(.btn) {
  min-height: 46px;
  font-size: .9688rem;
  color: var(--slate);
}
.nav-mobile .nav-m-submenu a:not(.btn)[aria-current] { color: var(--teal-700); font-weight: 600; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  min-width: 48px; min-height: 48px;
  padding: 0 var(--space-3);
  background: transparent; border: 1.5px solid var(--line); border-radius: var(--radius);
  color: var(--ink); cursor: pointer; touch-action: manipulation;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--teal-700); background: var(--mist-50); }
.nav-toggle .bars { display: block; width: 20px; height: 14px; position: relative; }
.nav-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle .label { font-size: .875rem; font-weight: 600; }

.nav-mobile {
  position: absolute; left: 0; right: 0; top: 100%;
  z-index: var(--z-nav-panel);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(44,44,42,.1);
  padding: var(--space-3) 0 var(--space-6);
  max-height: calc(100dvh - 80px); overflow-y: auto;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile ul { list-style: none; }
.nav-mobile li + li { border-top: 1px solid var(--line-soft); }
.nav-mobile a:not(.btn) {
  display: flex; align-items: center; min-height: 56px;
  font-size: 1.0625rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.nav-mobile a:not(.btn)[aria-current] { color: var(--teal-700); font-weight: 600; }
.nav-mobile .btn { width: 100%; margin-top: var(--space-5); }

@media (min-width: 900px) {
  .nav-desktop { display: flex; align-self: stretch; }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .nav-mobile { display: none !important; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  background:
    radial-gradient(120% 82% at 88% 0%, var(--mist) 0%, rgba(225,245,238,0) 58%),
    var(--white);
  overflow: hidden;
}
.hero__grid { display: grid; gap: var(--space-8); align-items: start; }
.hero h1 { max-width: 24ch; }
.hero .lede { margin-top: var(--space-5); max-width: 58ch; font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-7); }

.hero__creds {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.hero__creds > p {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate); margin-bottom: var(--space-4);
}
.cred-list { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); list-style: none; }
.cred-list li {
  font-size: .875rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: var(--space-2);
}
.cred-list li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal); flex: 0 0 auto;
}

/* Hero side panel — the node motif from the mark, used as structure not decoration */
.hero__panel {
  background: var(--teal-700);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative; overflow: hidden;
}
.hero__panel::after {
  content: ""; position: absolute; right: -54px; top: -68px;
  width: 244px; height: 289px;
  background: var(--white);
  -webkit-mask: var(--mark-mask) center/contain no-repeat;
  mask: var(--mark-mask) center/contain no-repeat;
  opacity: .11; pointer-events: none;
}
.hero__panel h2 {
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  letter-spacing: .01em; color: var(--white); line-height: 1.4;
  position: relative;
}
.stat-list { list-style: none; margin-top: var(--space-6); display: grid; gap: var(--space-5); position: relative; }
.stat-list li { display: grid; gap: var(--space-1); }
.stat-list .stat-value {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.375rem);
  line-height: 1.05; color: var(--signal);
  font-variant-numeric: tabular-nums;
}
.stat-list .stat-label { font-size: .9375rem; color: rgba(255,255,255,.88); line-height: 1.45; }

@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .95fr); gap: var(--space-9); align-items: center; }
}

/* Narrow phones: shrink the lockup (brand-guide minimum is 120px wide) and
   let the two hero buttons share one full-width column. */
@media (max-width: 520px) {
  .brand img { width: 152px; }
  .brand__tagline { margin-top: -16px; margin-left: 67px; }
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

/* --- Trigger checklist ---------------------------------------------------- */
.trigger-list { list-style: none; display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.trigger-list li {
  display: grid; grid-template-columns: 22px 1fr; gap: var(--space-4);
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  padding: var(--space-5);
  font-size: 1rem; line-height: 1.6;
  transition: border-left-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.trigger-list li:hover { border-left-color: var(--teal-700); box-shadow: var(--shadow-1); }
.trigger-list .icon { color: var(--teal-700); margin-top: 3px; }
.trigger-close {
  margin-top: var(--space-6);
  padding-left: var(--space-5);
  border-left: 3px solid var(--teal-700);
  font-size: 1.0625rem;
  max-width: 62ch;
  color: var(--ink);
}
@media (min-width: 700px) { .trigger-list { grid-template-columns: 1fr 1fr; } }

/* --- Cards (services + insights) ------------------------------------------ */
.card-grid { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
@media (min-width: 800px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.service-card:hover { border-color: var(--teal-700); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.service-card--lead { border-color: var(--teal-700); box-shadow: var(--shadow-1); }

.service-card__head {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.service-card__badge {
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-800); background: var(--mist);
  padding: 5px 10px; border-radius: 999px;
  white-space: nowrap;
}
.service-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--mist); color: var(--teal-700);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.service-card h3 { margin-bottom: var(--space-3); max-width: 34ch; }
.service-card p { color: var(--fg-muted); font-size: .9688rem; max-width: 66ch; }
.service-card p + p { margin-top: var(--space-4); }
.service-card .link-arrow { margin-top: auto; padding-top: var(--space-5); }

/* --- Why Hosmak (deep panel) ---------------------------------------------- */
.perspectives { display: grid; gap: var(--space-6); margin-top: var(--space-7); }
@media (min-width: 900px) { .perspectives { grid-template-columns: repeat(3, 1fr); } }
.perspective { border-top: 2px solid rgba(255,255,255,.28); padding-top: var(--space-5); }
.perspective__num {
  font-family: var(--font-sans); font-weight: 700;
  font-size: .75rem; color: var(--mist);
  display: block; margin-bottom: var(--space-3);
  letter-spacing: .14em; text-transform: uppercase;
}
.perspective h3 { font-size: 1.1875rem; margin-bottom: var(--space-3); }
.perspective p { color: rgba(255,255,255,.85); font-size: .9688rem; }

.credentials {
  margin-top: var(--space-7);
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: var(--space-6);
  display: grid; gap: var(--space-6);
}
@media (min-width: 760px) { .credentials { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.credentials h3 {
  font-family: var(--font-sans); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mist);
  margin-bottom: var(--space-4);
}
.credentials ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.credentials li {
  font-size: .875rem; font-weight: 500; color: var(--white);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 6px 14px;
}

/* --- Process -------------------------------------------------------------- */
.steps { list-style: none; display: grid; gap: var(--space-6); margin-top: var(--space-6); counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-7); } }
.steps li { position: relative; padding-left: 60px; min-height: 44px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: -2px; left: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--teal-700); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 600;
}
.steps h3 { margin-bottom: var(--space-3); }
.steps p { color: var(--fg-muted); font-size: .9688rem; }

/* --- Insights ------------------------------------------------------------- */
.insight-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.insight-card:hover { border-color: var(--teal-700); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.insight-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--slate); margin-bottom: var(--space-4);
}
.tag {
  background: var(--mist); color: var(--teal-800);
  border-radius: 999px; padding: 4px 10px; letter-spacing: .08em;
}
.insight-card h3 { font-size: 1.1875rem; margin-bottom: var(--space-3); max-width: 36ch; }
.insight-card h3 a { color: inherit; text-decoration: none; }
.insight-card h3 a:hover { color: var(--teal-700); text-decoration: underline; text-underline-offset: 4px; }
/* Four cards read better two-up than four-across — the standfirsts need the measure. */
.card-grid--2up { grid-template-columns: 1fr; }
@media (min-width: 760px) { .card-grid--2up { grid-template-columns: 1fr 1fr; } }
.insight-card p { color: var(--fg-muted); font-size: .9375rem; max-width: 66ch; }
.insight-card .link-arrow { margin-top: auto; padding-top: var(--space-5); }
.section-foot { margin-top: var(--space-6); }

/* --- Home: low-commitment resource CTA ----------------------------------- */
/* A secondary path for the visitor who is not ready to book — offers the
   AI governance readiness checklist. Bordered card on white so it separates
   cleanly from the plain section above and the tinted Insights section below. */
.resource-cta {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--mist-50);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius-lg);
}
@media (min-width: 820px) {
  .resource-cta { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); }
}
.resource-cta h2 {
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  margin-bottom: var(--space-3);
  max-width: 26ch;
}
.resource-cta p { color: var(--fg-muted); font-size: 1rem; max-width: 60ch; }
.resource-cta .btn { white-space: nowrap; }

/* --- About snippet -------------------------------------------------------- */
.about-grid { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: var(--space-9); } }

.portrait {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: var(--mist);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  text-align: center;
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.portrait__placeholder { display: grid; gap: var(--space-4); place-items: center; padding: var(--space-6); }
.portrait__placeholder img, .portrait__placeholder svg { width: 52px; height: auto; opacity: .38; }
.portrait__placeholder p { font-size: .8125rem; color: var(--slate); max-width: 26ch; line-height: 1.5; }

.about-name { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); margin-bottom: var(--space-2); }
.about-creds {
  font-size: .875rem; font-weight: 600; letter-spacing: .04em;
  color: var(--teal-700); margin-bottom: var(--space-5);
}
.about-body { color: var(--fg-muted); font-size: 1.0313rem; max-width: var(--measure); }
.about-body + .about-body { margin-top: var(--space-4); }

/* Subordinate to the h3 name above it: a label, not a second heading. */
.about-subhead {
  font-family: var(--font-sans);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
/* Closes the personal statement. Serif for weight, but no rule — the rule is
   reserved for the firm-level mission so the two don't read as equals. */
.about-strapline {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.1875rem);
  line-height: 1.4;
  color: var(--teal-700);
  max-width: 42ch;
}
/* Used on about.html — the firm-level mission moved off the home page. */
.about-mission {
  margin-top: var(--space-6);
  padding-left: var(--space-5);
  border-left: 3px solid var(--signal);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.02rem + .5vw, 1.3125rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 46ch;
}

/* --- Designation footnote ------------------------------------------------- */
.fn-ref {
  color: inherit;
  text-decoration: none;
  /* An asterisk is only ~9px wide. Padding plus matching negative margin grows the
     hit area past 24x24 without moving a single character of the label. */
  padding: 8px 11px;
  margin: -8px -9px;
  position: relative;
}
.fn-ref span[aria-hidden] {
  font-size: .85em;
  vertical-align: super;
  line-height: 0;
}
.fn-ref:hover { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.section--deep .fn-ref, .about-creds .fn-ref { color: inherit; }
.fn-mark { margin-right: 1px; }
/* Jumping to any anchor must not tuck it under the sticky header. */
[id] { scroll-margin-top: 96px; }
#designation-note:target { color: var(--white); }

/* --- Closing CTA ---------------------------------------------------------- */
.cta-panel { text-align: center; display: grid; justify-items: center; gap: var(--space-5); }
.cta-panel h2 { max-width: 20ch; }
.cta-panel p { max-width: 62ch; color: rgba(255,255,255,.88); font-size: 1.0625rem; }
.cta-alt { font-size: .9375rem; color: rgba(255,255,255,.82); }
.cta-alt a { color: var(--mist); padding: 6px 2px; }
.cta-alt a:hover { color: var(--white); }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,.82); padding-block: var(--space-8) var(--space-6); font-size: .9375rem; }
.footer-grid { display: grid; gap: var(--space-7); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-8); } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; } }
.footer-logo { width: 190px; margin-bottom: var(--space-5); }
.site-footer h2 {
  font-family: var(--font-sans); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--signal);
  margin-bottom: var(--space-3);
}
.site-footer ul { list-style: none; display: grid; gap: var(--space-2); }
.site-footer a {
  color: rgba(255,255,255,.86); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 40px;
  padding-block: 4px; line-height: 1.45;
}
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--mist);
  margin-bottom: var(--space-3);
}
.footer-blurb { max-width: 36ch; color: rgba(255,255,255,.74); line-height: 1.6; }
.footer-contact { list-style: none; display: grid; gap: var(--space-1); margin-top: var(--space-4); }
.footer-contact a { font-size: .9375rem; }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a {
  width: 44px; height: 44px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.28);
  display: grid; place-items: center; min-height: 44px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-social a:hover { background: rgba(255,255,255,.14); border-color: var(--white); }

.footer-legal {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,.2);
  display: grid; gap: var(--space-4);
  font-size: .8125rem; color: rgba(255,255,255,.72); line-height: 1.6;
}
.footer-legal .disclaimer { max-width: 84ch; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); align-items: center; justify-content: space-between; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); }
.footer-bottom a { font-size: .8125rem; min-height: 36px; }

/* --- Scroll reveal (progressive enhancement; JS adds .js to <html>) -------- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 70ms; }
.js .reveal[data-delay="2"] { transition-delay: 140ms; }

/* ==========================================================================
   ARTICLE PAGE
   Long-form inverts the site's type pairing on purpose: sans-serif headings
   over a serif body, per the article-template spec. The home page is the other
   way round, which is the normal editorial convention for a reading template.
   ========================================================================== */
.article-page { --article-measure: 68ch; }

.breadcrumb { padding-block: var(--space-6) 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: .875rem; }
.breadcrumb li { display: flex; align-items: center; gap: var(--space-2); color: var(--slate); }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a { color: var(--teal-700); text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--slate); }

.article { max-width: var(--article-measure); margin-inline: auto; }
.article__header { padding-block: var(--space-6) var(--space-7); border-bottom: 1px solid var(--line); }
.article__topic {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700); margin-bottom: var(--space-4);
}
.article h1 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 2.875rem); letter-spacing: -0.015em; }
.article__standfirst {
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1.08rem + .55vw, 1.4375rem);
  line-height: 1.5; color: var(--slate);
}

.byline { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-6); }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: 0 0 auto; }
.byline__who { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.byline__meta { font-size: .875rem; color: var(--slate); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.byline__meta > * + *::before { content: "\00B7"; margin-right: var(--space-2); color: var(--line); }

/* Serif body — the part that carries 1,800 words. */
/* 19px at reading widths, easing down on phones so the measure does not fall
   below ~38 characters per line. */
.article__body {
  padding-block: var(--space-7);
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.1875rem);
  line-height: 1.72;
  color: var(--ink);
}
.article__body p + p { margin-top: var(--space-5); }
.article__body h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 1.13rem + .55vw, 1.5rem);
  font-weight: 600; letter-spacing: -0.005em; line-height: 1.3;
  margin-top: var(--space-8); margin-bottom: var(--space-5);
  scroll-margin-top: 96px;
}
.article__body h2:first-child { margin-top: 0; }
.article__body strong { font-weight: 600; }
.article__body ul { margin-top: var(--space-5); padding-left: var(--space-5); }
.article__body li + li { margin-top: var(--space-3); }

.inline-cta {
  margin-block: var(--space-8);
  padding: var(--space-6);
  background: var(--mist);
  border: 1px solid var(--signal);
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
}
.inline-cta h2 {
  font-family: var(--font-sans);
  font-size: 1.1875rem; margin: 0 0 var(--space-3);
}
.inline-cta p { font-size: 1rem; line-height: 1.6; color: var(--slate); }
.inline-cta .link-arrow { margin-top: var(--space-3); }

.author-box {
  max-width: var(--article-measure); margin-inline: auto;
  margin-top: var(--space-7);
  padding-top: var(--space-7);
  border-top: 1px solid var(--line);
  display: grid; gap: var(--space-5);
}
@media (min-width: 620px) { .author-box { grid-template-columns: 96px minmax(0,1fr); gap: var(--space-6); } }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.author-box__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.author-box__creds { font-size: .875rem; font-weight: 600; color: var(--teal-700); margin-top: var(--space-2); }
.author-box__bio { margin-top: var(--space-4); font-size: 1rem; line-height: 1.65; color: var(--slate); }
.author-box__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-3); }

.article-disclaimer {
  max-width: var(--article-measure); margin-inline: auto;
  margin-top: var(--space-6);
  font-size: .8125rem; line-height: 1.6; color: var(--slate);
}

.related { margin-top: var(--space-6); }
.related h2 {
  font-family: var(--font-sans); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-700);
  margin-bottom: var(--space-5);
}
@media (min-width: 760px) { .related .card-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   INTERIOR PAGE HERO + CONTACT
   ========================================================================== */
.page-hero { padding-block: var(--space-6) var(--space-7); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-top: var(--space-5); }

.narrow { max-width: 760px; margin-inline: auto; }

.contact-block + .contact-block { margin-top: var(--space-8); }
.contact-block > h2 { margin-bottom: var(--space-3); }
.contact-block__note { font-size: .9375rem; color: var(--slate); margin-top: var(--space-4); }

/* Booking embed — the Microsoft Bookings iframe on contact.html. */
.booking-frame {
  display: block;
  width: 100%;
  min-height: 700px;
  margin-top: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--mist-50);
}
@media (min-width: 760px) { .booking-frame { min-height: 780px; } }

/* --- Form ----------------------------------------------------------------- */
.form { margin-top: var(--space-5); display: grid; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.field .helper { font-size: .875rem; color: var(--slate); line-height: 1.5; }
.field input, .field textarea {
  font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  min-height: 48px;
  width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.field input:hover, .field textarea:hover { border-color: var(--slate); }
.field input:focus, .field textarea:focus { border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(15,110,86,.14); }
.field input::placeholder, .field textarea::placeholder { color: #6E6D68; }

.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--danger); }
.field-error { font-size: .875rem; font-weight: 500; color: var(--danger); display: flex; align-items: flex-start; gap: var(--space-2); }
.field-error[hidden] { display: none !important; }

.error-summary {
  border: 1.5px solid var(--danger); border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--danger-bg);
  padding: var(--space-5);
}
.error-summary[hidden] { display: none !important; }
.error-summary h3 { font-family: var(--font-sans); font-size: 1rem; color: var(--danger-ink); margin-bottom: var(--space-3); }
.error-summary ul { list-style: none; display: grid; gap: var(--space-2); }
.error-summary a { color: var(--danger-ink); font-size: .9375rem; font-weight: 500; }

.form-status[hidden] { display: none !important; }
.form-status {
  border: 1.5px solid var(--teal-700); border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--mist); padding: var(--space-5);
  font-size: 1rem; color: var(--ink);
}
.form-footnote { font-size: .875rem; color: var(--slate); line-height: 1.6; max-width: 62ch; }
.form-alt { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-4); }

/* --- Practical details ---------------------------------------------------- */
.practical { margin-top: var(--space-5); display: grid; gap: 0; }
.practical div {
  display: grid; gap: var(--space-1);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line-soft);
}
.practical div:last-child { border-bottom: 1px solid var(--line-soft); }
@media (min-width: 620px) { .practical div { grid-template-columns: 180px minmax(0,1fr); gap: var(--space-5); align-items: baseline; } }
.practical dt { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }
.practical dd { margin: 0; color: var(--fg-muted); font-size: 1rem; line-height: 1.6; }

.privacy-note { margin-top: var(--space-6); font-size: .875rem; color: var(--slate); line-height: 1.6; max-width: 68ch; }
/* Inline link in a sentence — WCAG 2.2 exempts these from the 24px target, but
   a little vertical padding costs nothing and does not disturb the line box. */
.privacy-note a { padding: 4px 2px; }

/* ==========================================================================
   INSIGHTS HUB
   ========================================================================== */
.featured-article {
  position: relative; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal-700);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.featured-article::after {
  content: ""; position: absolute; right: -70px; top: -80px;
  width: 240px; height: 284px;
  background: var(--teal-700);
  -webkit-mask: var(--mark-mask) center/contain no-repeat;
  mask: var(--mark-mask) center/contain no-repeat;
  opacity: .05; pointer-events: none;
}
.featured-article > * { position: relative; }
.featured-article__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--slate); margin-bottom: var(--space-5);
}
.featured-article h2 {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  max-width: 32ch;
  margin-bottom: var(--space-4);
}
.featured-article h2 a { color: inherit; text-decoration: none; }
.featured-article h2 a:hover { color: var(--teal-700); text-decoration: underline; text-underline-offset: 4px; }
.featured-article__summary { color: var(--fg-muted); font-size: 1.0625rem; max-width: 64ch; }
.featured-article .link-arrow { margin-top: var(--space-5); }

/* --- Resources / lead-magnet downloads ------------------------------------ */
.resource-grid { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
@media (min-width: 760px) { .resource-grid { grid-template-columns: 1fr 1fr; } }

.resource-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex; flex-direction: column;
}
.resource-card h3 { margin-bottom: var(--space-3); }
.resource-card > p { color: var(--fg-muted); font-size: .9688rem; }

.lead-form { margin-top: var(--space-5); display: grid; gap: var(--space-4); }
.lead-form .field input { min-height: 46px; }
.checkbox-field {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: .875rem; color: var(--slate); line-height: 1.5;
}
.checkbox-field input {
  width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px;
  accent-color: var(--teal-700);
}
.lead-form__status {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--mist);
  border: 1px solid var(--signal);
  border-radius: var(--radius);
  font-size: .9375rem;
}
.lead-form__status[hidden] { display: none !important; }
.lead-form__status a.btn { margin-top: var(--space-3); }
.lead-form[hidden] { display: none !important; }

/* Contact form success state - same treatment as the lead forms above, so the
   two confirmations on the site read as one component. */
.form__status {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--mist);
  border: 1px solid var(--signal);
  border-radius: var(--radius);
  font-size: .9375rem;
}
.form__status[hidden] { display: none !important; }
.form__status strong { display: block; margin-bottom: var(--space-2); }
.form[hidden] { display: none !important; }

/* Same dashed treatment as the contact page's scheduler placeholder — an
   unmistakable build marker, not something that could pass for finished. */
.resource-card--pending {
  border: 2px dashed var(--teal-700);
  background: var(--mist-50);
  justify-content: center;
  text-align: center;
}
.resource-card--pending h3 { font-family: var(--font-sans); font-size: 1.0625rem; }

/* ==========================================================================
   WORKED EXAMPLE (risk appetite positions)
   Indicator / boundary / consequence is structured data, not prose — a
   definition list scans far faster than the same facts run together in a
   sentence. Same pattern as .practical on the contact page.
   ========================================================================== */
.worked-example {
  display: grid; gap: var(--space-5);
  margin-block: var(--space-6);
}
@media (min-width: 700px) { .worked-example { grid-template-columns: 1fr 1fr; } }

.position-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-700);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.position-card h3 {
  font-family: var(--font-sans);
  font-size: 1.0625rem; font-weight: 600;
  color: var(--ink); margin-bottom: var(--space-3);
}
.position-card__position {
  font-family: var(--font-sans);
  font-size: .9375rem; line-height: 1.6; color: var(--ink);
  margin-bottom: var(--space-4);
}
.position-card__position em { font-style: normal; font-weight: 600; color: var(--teal-800); }
.position-card__position a { padding: 4px 2px; }

.position-card__terms { display: grid; gap: 0; }
.position-card__terms > div {
  display: grid; gap: 2px;
  padding-block: var(--space-3);
  border-top: 1px solid var(--line);
}
.position-card__terms dt {
  font-family: var(--font-sans);
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate);
}
.position-card__terms dd {
  margin: 0;
  font-family: var(--font-sans);
  font-size: .9375rem; line-height: 1.55; color: var(--fg-muted);
}

/* Section-break rules between narrative paragraphs (used sparingly, in
   long-form articles only). */
.article__body hr.rule {
  border: none; border-top: 1px solid var(--line);
  margin-block: var(--space-6);
}

/* ==========================================================================
   LEGAL PAGES
   Reuses .article / .article__body for measure and the sans-heading-over-
   serif-body long-form treatment — same reading experience as the insight
   articles, minus the editorial furniture (byline, related reading, CTA panel)
   that doesn't belong on a policy page.
   ========================================================================== */
.legal-meta {
  margin-top: var(--space-5);
  font-size: .875rem; color: var(--slate);
  display: flex; flex-wrap: wrap; gap: var(--space-2);
}
.legal-meta > * + *::before { content: "\00B7"; margin-right: var(--space-2); color: var(--line); }

.legal-closing {
  max-width: var(--article-measure); margin-inline: auto;
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  font-size: .9688rem; color: var(--fg-muted);
}
.legal-closing a { padding: 4px 2px; }

/* ==========================================================================
   SERVICE PAGES (hub + three detail pages)
   ========================================================================== */

/* --- Audience cards ("who we work with") ----------------------------------- */
.audience-grid { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
@media (min-width: 800px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }
.audience-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.audience-card h3 { font-size: 1.1875rem; margin-bottom: var(--space-3); }
.audience-card p { color: var(--fg-muted); font-size: .9688rem; }

/* --- Deliverables ("what we deliver") --------------------------------------- */
.deliver-grid { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
@media (min-width: 760px) { .deliver-grid { grid-template-columns: 1fr 1fr; } }
.deliver-item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-700);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.deliver-item h3 { font-size: 1.0625rem; margin-bottom: var(--space-3); }
.deliver-item p { color: var(--fg-muted); font-size: .9375rem; }
.deliver-item p a { padding: 4px 2px; }

/* --- Engagement packages ----------------------------------------------------- */
.package-grid { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
@media (min-width: 700px) { .package-grid { grid-template-columns: 1fr 1fr; } }
.package-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.package-card h3 { font-size: 1.0625rem; margin-bottom: var(--space-2); }
.package-card__meta {
  font-family: var(--font-sans); font-size: .8125rem; font-weight: 700;
  letter-spacing: .04em; color: var(--teal-700);
  margin-bottom: var(--space-3);
}
.package-card p:last-child { color: var(--fg-muted); font-size: .9375rem; }

/* --- Standards / frameworks pill groups -------------------------------------- */
.standards-grid { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
@media (min-width: 700px) { .standards-grid { grid-template-columns: 1fr 1fr; } }
.standards-group h3 {
  font-family: var(--font-sans); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700);
  margin-bottom: var(--space-4);
}
.standards-group ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.standards-group li {
  font-size: .875rem; font-weight: 500; color: var(--ink);
  background: var(--mist); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px;
}
.standards-note {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .9375rem; color: var(--fg-muted); max-width: 74ch;
}

/* --- Why-us prose ------------------------------------------------------------ */
.why-us-body { max-width: var(--measure); margin-top: var(--space-6); color: var(--fg-muted); font-size: 1.0313rem; line-height: 1.65; }
.why-us-body p + p { margin-top: var(--space-4); }

/* --- FAQ (native disclosure, no JS needed) ----------------------------------- */
.faq-list { max-width: var(--article-measure); margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5);
  min-height: 44px;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem; color: var(--ink);
  cursor: pointer; list-style: none;
  touch-action: manipulation;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex: 0 0 auto; width: 20px; height: 20px;
  color: var(--teal-700);
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--mist-50); }
.faq-item p {
  padding: 0 var(--space-5) var(--space-5);
  margin: 0;
  color: var(--fg-muted); font-size: .9688rem; line-height: 1.6;
}

/* --- Trigger-to-service table (hub, section 4) ------------------------------- */
.route-table-wrap { margin-top: var(--space-6); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.route-table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 620px; }
.route-table th {
  text-align: left; font-family: var(--font-sans); font-weight: 700;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate);
  background: var(--bg-alt); padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
}
.route-table td { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.route-table tr:last-child td { border-bottom: none; }
.route-table td:first-child { color: var(--fg-muted); }
.route-table td:last-child a { font-weight: 600; padding: 6px 2px; }

/* --- Independence note callout ------------------------------------------------ */
.callout {
  max-width: var(--article-measure); margin-top: var(--space-6);
  padding: var(--space-6);
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-lg);
  font-size: 1rem; color: var(--ink); line-height: 1.65;
}
.callout p + p { margin-top: var(--space-4); }

/* --- Principles list (hub, "how we work") ------------------------------------- */
.principle-list { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
@media (min-width: 760px) { .principle-list { grid-template-columns: 1fr 1fr; } }
.principle-list h3 { font-size: 1.0625rem; margin-bottom: var(--space-2); }
.principle-list p { color: var(--fg-muted); font-size: .9375rem; }

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

/* --- Founder's note: portrait + long-form prose ----------------------------- */
.founder-note { max-width: var(--article-measure); margin-inline: auto; }
.founder-portrait {
  width: 200px; aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-5);
  border: 1px solid var(--line);
}
.founder-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
@media (min-width: 640px) {
  .founder-portrait { float: left; margin-right: var(--space-6); margin-bottom: var(--space-4); }
}
.founder-note__body { font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); }
.founder-note__body p { margin-bottom: var(--space-4); }
.founder-note__sign { font-family: var(--font-sans); font-weight: 600; font-size: .9375rem; color: var(--teal-800); clear: both; }

/* --- Career timeline --------------------------------------------------------- */
.timeline-wrap { margin-top: var(--space-6); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.timeline-table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 480px; }
.timeline-table th {
  text-align: left; font-family: var(--font-sans); font-weight: 700;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate);
  background: var(--bg-alt); padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
}
.timeline-table td { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.timeline-table tr:last-child td { border-bottom: none; }
.timeline-table td:first-child { color: var(--teal-700); font-weight: 600; white-space: nowrap; }
.timeline-table tr:last-child td:first-child,
.timeline-table tr:last-child td:last-child { color: var(--ink); font-weight: 700; }

/* --- Print ---------------------------------------------------------------- */
@media print {
  .site-header, .nav-mobile, .skip-link { display: none !important; }
  .hero__panel::after { display: none !important; }
  .section--deep, .site-footer, .hero__panel { background: none !important; color: #000 !important; }
  .section--deep h2, .section--deep h3, .section--deep p,
  .site-footer a, .site-footer h2 { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; }
}
