/* ==========================================================================
   eVal Advisors — component stylesheet
   Requires tokens.css. Plain CSS, no build step.
   Section order: fonts · base · layout · type · header · buttons · pills ·
   cards & rows · stats · process · content cards · team · downloads/offices ·
   form · callout · contact band · footer · hero & page header · sidebar ·
   venn · chart · utilities
   ========================================================================== */

/* ---- Fonts (self-hosted Inter 4 variable, weight + optical-size axes) ---- */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-opsz-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-optical-sizing: auto;      /* Inter picks its Display cut for large sizes */
  color: var(--c-lt-body);
  background: var(--c-lt-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
svg { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: var(--bw-focus) solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--c-royal); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ---- Themed sections -------------------------------------------------- */
.theme-dark, .theme-light, .theme-alt {
  color: var(--fg-body);
  background-color: var(--bg);
  background-image: var(--bg-image);
}
.theme-dark { background-attachment: scroll; }

/* ---- Layout ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--margin));
  margin-inline: auto;
  padding-inline: var(--margin);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--margin)); }
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--sp-8);
}
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }
@media (max-width: 1023px) { .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; } }

.section { padding-block: var(--section-y); }
.section--compact { padding-block: var(--section-y-compact); }
.section--flush-top { padding-top: 0; }
.section__head { max-width: 760px; margin-bottom: var(--sp-9); }
.section__head--wide { max-width: none; }
.section__head > * + * { margin-top: var(--sp-5); }
.section__head .pill + * { margin-top: var(--sp-5); }
@media (max-width: 767px) { .section__head { margin-bottom: var(--sp-7); } }

.stack > * + * { margin-top: var(--stack); }
.stack--sm > * + * { margin-top: var(--sp-3); }
.stack--lg > * + * { margin-top: var(--sp-7); }
.divider { border: 0; border-top: var(--bw-hair) solid var(--rule); opacity: .55; margin-block: var(--sp-8); }
.theme-dark .divider { opacity: .5; }

/* ---- Typography ------------------------------------------------------- */
.display, .h1, .h2, .h3, .h4, .statement {
  color: var(--fg-heading);
  text-wrap: balance;
  font-optical-sizing: auto;
}
.display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); font-weight: var(--fw-display); }
.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: var(--fw-h1); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: var(--fw-h2); }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: var(--fw-h3); }
.h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); font-weight: var(--fw-h4); }
.statement { font-size: var(--fs-statement); line-height: var(--lh-statement); letter-spacing: var(--ls-statement); font-weight: 300; }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); max-width: 40em; }
.small { font-size: var(--fs-small); line-height: var(--lh-small); }
.caption { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--fg-muted); }
.muted { color: var(--fg-muted); }
.accent, .two-tone .accent { color: var(--fg-accent); }   /* second tone of a two-tone headline */
.strong { font-weight: 600; color: var(--fg-heading); }
.measure { max-width: 42em; }

/* Running text (bodies of pages) */
.prose > * + * { margin-top: var(--sp-4); }
.prose > .h2 { margin-top: var(--sp-9); }
.prose > .h3 { margin-top: var(--sp-7); }
.prose > .h4 { margin-top: var(--sp-6); }
.prose > .h2 + *, .prose > .h3 + *, .prose > .h4 + * { margin-top: var(--sp-3); }
.prose p { max-width: 42em; }
.prose ul { list-style: none; max-width: 42em; }
.prose li { position: relative; padding-left: 22px; }
.prose li + li { margin-top: var(--sp-2); }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--ramp-1); border-radius: 1px; }
.prose ul ul { margin-top: var(--sp-2); }
.prose ul ul li::before { width: 5px; background: var(--ramp-2); }
.prose a:not(.btn) { color: var(--link); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.prose a:not(.btn):hover { color: var(--link-hover); }
.prose strong { font-weight: 600; color: var(--fg-heading); }

/* Plain inline link and arrowed text link */
.link { color: var(--link); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; transition: color var(--dur) var(--ease); }
.link:hover { color: var(--link-hover); }
.link--arrow { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: var(--fs-small); }
.link--arrow::after { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; transition: transform var(--dur) var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' d='M2 8h11M9 3.5 13.5 8 9 12.5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' d='M2 8h11M9 3.5 13.5 8 9 12.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.link--arrow:hover { text-decoration: underline; text-underline-offset: .22em; }
.link--arrow:hover::after { transform: translateX(3px); }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  --bg: var(--c-lt-bg);
  container: header / inline-size;   /* mobile rules below use @container, so the header adapts to its own width */
  position: sticky; top: 0; z-index: 50;
  background: var(--c-lt-bg);
  border-bottom: var(--bw-hair) solid var(--c-lt-border);
  color: var(--c-lt-heading);
}
/* --hdr-t goes from 0 (page top: expanded, big logo) to 1 (scrolled: compact). js/eval.js sets it; without JS the header is compact. */
.site-header { --hdr-t: 1; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6);
  height: calc(var(--header-h) + (var(--header-h-x) - var(--header-h)) * (1 - var(--hdr-t))); }
.site-header__logo { display: inline-flex; align-items: center; flex: none; }
.site-header__logo img { height: calc(var(--logo-h) + (var(--logo-h-x) - var(--logo-h)) * (1 - var(--hdr-t))); width: auto; }
.site-header--static { --hdr-t: 1 !important; }   /* demos on the component sheet */

.nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav__list { display: flex; align-items: center; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: var(--fs-nav); font-weight: 500; color: var(--c-lt-heading); text-decoration: none;
  background: transparent; border: 0; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { background: var(--c-lt-pill); color: var(--c-royal-ink); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--c-royal); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.nav__link .chev { width: 12px; height: 12px; transition: transform var(--dur) var(--ease); }
.nav__item--menu:hover .chev, .nav__item--menu:focus-within .chev, .nav__item--menu.is-open .chev { transform: rotate(180deg); }

/* Services dropdown: opens on hover, keyboard focus, or click (JS toggles .is-open) */
.menu {
  position: absolute; left: 0; top: calc(100% + 8px); min-width: 360px;
  padding: var(--sp-2); margin: 0; list-style: none;
  background: var(--c-lt-bg); border: var(--bw-hair) solid var(--c-lt-border); border-radius: var(--r-md);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }   /* hover bridge */
.nav__item--menu:hover .menu, .nav__item--menu:focus-within .menu, .nav__item--menu.is-open .menu {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.menu__link {
  display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; align-items: start;
  padding: 12px 14px; border-radius: var(--r-sm); text-decoration: none; color: var(--c-lt-heading);
  transition: background var(--dur) var(--ease);
}
.menu__link:hover { background: var(--c-lt-pill); }
.menu__link .icon { width: 28px; height: 28px; color: var(--c-royal); margin-top: 2px; }
.menu__text { display: block; min-width: 0; }
.menu__title { display: block; font-size: var(--fs-nav); font-weight: 600; line-height: 1.3; }
.menu__desc { display: block; font-size: 14px; line-height: 1.4; color: var(--c-lt-body); margin-top: 2px; }

/* Mobile toggle + panel */
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; border-radius: var(--r-sm); color: var(--c-lt-heading); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .ic-close { display: none; }
.site-header.is-open .nav-toggle .ic-menu { display: none; }
.site-header.is-open .nav-toggle .ic-close { display: block; }

@container header (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: var(--c-lt-bg); border-bottom: var(--bw-hair) solid var(--c-lt-border);
    padding: var(--sp-3) var(--margin) var(--sp-6);
  }
  .site-header.is-open .nav { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item + .nav__item { border-top: var(--bw-hair) solid var(--c-lt-border); }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 18px; border-radius: 0; }
  .nav__link:hover { background: transparent; }
  .nav__link[aria-current="page"] { box-shadow: none; color: var(--c-royal-ink); }
  .menu { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 var(--sp-3) 0; display: none; transition: none; }
  .nav__item--menu:hover .menu, .nav__item--menu:focus-within .menu { display: none; }   /* no hover-open on touch */
  .nav__item--menu.is-open .menu { display: block; }                                      /* tap "Services" to expand */
  .menu__link { padding: 12px 8px; }
  .nav .btn { margin-top: var(--sp-4); width: 100%; }
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 var(--sp-5); border-radius: var(--r-btn);
  font-size: var(--fs-button); font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); border-color: var(--btn-primary-bg); }
.btn--primary:hover { background: var(--btn-primary-bg-hover); border-color: var(--btn-primary-bg-hover); }
.btn--primary:active { background: var(--c-royal-deep); }
.btn--secondary { background: transparent; color: var(--btn-secondary-fg); border-color: var(--btn-secondary-border); }
.btn--secondary:hover { background: var(--btn-secondary-bg-hover); }
.btn--sm { min-height: 40px; padding: 0 var(--sp-4); font-size: var(--fs-small); }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); align-items: center; }
/* The header's own button always sits on white */
.site-header .btn--primary { --btn-primary-bg: var(--c-royal-ink); --btn-primary-bg-hover: var(--c-royal-deep); --btn-primary-fg: #fff; }

/* ---- Pills & tags ----------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-label);
  letter-spacing: var(--ls-label); text-transform: uppercase;
  background: var(--pill-bg); color: var(--pill-fg);
  border: var(--bw-hair) solid transparent;
  width: fit-content;           /* never stretches inside flex/grid columns */
}
.pill--white { background: var(--c-white); color: var(--c-lt-heading); }
.pill--outline { background: transparent; color: var(--fg-heading); border-color: var(--pill-outline); }
.pill--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-sky); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--r-xs);
  font-size: var(--fs-caption); font-weight: 500; line-height: 1;
  color: var(--fg-heading); border: var(--bw-hair) solid var(--surface-border); background: var(--surface);
}

/* ---- Feature row & cards --------------------------------------------- */
.feature-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.feature { border-top: var(--bw-accent) solid var(--ramp-1); padding-top: var(--sp-5); min-width: 0; }
.feature:nth-child(3n+2) { border-top-color: var(--ramp-2); }
.feature:nth-child(3n+3) { border-top-color: var(--ramp-3); }
.feature > * + * { margin-top: var(--sp-3); }
.feature .h3, .feature .h4 { margin-bottom: 4px; }
@media (max-width: 767px) { .feature-row { grid-template-columns: 1fr; gap: var(--sp-6); } }
@media (min-width: 768px) and (max-width: 1023px) { .feature-row { gap: var(--sp-5); } }

.card {
  background: var(--surface); border: var(--bw-hair) solid var(--surface-border); border-radius: var(--r-md);
  padding: var(--sp-6); min-width: 0;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card > * + * { margin-top: var(--sp-3); }
.card--rule { border-left: var(--bw-rule) solid var(--ramp-1); border-radius: 0 var(--r-md) var(--r-md) 0; }
.card--rule-2 { border-left-color: var(--ramp-2); }
.card--rule-3 { border-left-color: var(--ramp-3); }
.card--link:hover { border-color: var(--ramp-2); }
.theme-light .card--link:hover, .theme-alt .card--link:hover { border-color: var(--c-royal); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-5); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; } .card { padding: var(--sp-5); } }

/* ---- Stats ------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); list-style: none; margin: 0; padding: 0; }
.stat { border-top: var(--bw-hair) solid var(--rule); padding-top: var(--sp-5); }
.theme-dark .stat { border-top-color: rgba(114, 123, 144, .7); }
.stat__value {
  display: block; font-size: var(--fs-stat); line-height: var(--lh-stat); letter-spacing: var(--ls-stat); font-weight: var(--fw-stat);
  color: var(--fg-accent); font-variant-numeric: tabular-nums; font-optical-sizing: auto;
}
.stat--1 .stat__value { color: var(--stat-1); }
.stat--2 .stat__value { color: var(--stat-2); }
.stat--3 .stat__value { color: var(--stat-3); }
.stat__label { display: block; margin-top: var(--sp-3); font-size: var(--fs-small); line-height: var(--lh-small); max-width: 22em; }
@media (max-width: 767px) {   /* phones: the three stats stay side by side, compact */
  .stats { gap: var(--sp-4); }
  .stat { padding-top: var(--sp-3); }
  .stat__label { margin-top: var(--sp-2); font-size: 13px; line-height: 1.4; }
}

/* ---- Process diagram (3 steps, arrowed arcs) -------------------------- */
.process { position: relative; }
.process__arcs { display: block; width: 100%; height: auto; margin-bottom: -8px; }
.process__arcs .node { fill: var(--bg); stroke-width: 2; }
.process__arcs .node-1 { stroke: var(--ramp-1); } .process__arcs .node-2 { stroke: var(--ramp-2); } .process__arcs .node-3 { stroke: var(--ramp-3); }
.process__arcs .arc-1 { stroke: var(--ramp-1); fill: none; stroke-width: 2; }
.process__arcs .arc-2 { stroke: var(--ramp-2); fill: none; stroke-width: 2; }
.process__arcs .head-1 { fill: var(--ramp-1); } .process__arcs .head-2 { fill: var(--ramp-2); }
.process__arcs .num { fill: var(--fg-heading); font-family: var(--font-sans); font-size: 20px; font-weight: 500; }
.process__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); list-style: none; }
.process__step { text-align: center; padding: 0 var(--sp-3); }
.prose .process__step::before { content: none; }           /* no prose bullets inside the diagram */
.prose .process__step + .process__step { margin-top: 0; }
.process__step .h4 { margin-bottom: var(--sp-2); }
.process__num { display: none; }
@media (max-width: 767px) {
  .process__arcs { display: none; }
  .process__steps { grid-template-columns: 1fr; gap: 0; position: relative; }
  .process__steps::before { content: ""; position: absolute; left: 19px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--ramp-1), var(--ramp-2), var(--ramp-3)); border-radius: 1px; }
  .process__step, .prose .process__step { text-align: left; display: grid; grid-template-columns: 40px 1fr; column-gap: var(--sp-4); padding: 0 0 var(--sp-6); }
  .process__num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ramp-1); background: var(--bg); color: var(--fg-heading); font-weight: 500; font-size: 17px; }
  .process__step:nth-child(2) .process__num { border-color: var(--ramp-2); }
  .process__step:nth-child(3) .process__num { border-color: var(--ramp-3); }
  .process__step:last-child { padding-bottom: 0; }
}

/* ---- Service card, insight card, media row ---------------------------- */
.icon { display: inline-block; width: 24px; height: 24px; color: var(--icon); flex: none; }
.icon--lg { width: 48px; height: 48px; }
.icon--xl { width: 96px; height: 96px; }

.service-card { display: flex; flex-direction: column; }
.service-card .icon--lg { margin-bottom: var(--sp-2); }
.service-card .h3 { margin-top: var(--sp-2); }
.service-card .prose { margin-top: var(--sp-2); }
.service-card .link--arrow { margin-top: auto; padding-top: var(--sp-4); align-self: flex-start; }
.service-card ul { list-style: none; }
.service-card li { position: relative; padding-left: 20px; }
.service-card li + li { margin-top: 6px; }
.service-card li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--ramp-1); border-radius: 1px; }

.insight-card { display: flex; flex-direction: column; min-width: 0; }
.insight-card__media { aspect-ratio: 16 / 10; width: 100%; overflow: hidden; border-radius: var(--r-md); background: var(--surface); border: var(--bw-hair) solid var(--surface-border); }
.insight-card__media img { width: 100%; height: 100%; object-fit: cover; }
.insight-card__body { padding-top: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.insight-card__body > * + * { margin-top: var(--sp-3); }
.insight-card .h4 { font-size: var(--fs-h4); }
.insight-card .link--arrow { margin-top: auto; padding-top: var(--sp-4); align-self: flex-start; }

/* Image + text row (insights page sections) */
.media-row { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-9); align-items: center; }
.media-row--flip { grid-template-columns: 7fr 5fr; }
.media-row--flip .media-row__media { order: 2; }
.media-row__media { border-radius: var(--r-md); overflow: hidden; border: var(--bw-hair) solid var(--surface-border); background: var(--surface); aspect-ratio: 16 / 10; }
.media-row__media img { width: 100%; height: 100%; object-fit: cover; }
.media-row__body > * + * { margin-top: var(--sp-4); }
.media-row__body .pill + * { margin-top: var(--sp-4); }
@media (max-width: 1023px) { .media-row { grid-template-columns: 1fr; gap: var(--sp-6); } .media-row--flip .media-row__media { order: 0; } }

/* Placeholder tile for images that are still to be supplied */
.ph {
  position: relative; width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: var(--sp-4);
  color: var(--c-dk-muted);
  background:
    linear-gradient(135deg, rgba(70,116,225,.18), rgba(143,173,235,.06)),
    repeating-linear-gradient(45deg, rgba(220,228,248,.07) 0 1px, transparent 1px 14px),
    linear-gradient(135deg, #0B1B42, #0A183C);
}
.ph__text { font-size: var(--fs-caption); line-height: 1.5; font-variant-numeric: tabular-nums; }
.ph__text strong { display: block; color: var(--c-dk-heading); font-weight: 600; margin-bottom: 2px; }
.ph .icon { color: var(--c-periwinkle); }

/* ---- Team profile ----------------------------------------------------- */
.profile { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
.profile__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); background: var(--surface); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.profile__body > * + * { margin-top: var(--sp-4); }
.profile__name { margin-bottom: 2px; }
.profile__role { font-size: var(--fs-small); font-weight: 600; letter-spacing: .02em; color: var(--fg-accent); }
.theme-light .profile__role, .theme-alt .profile__role { color: var(--c-royal-ink); }
.profile__contact { display: flex; flex-wrap: wrap; gap: 6px var(--sp-4); list-style: none; font-size: var(--fs-small); padding-block: var(--sp-3); border-block: var(--bw-hair) solid var(--surface-border); }
.profile__contact li { display: inline-flex; align-items: center; gap: 8px; }
.profile__contact .icon { width: 16px; height: 16px; }
.profile__contact a { color: var(--link); text-decoration: none; }
.profile__contact a:hover { text-decoration: underline; text-underline-offset: .18em; }
.profile__bio > * + * { margin-top: var(--sp-4); }
.profile__bio p { max-width: 42em; }
@media (max-width: 1023px) { .profile { grid-template-columns: 220px minmax(0, 1fr); gap: var(--sp-6); } }
@media (max-width: 767px)  { .profile { grid-template-columns: 1fr; gap: var(--sp-5); } .profile__photo { max-width: 240px; } }
.profiles > * + * { margin-top: var(--sp-10); padding-top: var(--sp-10); border-top: var(--bw-hair) solid var(--surface-border); }
@media (max-width: 767px) { .profiles > * + * { margin-top: var(--sp-8); padding-top: var(--sp-8); } }

/* ---- Key/value list (term + description rows) ------------------------- */
.kv-list { display: grid; margin: 0; }
.kv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-1) var(--sp-6); padding-block: var(--sp-4); border-top: var(--bw-hair) solid var(--surface-border); margin: 0; }
.kv:last-child { border-bottom: var(--bw-hair) solid var(--surface-border); }
.kv dt { font-weight: 600; color: var(--fg-heading); }
.kv dd { margin: 0; }
@media (max-width: 767px) { .kv { grid-template-columns: 1fr; } }

/* ---- Download card & office card -------------------------------------- */
.download-card { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--sp-4); align-items: start; }
.download-card > * + * { margin-top: 0; }
.download-card__body > * + * { margin-top: var(--sp-2); }
.download-card__meta { font-size: var(--fs-caption); color: var(--fg-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.download-card .btn { margin-top: var(--sp-4); }
.download-card .icon--lg { width: 44px; height: 44px; }

.office-card .h4 { margin-bottom: var(--sp-1); }
.office-card address { font-style: normal; line-height: 1.55; }
.office-card .link--arrow { margin-top: var(--sp-4); }

/* ---- Form ------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: 8px; }
.field__label { font-size: var(--fs-small); font-weight: 600; color: var(--fg-heading); }
.field__label .req { color: var(--c-royal); margin-left: 2px; }
.theme-dark .field__label .req { color: var(--c-periwinkle); }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-input);
  background: var(--input-bg); color: var(--input-fg); border: var(--bw-hair) solid var(--input-border);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder { color: var(--fg-muted); opacity: 1; }
.input:hover { border-color: var(--fg-muted); }
.input:focus-visible { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
textarea.input { min-height: 140px; resize: vertical; }
.field__hint { font-size: var(--fs-caption); color: var(--fg-muted); }
.check { display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; align-items: start; font-size: var(--fs-small); line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-royal-ink); border-radius: var(--r-xs); }
.theme-dark .check input { accent-color: var(--c-periwinkle); }
.form .btn { justify-self: start; }

/* ---- Callout ---------------------------------------------------------- */
.callout {
  background: var(--callout-bg); color: var(--callout-fg); border-radius: var(--r-md);
  padding: var(--sp-6) var(--sp-7); font-style: italic; font-size: 19px; line-height: 1.55; max-width: 48em;
}
.callout p + p { margin-top: var(--sp-3); }
.callout cite { display: block; font-style: normal; font-size: var(--fs-caption); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--c-periwinkle); margin-top: var(--sp-4); }
@media (max-width: 767px) { .callout { padding: var(--sp-5); font-size: 17px; } }

/* ---- Contact band + subscribe ----------------------------------------- */
.contact-band { padding-block: var(--section-y-compact); }
.contact-band__inner { display: grid; grid-template-columns: 7fr 5fr; gap: var(--sp-9); align-items: center; }
.contact-band__copy > * + * { margin-top: var(--sp-5); }
.contact-band__copy .h2 { max-width: 14em; }
.contact-band .btn-row { margin-top: var(--sp-6); }
.subscribe > * + * { margin-top: var(--sp-3); }
.subscribe .btn { margin-top: var(--sp-5); }
@media (max-width: 1023px) { .contact-band__inner { grid-template-columns: 1fr; gap: var(--sp-7); } }

/* ---- Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--bg); color: var(--fg-body);
  border-top: var(--bw-hair) solid rgba(114, 123, 144, .35);
  padding-block: var(--sp-9) var(--sp-6);
  font-size: var(--fs-small);
}
.site-footer.theme-dark { --bg: var(--c-dk-0); background-image: none; }   /* footer: solid near-black under the gradient contact band */
.site-footer .logo--light { display: none; }
.site-footer.theme-light .logo--dark, .site-footer.theme-alt .logo--dark { display: none; }
.site-footer.theme-light .logo--light, .site-footer.theme-alt .logo--light { display: block; }
.site-footer__grid { display: grid; grid-template-columns: 4fr 2fr 2fr 4fr; gap: var(--sp-8); }
.site-footer__brand img { height: 56px; width: auto; }
.site-footer__brand > * + * { margin-top: var(--sp-4); }
.site-footer__tag { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; font-weight: 600; color: var(--fg-accent); }
.site-footer__brand p { max-width: 30em; }
.site-footer__title { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; font-weight: 600; color: var(--fg-heading); margin-bottom: var(--sp-4); }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--fg-body); text-decoration: none; transition: color var(--dur) var(--ease); }
.site-footer a:hover { color: var(--fg-heading); text-decoration: underline; text-underline-offset: .18em; }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer address > * + * { margin-top: 6px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3) var(--sp-6); margin-top: var(--sp-9); padding-top: var(--sp-5); border-top: var(--bw-hair) solid rgba(114, 123, 144, .35); font-size: var(--fs-caption); color: var(--fg-muted); }
@media (max-width: 1023px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 767px)  { .site-footer__grid { grid-template-columns: 1fr; gap: var(--sp-7); } }

/* ---- Hero (home) & page header (inner pages) -------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .26; filter: grayscale(.4) contrast(1.05); }
.hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 10, 20, .78) 0%, rgba(10, 24, 60, .35) 55%, rgba(30, 53, 114, .2) 100%); }
.hero__inner { padding-block: var(--sp-12) var(--sp-11); }
.hero__copy { position: relative; max-width: 860px; padding-left: var(--sp-7); }
.hero__copy::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .3em; width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--c-royal), var(--c-periwinkle)); }   /* the rule to the left of the hero text */
.hero__copy > * + * { margin-top: var(--sp-6); }
.hero__copy .lead { max-width: 34em; }
@media (max-width: 767px) { .hero__copy { padding-left: var(--sp-5); } }
/* Entrance: the hero text rises in on load (no JS needed) */
@keyframes rise { from { opacity: 0; transform: translateY(var(--reveal-y)); } to { opacity: 1; transform: none; } }
.hero__copy > * { animation: rise var(--reveal-dur) var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: 120ms; }
.hero__copy > :nth-child(3) { animation-delay: 240ms; }
.hero__stats .stat { animation: rise var(--reveal-dur) var(--ease) both; animation-delay: calc(360ms + var(--k, 0) * var(--reveal-stagger)); }
.hero__stats .stat:nth-child(2) { --k: 1; } .hero__stats .stat:nth-child(3) { --k: 2; }
.hero__stats { padding-bottom: var(--sp-11); }
@media (max-width: 767px) { .hero__inner { padding-block: var(--sp-9) var(--sp-9); } .hero__copy > * + * { margin-top: var(--sp-5); } .hero__stats { padding-bottom: var(--sp-9); } }

.photo-band { height: 360px; }
@media (max-width: 767px) { .photo-band { height: 220px; } }

.page-header { padding-block: var(--section-y-compact) var(--section-y-compact); }
.page-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-8); align-items: center; }
.page-header__copy { max-width: 760px; }
.page-header__copy > * + * { margin-top: var(--sp-5); }
.page-header__icon { width: 160px; height: 160px; color: var(--c-periwinkle); opacity: .9; }
@media (max-width: 767px) { .page-header__inner { grid-template-columns: 1fr; gap: var(--sp-5); } .page-header__icon { width: 72px; height: 72px; order: -1; } }

/* ---- Sidebar layout (service pages) ----------------------------------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-10); align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + var(--sp-5)); display: grid; gap: var(--sp-5); }
.sidebar__title { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; font-weight: 600; color: var(--fg-muted); margin-bottom: var(--sp-3); }
.service-list { list-style: none; display: grid; gap: 4px; }
.service-list a { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; font-size: var(--fs-small); color: var(--fg-heading); transition: background var(--dur) var(--ease); }
.service-list a:hover { background: var(--surface-hover); }
.service-list a[aria-current="page"] { background: var(--surface); box-shadow: inset 3px 0 0 var(--ramp-1); color: var(--link); }
.service-list .icon { width: 28px; height: 28px; }
.talk-card .h4 { margin-bottom: var(--sp-1); }
.talk-card ul { list-style: none; display: grid; gap: 8px; margin-top: var(--sp-3); }
.talk-card li { display: flex; align-items: center; gap: 10px; }
.talk-card li .icon { width: 18px; height: 18px; }
.talk-card a:not(.btn) { color: var(--link); text-decoration: none; }
.talk-card a:not(.btn):hover { text-decoration: underline; text-underline-offset: .18em; }
.talk-card .btn { margin-top: var(--sp-5); }
@media (max-width: 1023px) { .with-sidebar { grid-template-columns: 1fr; gap: var(--sp-8); } .sidebar { position: static; } }

/* ---- Venn diagram ----------------------------------------------------- */
.venn { max-width: 960px; }
.venn__svg { display: block; width: 100%; height: auto; }
.venn__svg .ring-a { fill: var(--ramp-1); fill-opacity: .08; stroke: var(--ramp-1); stroke-width: 2; }
.venn__svg .ring-b { fill: var(--ramp-2); fill-opacity: .08; stroke: var(--ramp-2); stroke-width: 2; }
.venn__svg .lens { fill: var(--ramp-3); fill-opacity: .16; }
.venn__svg text { font-family: var(--font-sans); }
.venn__svg .t-title { fill: var(--fg-heading); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.venn__svg .t-item { fill: var(--fg-body); font-size: 15.5px; }
.venn__svg .t-note { fill: var(--fg-muted); font-size: 13.5px; font-style: italic; }
.venn__caption { margin-top: var(--sp-5); max-width: 42em; }
.venn--nocap .venn__caption { display: none; }
.venn__stack { display: none; }
@media (max-width: 767px) {
  .venn__svg { display: none; }
  .venn__stack { display: grid; gap: var(--sp-4); }
  .venn__stack .card > * + * { margin-top: var(--sp-2); }
  .venn__stack ul { list-style: none; display: grid; gap: 6px; }
  .venn__stack li { padding-left: 18px; position: relative; }
  .venn__stack li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--ramp-1); }
  .venn__stack .card--rule-2 li::before { background: var(--ramp-2); }
  .venn__stack .card--rule-3 li::before { background: var(--ramp-3); }
}

/* ---- Chart style (for future use) ------------------------------------- */
.chart { max-width: 720px; }
.chart__svg { display: block; width: 100%; height: auto; }
.chart__svg .grid { stroke: var(--c-chart-grid); stroke-opacity: .45; stroke-dasharray: 4 6; stroke-width: 1; }
.chart__svg .axis { stroke: var(--c-chart-grid); stroke-opacity: .7; stroke-width: 1; }
.chart__svg .bar { fill: url(#bar-ramp); }
.theme-light .chart__svg .bar, .theme-alt .chart__svg .bar { stroke: var(--c-chart-1); stroke-width: 1; }   /* keeps the pale top of the gradient readable on white */
.chart__svg .bar--alt { fill: var(--c-chart-2); }
.chart__svg .line { fill: none; stroke: var(--c-chart-1); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.theme-dark .chart__svg .line { stroke: var(--c-chart-2); }
.chart__svg .dot { fill: var(--c-chart-1); }
.theme-dark .chart__svg .dot { fill: var(--c-chart-2); }
.chart__svg text { font-family: var(--font-sans); font-size: 12px; fill: var(--chart-text); font-variant-numeric: tabular-nums; }
.chart__title { font-size: var(--fs-small); font-weight: 600; color: var(--fg-heading); margin-bottom: var(--sp-3); }
.chart__legend { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-3); font-size: var(--fs-caption); color: var(--fg-muted); }
.chart__legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart__legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }

/* ---- Approach section: text left, the network terrain filling the right half ---- */
.approach { position: relative; overflow: hidden; }
.approach > .container { position: relative; z-index: 1; }
.approach__mesh { position: absolute; inset: 0; --mesh-layout: stage; }   /* the whole section; the terrain itself keeps to the right and dissolves towards the bottom-left */
@media (min-width: 1024px) { .approach { padding-bottom: calc(var(--section-y) + 150px); min-height: clamp(600px, 40vw, 820px); } }   /* room for the terrain to run out under the text, down to the bottom-left */
@media (max-width: 1023px) {
  .approach { padding-bottom: 0; }   /* the terrain runs to the bottom edge of the section: no white gap */
  .approach__mesh { position: relative; inset: auto; height: 360px; margin-top: var(--sp-8); --mesh-layout: block; }
}
@media (max-width: 767px)  { .approach__mesh { height: 300px; margin-top: var(--sp-6); } }

/* ---- Mesh canvas (js/mesh.js): a low-poly wireframe surface with a dot field, forms right-to-left, then drifts ---- */
.mesh { display: block; width: 100%; height: 100%; }
:root, .theme-light, .theme-alt { --mesh-line: #4674E1; --mesh-dot: #3760D2; }
.theme-dark { --mesh-line: #8FADEB; --mesh-dot: #9DB4EC; }

/* ---- Service index ("What we do") --------------------------------------
   Static by default: each service sits under its own big title, text to the right, hairlines between.
   js/eval.js adds .wwd--pinned on viewports where the whole stage fits: the section becomes a scroll-driven
   stage pinned under the header — the four titles stack on the left and fill in as the scroll position picks
   the active one, while the matching panel (icon, label, text) crossfades on the right. ---- */
.wwd { --wwd-n: 4; --wwd-step: 72vh; --wwd-pad: 24px; --fs-index: clamp(26px, min(3vw, 5.2vh), 40px);   /* scales with width and height so the stage fits */
       --wwd-dim: #8794B8; }                     /* inactive titles: pale blue-grey, 3:1 on white */
.theme-dark .wwd, .wwd.theme-dark { --wwd-dim: #7787B0; }   /* and a dim periwinkle on dark */
/* the heading is the standard two-tone .h2 ("What we do"); .wwd__head only sets its spacing */
.wwd__index { display: none; list-style: none; margin: 0; padding: 0; }
.wwd__index-item button {
  display: block; width: 100%; text-align: left; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: var(--fs-index); font-size: min(var(--fs-index), 6.5cqi);   /* sized from the column so every title fits on one line */
  font-weight: 700; line-height: 1.12; letter-spacing: -.02em; font-optical-sizing: auto;
  color: var(--wwd-dim); text-wrap: balance; transition: color 480ms var(--ease);
}
.wwd__index-item button:hover { color: var(--fg-body); }
.wwd__index-item.is-active button, .wwd__index-item.is-active button:hover { color: var(--fg-heading); }
.wwd__index-item button:focus-visible { outline-offset: 6px; }
.wwd__title { font-size: var(--fs-index); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; color: var(--fg-heading); text-wrap: balance; }
.wwd__icon { display: block; width: 88px; height: 88px; color: var(--icon); }
.wwd__body p { max-width: 38em; }
.wwd__panel > * + * { margin-top: var(--sp-4); }
.wwd__panel .wwd__icon + * { margin-top: var(--sp-6); }   /* breathing room between the icon and the text */
.wwd__panel .link--arrow { margin-top: var(--sp-5); }

/* static layout (default, mobile, reduced motion, no JS) */
.wwd:not(.wwd--pinned) { padding-block: var(--section-y); }
.wwd:not(.wwd--pinned) .wwd__head { margin-bottom: var(--sp-8); }
.wwd:not(.wwd--pinned) .wwd__panels { display: grid; }
.wwd:not(.wwd--pinned) .wwd__panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--sp-9); padding-block: var(--sp-8); border-top: var(--bw-hair) solid var(--surface-border); }
.wwd:not(.wwd--pinned) .wwd__panel:last-child { border-bottom: var(--bw-hair) solid var(--surface-border); }
.wwd:not(.wwd--pinned) .wwd__panel > * { grid-column: 2; }
.wwd:not(.wwd--pinned) .wwd__title { grid-column: 1; grid-row: 1 / span 6; margin: 0; }
.wwd:not(.wwd--pinned) .wwd__icon { width: 64px; height: 64px; margin-top: 0; }
@media (max-width: 767px) {   /* phones: each title shares a header row with its icon on the right */
  .wwd:not(.wwd--pinned) .wwd__panel { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-3); padding-block: var(--sp-7); container-type: inline-size; }
  .wwd:not(.wwd--pinned) .wwd__panel > * { grid-column: 1 / -1; }
  .wwd:not(.wwd--pinned) .wwd__title {
    grid-column: 1; grid-row: 1; align-self: center; margin: 0;
    font-size: 20px;
    font-size: clamp(16px, calc((100cqi - 52px) / 15.8), 26px);   /* sized so the longest title ("Valuation Transparency Advisory", ~15.5em at text sizes) fits on one line beside the icon */
  }
  .wwd:not(.wwd--pinned) .wwd__icon { grid-column: 2; grid-row: 1; align-self: center; width: 40px; height: 40px; margin: 0; }
  .wwd:not(.wwd--pinned) .wwd__icon + * { margin-top: var(--sp-5); }
}

/* pinned layout */
.wwd--pinned .wwd__track { height: calc(100vh - var(--header-h) + var(--wwd-n) * var(--wwd-step)); }
.wwd--pinned .wwd__sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding-block: var(--wwd-pad); box-sizing: border-box; }
.wwd--pinned .wwd__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--sp-10); align-items: start; }   /* the icon sits level with the heading, the text beside the titles */
.wwd--pinned .wwd__body { font-size: 16px; line-height: 1.6; }
.wwd--pinned .wwd__head { margin-bottom: var(--sp-7); }
.wwd--pinned .wwd__left { container-type: inline-size; }
.wwd--pinned .wwd__index { display: grid; gap: var(--sp-3); }
.wwd--pinned .wwd__title { display: none; }
.wwd--pinned .wwd__icon { margin-top: 0; }   /* top of the icon level with the top of the heading */
.wwd--pinned .wwd__panels { display: grid; }
@keyframes wwd-in-down { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes wwd-in-up   { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: none; } }
.wwd--pinned .wwd__panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), visibility 0s linear 200ms; }
.wwd--pinned .wwd__panel.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.wwd--pinned .wwd__panel.is-active > * { animation: wwd-in-down 540ms var(--ease) both; animation-delay: 30ms; }
.wwd--pinned .wwd__panel.is-active > :nth-child(3) { animation-delay: 80ms; }
.wwd--pinned .wwd__panel.is-active > :nth-child(4) { animation-delay: 130ms; }
.wwd--pinned[data-dir="up"] .wwd__panel.is-active > * { animation-name: wwd-in-up; }

/* ---- Scroll reveal: js/eval.js adds .reveal to blocks below the fold, then .is-in when they enter the viewport ---- */
.reveal { opacity: 0; transform: translateY(var(--reveal-y));
  transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease);
  transition-delay: calc(var(--d, 0) * var(--reveal-stagger)); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__copy > *, .hero__stats .stat { animation: none; }
}

/* ---- Utilities -------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--sp-4); top: -100px; z-index: 100; padding: 10px 14px; border-radius: var(--r-sm); background: var(--c-lt-heading); color: #fff; text-decoration: none; }
.skip-link:focus { top: var(--sp-3); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.flow-sm > * + * { margin-top: var(--sp-3); }

/* ---- No filled boxes (Oct 13, Federico) ---------------------------------
   Cards lose their fill and outline and keep only their accent line;
   tags keep only their outline; the current item in the service sidebar
   keeps only its line. */
.card {
  background: transparent; border: 0; border-radius: 0;
  padding: var(--sp-1) 0 var(--sp-1) var(--sp-5);
}
.card--rule { border-left: var(--bw-rule) solid var(--ramp-1); }
.card--rule-2 { border-left-color: var(--ramp-2); }
.card--rule-3 { border-left-color: var(--ramp-3); }
.card.form { padding: 0; }
@media (max-width: 767px) {
  .card { padding: var(--sp-1) 0 var(--sp-1) var(--sp-4); }
  .card.form { padding: 0; }
}
.tag { background: transparent; }
.service-list a[aria-current="page"] { background: transparent; }
