/* ============================================================
   PHARMAKA CLINICAL CONSULTING
   Redesign - foundation stylesheet
   ============================================================ */

/* --- Design tokens --------------------------------------- */
:root {
  /* Color - palette drawn from the Pharmaka logo (deep forest + bright leaf) */
  --ink:        #0A2015;  /* Deep forest - replaces near-black on dark surfaces */
  --evergreen:  #145A34;  /* Rich deep green (logo dark) */
  --moss:       #2E8B57;  /* Medium vibrant green */
  --fern:       #4FB05C;  /* Bright leaf accent (logo bright) */
  --fern-glow:  #7BD284;  /* Lightest highlight for glows */
  --parchment:  #F4EFE6;  /* Warm off-white - keep */
  --bone:       #E8E2D3;  /* Surface alt */
  --bone-deep:  #DDD5C1;
  --copper:     #B8642F;  /* Warm counterpoint - used sparingly */
  --copper-deep:#8F4A1F;
  --hairline:   rgba(10, 32, 21, 0.14);
  --hairline-strong: rgba(10, 32, 21, 0.30);

  /* Type */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Scale */
  --step-xs:   0.75rem;   /* 12 */
  --step-s:    0.875rem;  /* 14 */
  --step-b:    1rem;      /* 16 */
  --step-m:    1.125rem;  /* 18 */
  --step-l:    1.375rem;  /* 22 */
  --step-xl:   1.75rem;   /* 28 */
  --step-2xl:  2.25rem;   /* 36 */
  --step-3xl:  3rem;      /* 48 */
  --step-4xl:  4.75rem;   /* 76 */
  --step-5xl:  6.75rem;   /* 108 */

  /* Layout */
  --container:   1240px;
  --gutter:      2rem;
  --section-y:   clamp(4rem, 8vw, 8rem);

  /* Motion */
  --ease:        cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; }

/* --- Base ------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-b);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--evergreen); color: var(--parchment); }

/* --- Utility: layout ------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 880px; }

.section { padding: var(--section-y) 0; position: relative; }
.section--ink { background: var(--ink); color: var(--parchment); }
.section--evergreen { background: var(--evergreen); color: var(--parchment); }
.section--bone { background: var(--bone); }

.hairline { border-top: 1px solid var(--hairline); }
.section--ink .hairline,
.section--evergreen .hairline { border-color: rgba(244, 239, 230, 0.18); }

/* --- Typography ------------------------------------------ */
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--step-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
}
.section--ink .eyebrow,
.section--evergreen .eyebrow { color: #E4A778; }

.display {
  font-family: var(--f-display);
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.section--ink .display,
.section--evergreen .display { color: var(--parchment); }

.display--xl { font-size: clamp(2.5rem, 6.4vw, var(--step-5xl)); }
.display--l  { font-size: clamp(2.1rem, 4.8vw, var(--step-4xl)); }
.display--m  { font-size: clamp(1.75rem, 3.4vw, var(--step-3xl)); }
.display--s  { font-size: clamp(1.35rem, 2.4vw, var(--step-2xl)); line-height: 1.15; }

.display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--moss);
}
.section--ink .display em,
.section--evergreen .display em { color: #C6B48A; }

.lede {
  font-family: var(--f-body);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  font-weight: 400;
  max-width: 60ch;
  color: rgba(10, 32, 21, 0.82);
}
.section--ink .lede,
.section--evergreen .lede { color: rgba(244, 239, 230, 0.82); }

.body-l  { font-size: 1.0625rem; line-height: 1.6; }
.body-m  { font-size: 1rem; line-height: 1.55; }
.body-s  { font-size: 0.9375rem; line-height: 1.5; }

.label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(10, 32, 21, 0.6);
}
.section--ink .label,
.section--evergreen .label { color: rgba(244, 239, 230, 0.6); }

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.4rem 0.9rem;
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 260ms var(--ease), background-color 260ms var(--ease), color 260ms var(--ease);
  border: 1px solid transparent;
  line-height: 1;
}
.btn__arrow {
  font-family: var(--f-display);
  font-size: 1.05em;
  transition: transform 260ms var(--ease);
  display: inline-block;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--ink);
  color: var(--parchment);
}
.btn--primary:hover { background: var(--evergreen); }

.btn--copper {
  background: var(--copper);
  color: var(--parchment);
}
.btn--copper:hover { background: var(--copper-deep); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn--ghost:hover { background: var(--ink); color: var(--parchment); border-color: var(--ink); }

.section--ink .btn--ghost,
.section--evergreen .btn--ghost {
  color: var(--parchment);
  border-color: rgba(244, 239, 230, 0.35);
}
.section--ink .btn--ghost:hover,
.section--evergreen .btn--ghost:hover {
  background: var(--parchment);
  color: var(--ink);
  border-color: var(--parchment);
}

/* --- Header ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 239, 230, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding 260ms var(--ease), border-color 260ms var(--ease), background-color 260ms var(--ease);
}
.site-header.is-scrolled {
  background: rgba(244, 239, 230, 0.94);
  border-bottom-color: var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  gap: 2rem;
  transition: padding 260ms var(--ease);
}
.site-header.is-scrolled .site-header__inner { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
}
.brand__logo {
  height: 34px;
  width: auto;
  display: block;
  transition: height 260ms var(--ease);
}
.site-header.is-scrolled .brand__logo { height: 28px; }
.brand__tag {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(10, 32, 21, 0.55);
  border-left: 1px solid var(--hairline-strong);
  padding-left: 0.85rem;
  line-height: 1.1;
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
  position: relative;
  padding: 0.25rem 0;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--copper); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.4rem;
  height: 1px;
  background: var(--copper);
}
.nav__cta { display: inline-flex; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars {
  display: block;
  width: 16px; height: 1px;
  background: var(--ink);
  position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; width: 100%; height: 1px;
  background: var(--ink);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after  { top: 5px; }

/* --- Hero ------------------------------------------------ */
.hero {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}
.hero__meta-divider {
  flex: 0 0 auto;
  width: 40px;
  border-top: 1px solid var(--hairline-strong);
}
.hero__title {
  max-width: 18ch;
  margin-bottom: 1.75rem;
}
.hero__lede {
  margin: 0 0 2.5rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 4rem;
}

/* Staged progression - signature element */
.stages {
  border-top: 1px solid var(--hairline);
  padding-top: 1.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 2rem;
  align-items: start;
}
.stages__label {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.stages__track {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.stage {
  padding: 1rem 1rem 1rem 0;
  border-top: 2px solid var(--ink);
  position: relative;
}
.stage:not(:last-child) { border-right: 1px solid var(--hairline); }
.stage::before {
  content: "";
  position: absolute;
  top: -6px; left: 0;
  width: 10px; height: 10px;
  background: var(--copper);
  border-radius: 50%;
}
.stage__num {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 32, 21, 0.55);
  display: block;
  margin-bottom: 0.4rem;
}
.stage__name {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 420;
  font-variation-settings: "opsz" 20, "SOFT" 20;
  line-height: 1.15;
  color: var(--ink);
}
.stage__month {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(10, 32, 21, 0.5);
  margin-top: 0.35rem;
  display: block;
}

/* Hero mark ornament */
.hero__ornament {
  position: absolute;
  right: -80px;
  top: 20px;
  width: 520px;
  height: 520px;
  opacity: 0.06;
  pointer-events: none;
  color: var(--evergreen);
}

/* --- Editorial two-column -------------------------------- */
.editorial {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.editorial__side { position: sticky; top: 5rem; }
.editorial__side .eyebrow { margin-bottom: 1.25rem; }
.editorial__body > * + * { margin-top: 1.25rem; }
.editorial__body p { max-width: 62ch; }
.editorial__body p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-size: 3.3em;
  float: left;
  line-height: 0.88;
  padding: 0.15em 0.08em 0 0;
  font-weight: 380;
  color: var(--copper);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

/* --- Services grid --------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.service {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  background: var(--parchment);
  transition: background-color 260ms var(--ease);
}
.service:hover { background: var(--bone); }
.service__num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--copper);
  font-weight: 500;
}
.service__title {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 400;
  font-variation-settings: "opsz" 40, "SOFT" 25;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}
.service__body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(10, 32, 21, 0.78);
  margin: 0;
}
.section--ink .services-grid,
.section--ink .service {
  border-color: rgba(244, 239, 230, 0.14);
  background: transparent;
}
.section--ink .service__title { color: var(--parchment); }
.section--ink .service__body { color: rgba(244, 239, 230, 0.75); }

/* --- Founder preview ------------------------------------- */
.founder-preview {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.founder-preview__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bone);
  border-radius: 4px;
  overflow: hidden;
  /* Placeholder rendered behind the img - visible only if the image fails to load */
  background-image:
    linear-gradient(135deg, rgba(31, 58, 46, 0.10), rgba(184, 100, 47, 0.08)),
    radial-gradient(ellipse at 50% 35%, var(--bone-deep) 0%, var(--bone) 60%);
}
.founder-preview__portrait::after {
  content: "K.L.";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 5rem;
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--evergreen);
  opacity: 0.28;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 0;
}
.founder-preview__portrait img {
  position: relative;
  z-index: 1;
}
.founder-preview__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: grayscale(20%) contrast(1.02);
}
.founder-preview__caption {
  position: absolute;
  bottom: 1rem; left: 1rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment);
  background: rgba(10, 32, 21, 0.75);
  padding: 0.35rem 0.6rem;
  border-radius: 2px;
}
.founder-preview__creds {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.75rem;
}
.cred__label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 32, 21, 0.55);
  margin: 0 0 0.35rem;
}
.section--ink .cred__label,
.section--evergreen .cred__label { color: rgba(244, 239, 230, 0.6); }
.cred__value {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 400;
  font-variation-settings: "opsz" 20, "SOFT" 30;
  line-height: 1.3;
  margin: 0;
}

/* --- Criteria list --------------------------------------- */
.criteria { list-style: none; padding: 0; margin: 0; }
.criteria li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.criteria li:last-child { border-bottom: 1px solid var(--hairline); }
.criteria__marker {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--copper);
  font-weight: 500;
}
.criteria__text {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 400;
  font-variation-settings: "opsz" 40, "SOFT" 30;
  line-height: 1.35;
  color: var(--ink);
}
.criteria__text small {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--f-body);
  font-size: 0.9rem;
  color: rgba(10, 32, 21, 0.65);
  font-weight: 400;
}

/* --- Insights / press ------------------------------------ */
.insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.insight {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--parchment);
  transition: background-color 260ms var(--ease);
}
.insight:hover { background: var(--bone); }
.insight__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.insight__outlet {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.insight__date {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: rgba(10, 32, 21, 0.55);
}
.insight__title {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 400;
  font-variation-settings: "opsz" 40, "SOFT" 25;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
.insight__note {
  font-size: 0.9rem;
  color: rgba(10, 32, 21, 0.7);
  margin: 0;
}
.insight__read {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.insight__read::after {
  content: "→";
  font-family: var(--f-display);
  font-size: 1.05em;
  transition: transform 260ms var(--ease);
}
.insight:hover .insight__read::after { transform: translateX(4px); }

/* --- FAQ ------------------------------------------------- */
.faq { border-top: 1px solid var(--hairline); }
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 1.75rem 0;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 400;
  font-variation-settings: "opsz" 40, "SOFT" 25;
  line-height: 1.25;
  color: var(--ink);
  transition: color 260ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 1.5em;
  color: var(--copper);
  transition: transform 300ms var(--ease);
  line-height: 0.8;
  flex: 0 0 auto;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--copper-deep); }
.faq__answer {
  padding-top: 1.25rem;
  max-width: 66ch;
  color: rgba(10, 32, 21, 0.78);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.faq__answer p { margin: 0 0 1rem; }
.faq__answer p:last-child { margin-bottom: 0; }
.faq__number {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(10, 32, 21, 0.5);
  margin-right: 1.2rem;
}

/* --- CTA band -------------------------------------------- */
.cta-band {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--evergreen);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.cta-band .eyebrow { color: #E4A778; margin-bottom: 1.5rem; }
.cta-band__title {
  color: var(--parchment);
  max-width: 16ch;
  margin: 0 0 1.5rem;
}
.cta-band__sub {
  color: rgba(244, 239, 230, 0.82);
  max-width: 40ch;
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.55;
}
.cta-band__contact { border-top: 1px solid rgba(244, 239, 230, 0.22); padding-top: 1.75rem; }
.cta-band__contact > * + * { margin-top: 1rem; }
.cta-band__contact a { color: var(--parchment); text-decoration: none; border-bottom: 1px solid rgba(244, 239, 230, 0.3); }
.cta-band__contact a:hover { border-color: var(--parchment); }

/* --- Footer ---------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(244, 239, 230, 0.85);
  padding: 4rem 0 2.5rem;
}
.site-footer .container { display: grid; gap: 3rem; }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 3rem;
  align-items: start;
}
.site-footer .brand__logo { height: 40px; filter: brightness(0) invert(1); opacity: 0.94; }
.site-footer .brand__tag { color: rgba(244, 239, 230, 0.55); border-color: rgba(244,239,230,0.22); }
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(244, 239, 230, 0.55);
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a {
  color: var(--parchment);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 200ms var(--ease);
}
.footer-col a:hover { border-color: rgba(244, 239, 230, 0.4); }
.site-footer__base {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
  padding-top: 1.75rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(244, 239, 230, 0.55);
}

/* --- Focus states ---------------------------------------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Reveal ---------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .editorial { grid-template-columns: 1fr; }
  .editorial__side { position: static; }
  .founder-preview { grid-template-columns: 1fr; }
  .founder-preview__portrait { max-width: 380px; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .stages__track { grid-template-columns: repeat(2, 1fr); }
  .stage { border-right: none !important; border-bottom: 1px solid var(--hairline); }
  .stage:last-child { border-bottom: none; }
}

/* --- nav__panel: display: contents on desktop so flex layout is unchanged --- */
.nav__panel {
  display: contents;
}

@media (max-width: 720px) {
  :root { --gutter: 1.25rem; }
  .nav-toggle { display: inline-flex; }

  /* Mobile default: panel hidden */
  .nav__panel { display: none; }

  /* Menu open: panel drops below header as a single unified block */
  .nav.is-open .nav__panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--parchment);
    border-bottom: 1px solid var(--hairline);
    padding: 1.5rem var(--gutter) 1.75rem;
    box-shadow: 0 24px 40px -12px rgba(10, 32, 21, 0.12);
    z-index: 30;
  }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--hairline);
    margin: 0;
  }
  .nav.is-open .nav__links a {
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 400;
    font-variation-settings: "opsz" 40, "SOFT" 30;
    color: var(--ink);
    padding: 0.5rem 0;
    text-decoration: none;
  }
  .nav.is-open .nav__links a[aria-current="page"] {
    color: var(--evergreen);
  }
  .nav.is-open .nav__links a[aria-current="page"]::after {
    display: none;
  }
  .nav.is-open .nav__cta {
    display: inline-flex;
    justify-content: center;
    align-self: stretch;
  }

  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 1.75rem 1.25rem; }

  /* --- Mobile stages: vertical timeline (not stacked sliders) --- */
  .stages__track {
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
    padding-left: 1.5rem;
  }
  .stages__track::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: var(--evergreen);
    opacity: 0.4;
    z-index: 0;
  }
  .stage {
    padding: 0.55rem 0 0.55rem 0.5rem;
    border: none !important;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 0.5rem 1rem;
  }
  .stage::before {
    position: absolute;
    left: -1.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--fern);
    box-shadow: 0 0 0 3px var(--parchment), 0 0 0 4px rgba(79, 176, 92, 0.35);
    z-index: 1;
  }
  .stage__num {
    grid-column: 1;
    margin: 0;
    font-size: 0.7rem;
  }
  .stage__name {
    grid-column: 2;
    font-size: 1rem;
    margin: 0;
  }
  .stage__month {
    grid-column: 3;
    margin: 0;
    text-align: right;
    font-size: 0.68rem;
  }

  .insights { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__base { flex-direction: column; gap: 0.6rem; align-items: flex-start; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .founder-preview__creds { grid-template-columns: 1fr; }
  .editorial__body p:first-of-type::first-letter { font-size: 3em; }
  .dome { opacity: 0.35; right: -30%; width: 130vw; }
  .brand__logo { height: 26px; }
  .brand__tag { font-size: 0.58rem; padding-left: 0.6rem; }
  .marquee__item { font-size: 1.1rem; gap: 2rem; }
}

/* ============================================================
   MOTION SYSTEM v2 - dome, gradient wash, hero reveal
   ============================================================ */

/* ---- Ambient green wash --------------------------------- */
/* Layered radial gradients that slowly drift.
   Applied to sections via .has-wash. */
.has-wash { position: relative; overflow: hidden; isolation: isolate; }
.has-wash > * { position: relative; z-index: 1; }
.has-wash::before,
.has-wash::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  will-change: transform, opacity;
}
.has-wash::before {
  background:
    radial-gradient(ellipse 42% 32% at 12% 20%, rgba(79, 176, 92, 0.28), transparent 60%),
    radial-gradient(ellipse 48% 42% at 85% 70%, rgba(20, 90, 52, 0.42), transparent 60%);
  animation: wash-drift-a 24s ease-in-out infinite alternate;
}
.has-wash::after {
  background:
    radial-gradient(ellipse 35% 35% at 70% 15%, rgba(184, 100, 47, 0.10), transparent 55%),
    radial-gradient(ellipse 52% 46% at 25% 85%, rgba(46, 139, 87, 0.30), transparent 60%);
  animation: wash-drift-b 32s ease-in-out infinite alternate;
}
@keyframes wash-drift-a {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.9; }
  100% { transform: translate(-6%, 4%) scale(1.15); opacity: 1; }
}
@keyframes wash-drift-b {
  0%   { transform: translate(0, 0) scale(1.05); opacity: 0.85; }
  100% { transform: translate(6%, -3%) scale(1.2); opacity: 1; }
}

/* Section wash on dark surfaces gets bolder green tones */
.section--ink.has-wash::before {
  background:
    radial-gradient(ellipse 45% 35% at 10% 20%, rgba(79, 176, 92, 0.40), transparent 60%),
    radial-gradient(ellipse 55% 45% at 90% 78%, rgba(20, 90, 52, 0.75), transparent 60%);
}
.section--ink.has-wash::after {
  background:
    radial-gradient(ellipse 30% 30% at 78% 22%, rgba(184, 100, 47, 0.16), transparent 55%),
    radial-gradient(ellipse 48% 42% at 22% 82%, rgba(46, 139, 87, 0.42), transparent 60%);
}
.cta-band.has-wash::before {
  background:
    radial-gradient(ellipse 50% 40% at 12% 18%, rgba(123, 210, 132, 0.45), transparent 60%),
    radial-gradient(ellipse 58% 48% at 90% 82%, rgba(10, 32, 21, 0.60), transparent 60%);
}
.cta-band.has-wash::after {
  background:
    radial-gradient(ellipse 32% 32% at 72% 25%, rgba(228, 167, 120, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 40% at 30% 60%, rgba(79, 176, 92, 0.25), transparent 60%);
}

/* ---- Animated dome (hero background) -------------------- */
.dome {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: min(780px, 68vw);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}
.dome__svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.dome__glow {
  filter: blur(30px);
  opacity: 0.55;
}
.dome__wire { transform-origin: 300px 300px; }
.dome__wire ellipse,
.dome__wire circle {
  transform-box: fill-box;
  transform-origin: center;
}
.dome__lat { animation: dome-lat-breathe 12s ease-in-out infinite; }
.dome__lat--2 { animation-delay: -3s; }
.dome__lat--3 { animation-delay: -6s; }
.dome__lat--4 { animation-delay: -9s; }
@keyframes dome-lat-breathe {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.85; }
}
.dome__lon {
  animation: dome-lon-spin 14s ease-in-out infinite;
}
.dome__lon--1 { animation-delay: -1s; }
.dome__lon--2 { animation-delay: -4s; }
.dome__lon--3 { animation-delay: -7s; }
.dome__lon--4 { animation-delay: -10s; }
@keyframes dome-lon-spin {
  0%, 100% { transform: scaleX(1);    opacity: 0.75; }
  50%      { transform: scaleX(-0.05); opacity: 0.3;  }
}
.dome__node {
  transform-box: fill-box;
  transform-origin: center;
  animation: dome-node-pulse 3.6s ease-in-out infinite var(--d, 0s);
  filter: drop-shadow(0 0 6px currentColor);
}
@keyframes dome-node-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50%      { opacity: 1;    transform: scale(1.7); }
}
.dome__arc {
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
  animation: dome-arc-draw 8s ease-in-out infinite var(--d, 0s);
}
@keyframes dome-arc-draw {
  0%   { stroke-dashoffset: 380; opacity: 0; }
  20%  { opacity: 0.9; }
  60%  { stroke-dashoffset: 0;   opacity: 0.9; }
  85%  { stroke-dashoffset: 0;   opacity: 0; }
  100% { stroke-dashoffset: -380; opacity: 0; }
}

/* ---- Hero: load reveal ---------------------------------- */
.hero { position: relative; }
.hero__meta,
.hero__title,
.hero__lede,
.hero__actions,
.hero .stages {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-rise 900ms var(--ease) forwards;
}
.hero__meta       { animation-delay: 120ms; }
.hero__title      { animation-delay: 240ms; }
.hero__lede       { animation-delay: 440ms; }
.hero__actions    { animation-delay: 600ms; }
.hero .stages     { animation-delay: 760ms; }
@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}

/* Hero title supports staggered spans if used */
.hero__title .line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: hero-rise 900ms var(--ease) forwards;
}
.hero__title .line:nth-child(1) { animation-delay: 240ms; }
.hero__title .line:nth-child(2) { animation-delay: 360ms; }
.hero__title .line:nth-child(3) { animation-delay: 480ms; }

/* Make sure hero content sits above dome */
.hero > :not(.dome) { position: relative; z-index: 1; }
.hero__ornament { display: none; } /* replaced by .dome */

/* ---- Refined scroll reveal ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }

/* ---- Card lifts ----------------------------------------- */
.service {
  transition: background-color 260ms var(--ease), transform 400ms var(--ease), border-color 260ms var(--ease);
}
.service:hover {
  background: var(--bone);
  transform: translateY(-2px);
}
.insight {
  transition: background-color 260ms var(--ease), transform 400ms var(--ease);
}
.insight:hover { transform: translateY(-2px); }

/* ---- Button pulse (primary CTAs) ------------------------ */
.btn--copper::after,
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(184, 100, 47, 0.35);
  animation: btn-halo 3.6s ease-in-out infinite;
  pointer-events: none;
}
.btn--primary { position: relative; }
.btn--copper { position: relative; }
.btn--primary::after { box-shadow: 0 0 0 0 rgba(10, 32, 21, 0.28); }
@keyframes btn-halo {
  0%, 100% { box-shadow: 0 0 0 0    rgba(184, 100, 47, 0.0);  }
  60%      { box-shadow: 0 0 0 14px rgba(184, 100, 47, 0.0);  }
  0%       { box-shadow: 0 0 0 0    rgba(184, 100, 47, 0.35); }
}

/* ---- Stages: dot pulse ---------------------------------- */
.stage::before {
  animation: stage-pulse 3.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(184, 100, 47, 0.5);
}
.stage:nth-child(2)::before { animation-delay: 0.4s; }
.stage:nth-child(3)::before { animation-delay: 0.8s; }
.stage:nth-child(4)::before { animation-delay: 1.2s; }
.stage:nth-child(5)::before { animation-delay: 1.6s; }
@keyframes stage-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 100, 47, 0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(184, 100, 47, 0);  }
}

/* ---- Marquee: "we do / we don't" band ------------------- */
.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 1.4rem 0;
  overflow: hidden;
  position: relative;
  background: var(--parchment);
}
.marquee__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee__item {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 400;
  font-variation-settings: "opsz" 40, "SOFT" 40;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Reduced motion ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__meta, .hero__title, .hero__lede, .hero__actions, .hero .stages,
  .hero__title .line { opacity: 1; transform: none; animation: none; }
  .dome__lat, .dome__lon, .dome__node, .dome__arc,
  .has-wash::before, .has-wash::after,
  .marquee__track, .stage::before, .btn--copper::after, .btn--primary::after {
    animation: none !important;
  }
  .has-wash::before, .has-wash::after { opacity: 0.8; }
}

/* ============================================================
   v3 OVERRIDES - hero-fit, mobile dome, brighter greens, no marquee
   ============================================================ */

/* ---- Brand: use full logo lockup ------------------------ */
.brand__logo {
  height: 44px;
}
.site-header.is-scrolled .brand__logo { height: 34px; }
.brand__tag { display: none; }  /* logo lockup already includes "Clinical Consulting" */
.site-footer .brand__logo { height: 54px; filter: none; opacity: 1; }
.site-footer .brand__logo { background: var(--parchment); padding: 8px 12px; border-radius: 4px; }

/* ---- Dome brighter, more assertive ---------------------- */
.dome__glow { opacity: 0.75; }
.dome__wire ellipse,
.dome__wire circle { stroke-width: 1.1; }
.dome__lat { animation-duration: 10s; }
.dome__lon { animation-duration: 12s; }
.dome__nodes .dome__node { r: 3.8; }
.dome__nodes .dome__node[fill="#4A6B54"] { fill: var(--fern) !important; stroke: var(--fern) !important; }

/* ---- Hero: fit the screen (home only) ------------------- */
.hero--full {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  position: relative;
}
.hero--full .hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vh, 2.5rem);
  max-width: var(--container);
  width: 100%;
  padding: 0 var(--gutter);
  margin: 0 auto;
  box-sizing: border-box;
  z-index: 1;
  position: relative;
}
.hero__inner {
  max-width: var(--container);
  width: 100%;
  padding: 0 var(--gutter);
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.hero--full .hero__title {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.75rem);
  line-height: 0.98;
}
.hero__title em { color: var(--fern); }
.hero--full .hero__actions { margin: 0; }
.hero--full .hero__lede {
  display: block;
  max-width: 58ch;
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.5;
  color: rgba(10, 32, 21, 0.76);
}

/* Compact stages inside home hero */
.hero--full .stages { padding-top: 1.25rem; margin-top: auto; }
.hero--full .stages__label { margin-bottom: 0.35rem; min-height: 0.5rem; }
.hero--full .stage { padding: 0.85rem 0.9rem 0.85rem 0; }
.hero--full .stage__name { font-size: 0.95rem; }

/* Neutralise .container behavior on hero - hero is full-bleed, inner constrains */
.hero.container,
.hero {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Sub-page hero: shorter, no forced fill */
.hero:not(.hero--full) {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hero:not(.hero--full) .hero__title { max-width: 22ch; }

/* ---- Dome: reposition ----------------------------------- */
/* Desktop: right-side, aligned to hero visual weight */
.dome {
  top: 50%;
  right: -12%;
  transform: translateY(-50%);
  width: min(720px, 62vw);
  aspect-ratio: 1;
  opacity: 0.9;
}

/* ---- Kill the marquee ----------------------------------- */
.marquee { display: none; }

/* ---- Assertive green everywhere ------------------------- */
.section--evergreen { background: var(--evergreen); }
.section--ink { background: var(--ink); }

/* Display italic accent uses fern on light bg for punch */
.display em {
  color: var(--evergreen);
}
.section--ink .display em,
.section--evergreen .display em,
.cta-band .display em { color: var(--fern-glow); }

/* Eyebrow: still uses fern-tinted copper for punctuation where kept */
.eyebrow { color: var(--copper); }
.eyebrow::before { color: var(--copper-deep); }

/* Copper node accents replaced with fern in dome */
.dome__nodes { fill: var(--fern); stroke: var(--fern); }

/* Stage dot pulses now green-glow */
.stage::before {
  background: var(--fern);
  box-shadow: 0 0 0 0 rgba(79, 176, 92, 0.6);
}
@keyframes stage-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 176, 92, 0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(79, 176, 92, 0);  }
}
.criteria__marker { color: var(--evergreen); }
.service__num { color: var(--evergreen); }
.insight__outlet { color: var(--evergreen); }
.faq summary::after { color: var(--evergreen); }
.faq details[open] summary { color: var(--forest, var(--evergreen)); }

/* CTA copper button - refine to feel more premium */
.btn--copper {
  background: var(--evergreen);
  color: var(--parchment);
}
.btn--copper:hover { background: var(--moss); }
.btn--copper::after { box-shadow: 0 0 0 0 rgba(79, 176, 92, 0.45); }
@keyframes btn-halo {
  0%   { box-shadow: 0 0 0 0    rgba(79, 176, 92, 0.5); }
  60%  { box-shadow: 0 0 0 14px rgba(79, 176, 92, 0.0); }
  100% { box-shadow: 0 0 0 14px rgba(79, 176, 92, 0.0); }
}

/* Primary button - subtle deep green */
.btn--primary { background: var(--ink); }
.btn--primary:hover { background: var(--evergreen); }

/* Focus states brighter */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline-color: var(--fern);
}

/* Selection */
::selection { background: var(--evergreen); color: var(--parchment); }

/* ---- Mobile: dome as centered ambient background -------- */
@media (max-width: 900px) {
  .dome {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: min(560px, 92vw);
    opacity: 0.28;
    z-index: 0;
  }
  .hero__title { font-size: clamp(2.4rem, 10vw, 4rem); }

  /* Let content flow naturally - don't force 100vh space-between */
  .hero--full {
    min-height: 0;
    padding-top: clamp(2rem, 5vw, 3rem);
    padding-bottom: clamp(2rem, 5vw, 3rem);
  }
  .hero--full .hero__inner {
    justify-content: flex-start;
    gap: 1.5rem;
  }
  .hero--full .stages { margin-top: 0; padding-top: 1rem; }
  .hero__inner { position: relative; z-index: 2; }
}

/* ---- Even tighter hero on short screens ----------------- */
@media (max-height: 760px) and (min-width: 900px) {
  .hero__title { font-size: clamp(2.4rem, 5vw, 4.75rem); }
  .hero .stages { padding-top: 1rem; }
  .hero { padding-top: 2rem; padding-bottom: 1.25rem; }
}

/* ---- Below hero: give sections air ---------------------- */
main > .hero + .section,
main > .hero + .marquee + .section {
  padding-top: clamp(4rem, 7vw, 7rem);
}

/* ============================================================
   v4 REVIEW UPDATES - tighter hero, engagement flow, credibility
   ============================================================ */

/* Home hero: reduce dead space while keeping the visual impact. */
.hero--full {
  min-height: 0;
  padding-top: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.hero--full .hero__inner {
  justify-content: flex-start;
  gap: clamp(1.1rem, 2.2vh, 1.8rem);
}
.hero--full .hero__actions { margin-top: 0.25rem; }
.hero--full .stages { margin-top: clamp(0.6rem, 2vh, 1.3rem); }

/* Section introductions */
.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.section-intro { max-width: 48rem; }
.section-intro .display { margin: 0; }
.section-intro__copy { margin: 1.15rem 0 0; max-width: 60ch; }
.services-flow-intro { margin-bottom: 2.75rem; }
.services-flow-intro .eyebrow { margin-bottom: 1rem; }

/* With Engagement Structure removed from the numbered workstreams,
   let the fifth card finish the grid intentionally. */
.services-grid--activation .service:last-child { grid-column: 1 / -1; }

.engagement-callout {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 2fr);
  gap: 1.5rem 2.5rem;
  padding: 1.8rem 2rem;
  border: 1px solid var(--hairline-strong);
  background: rgba(237, 231, 219, 0.58);
}
.engagement-callout--bone { background: var(--parchment); }
.engagement-callout__label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--evergreen);
}
.engagement-callout h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
.engagement-callout p {
  margin: 0.65rem 0 0;
  max-width: 68ch;
  color: rgba(10, 32, 21, 0.76);
  line-height: 1.55;
}

/* Professional memberships */
.membership-header {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: 2rem 4rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.membership-header .eyebrow { margin-bottom: 1rem; }
.membership-header .body-l { margin: 0; color: rgba(10, 32, 21, 0.68); }
.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.membership-card {
  background: var(--parchment);
  border: 1px solid var(--hairline);
  padding: 1.1rem;
}
.membership-card__logo {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.membership-card__logo--light { background: #fff; }
.membership-card__logo--isctm { background: #ca482a; }
.membership-card__logo--dark { background: #000; }
.membership-card img {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}
.membership-card p {
  margin: 1rem 0 0;
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--ink);
}

/* Testimonials */
.testimonials-header { max-width: 50rem; margin-bottom: 2.5rem; }
.testimonials-header .eyebrow { margin-bottom: 1rem; }
.testimonials-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.testimonial-stack { display: contents; }
/* Temporary: two-column layout while the 3rd testimonial is hidden. Remove when restored to 3. */
.testimonials-layout--two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.testimonial {
  position: relative;
  border: 1px solid var(--hairline);
  background: var(--bone);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial--featured { background: var(--ink); color: var(--parchment); }
.testimonial__mark {
  position: absolute;
  top: 1.15rem;
  right: 1.5rem;
  font-family: var(--f-display);
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(79, 176, 92, 0.45);
}
.testimonial blockquote {
  margin: 0;
  max-width: 72ch;
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 350;
  line-height: 1.5;
  color: inherit;
}
.testimonial__person {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(244,239,230,0.2);
  display: grid;
  gap: 0.3rem;
}
.testimonial__person strong { font-size: 0.95rem; font-weight: 500; }
.testimonial__person span {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(244,239,230,0.65);
}
/* Real (non-featured) client testimonial on the light card surface */
.testimonial--client .testimonial__person { border-top-color: var(--hairline); }
.testimonial--client .testimonial__person span { color: rgba(10,32,21,0.6); }
.testimonial__label,
.testimonial__placeholder-note {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.testimonial__label { color: var(--evergreen); }
.testimonial--placeholder p {
  margin: 1rem 0 2rem;
  flex: 1;
  font-family: var(--f-display);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--ink);
}
.testimonial__placeholder-note { color: rgba(10,32,21,0.48); line-height: 1.5; }

@media (max-width: 900px) {
  .hero--full { min-height: 0; }
  .membership-header { grid-template-columns: 1fr; }
  .testimonials-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .services-grid--activation .service:last-child { grid-column: auto; }
  .engagement-callout { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; }
  .membership-grid { grid-template-columns: 1fr; }
  .membership-card__logo { min-height: 120px; }
  .testimonial__mark { font-size: 3.5rem; right: 1rem; }
}