:root {
  color-scheme: light dark;
  --color-text: #0e0e0e;
  --color-muted: #5a5a5a;
  --color-heading: #187ebd;
  --color-surface: #fff;
  --color-tint: #f1f5f9;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-rule: rgba(0, 0, 0, 0.14);
  --font-body: "IBM Plex Serif", Georgia, serif;
  --font-heading: "Montserrat", "Avenir Next", "Helvetica Neue", sans-serif;
  --shell: min(1325px, calc(100vw - 3rem));
  --shell-narrow: min(900px, calc(100vw - 3rem));
  --section-gap: clamp(4.5rem, 7vw, 7.5rem);
  --section-gap-tight: clamp(3rem, 5vw, 5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.18rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-heading);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--color-heading);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: #000;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.shell-narrow {
  width: var(--shell-narrow);
  margin: 0 auto;
}

/* Header */

.site-header {
  position: relative;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem 0;
}

.brand img {
  width: clamp(200px, 17vw, 260px);
}

.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.desktop-nav a,
.mobile-nav a {
  color: #000;
  text-decoration: none;
}

.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  color: var(--color-heading);
}

.nav-cta {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid #000;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-decoration: none;
  color: #000;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-cta:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary span,
.mobile-nav summary span::before,
.mobile-nav summary span::after {
  display: block;
  width: 1.45rem;
  height: 1px;
  background: #1f1f1f;
  content: "";
}

.mobile-nav summary span::before {
  transform: translateY(-0.38rem);
}

.mobile-nav summary span::after {
  transform: translateY(0.32rem);
}

.mobile-nav[open] nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.9rem);
  min-width: 16rem;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 1.25rem 2rem rgba(0, 0, 0, 0.08);
  z-index: 20;
}

.mobile-nav nav {
  display: grid;
}

.mobile-nav a {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-heading);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

/* Typography */

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 1.8rem + 2.5vw, 3.6rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.6rem);
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: #000;
}

h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
}

.prose p,
.prose ul {
  margin: 0 0 1.2rem;
}

.prose p:last-child,
.prose ul:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.4rem;
  line-height: 1.5;
}

.text-muted {
  color: var(--color-muted);
}

/* Hero */

.hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 5vw, 5rem);
  background: var(--color-surface);
}

.hero-grid {
  display: grid;
  gap: 1rem;
  max-width: 60rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
}

.hero .lead {
  margin: 0;
  max-width: 48rem;
  color: var(--color-text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  color: #000;
}

.button-secondary:hover {
  background: #000;
  color: #fff;
}

/* Sections */

.section {
  padding-top: var(--section-gap);
}

.section-tight {
  padding-top: var(--section-gap-tight);
}

.section-tinted {
  background: var(--color-tint);
  padding: var(--section-gap) 0;
  margin-top: var(--section-gap);
}

.section-rule {
  border-top: 1px solid var(--color-rule);
  padding-top: var(--section-gap-tight);
  margin-top: var(--section-gap);
}

/* Logo strip */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.4rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted);
}

.logo-strip li {
  white-space: nowrap;
}

/* Client logo grid (real logos) */

.client-logos {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1.75rem 2rem;
  align-items: center;
}

.client-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 100%;
  padding: 0.25rem;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.client-logos a:hover,
.client-logos a:focus-visible {
  opacity: 1;
}

.client-logos img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  filter: brightness(0);
}

@media (max-width: 900px) {
  .client-logos {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .client-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .client-logos a {
    height: 2rem;
  }
}

/* Service cards / grids */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem 1.6rem 1.7rem;
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.card h3 {
  text-decoration: none;
}

.card:hover {
  border-color: #000;
  transform: translateY(-2px);
}

.card h3 {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0;
}

.card p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--color-text);
}

.card .badge {
  align-self: flex-start;
  margin-bottom: 0.3rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  background: var(--color-tint);
}

/* Two-column splits */

.split {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(20rem, 1.15fr);
  gap: 2rem 4rem;
  align-items: start;
}

.split-narrow {
  display: grid;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(20rem, 1.3fr);
  gap: 2rem 3.5rem;
  align-items: start;
}

/* Feature list (used on detail pages) */

.feature-list {
  display: grid;
  gap: clamp(2.2rem, 3vw, 3.5rem);
  padding-top: clamp(0.5rem, 1.5vw, 1rem);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(13rem, 0.85fr) minmax(20rem, 2.15fr);
  gap: 2rem 3rem;
  align-items: start;
  padding-bottom: clamp(2rem, 3vw, 2.75rem);
  border-bottom: 1px solid var(--color-rule);
}

.feature-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.feature-row h2 {
  font-size: clamp(1.6rem, 1.4rem + 0.6vw, 2rem);
}

.feature-row .meta {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  margin-top: 0.6rem;
}

/* Page intro */

.page-main {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: var(--section-gap);
}

.page-intro {
  display: grid;
  gap: 1.25rem;
  max-width: 52rem;
}

.page-intro h1 {
  margin: 0;
}

/* Step list (How We Work) */

.steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}

.steps li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-rule);
}

.steps li:last-child {
  border-bottom: 1px solid var(--color-rule);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-heading);
  line-height: 1;
}

.steps h3 {
  margin: 0 0 0.4rem;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.steps p {
  margin: 0;
  color: var(--color-text);
  line-height: 1.55;
}

/* Domain grid (Whole Person) */

.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.domain {
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  background: #fff;
}

.domain h3 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.domain p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

/* Bios */

.bio {
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(20rem, 1.3fr);
  gap: 2.5rem 3.5rem;
  align-items: start;
  padding: clamp(2.5rem, 4vw, 4rem) 0;
  border-top: 1px solid var(--color-rule);
}

.bio:first-of-type {
  border-top: 0;
}

.bio-photo img {
  width: 100%;
  border-radius: 4px;
}

.bio-body h2 {
  margin-bottom: 0.4rem;
}

.bio-body .eyebrow {
  display: block;
  margin-bottom: 0.6rem;
}

/* Pull quote / callout */

.callout {
  margin: 2.5rem 0 0;
  padding: 1.6rem 1.8rem;
  border-left: 3px solid var(--color-heading);
  background: var(--color-tint);
  font-size: 1.18rem;
  line-height: 1.55;
}

/* Engage page */

.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.path {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.8rem;
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  background: #fff;
}

.path h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-heading);
  margin: 0;
}

.path p {
  margin: 0;
  line-height: 1.55;
}

.path .button {
  align-self: flex-start;
  margin-top: 0.4rem;
}

/* Testimonials */

.testimonials-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
  margin-top: 2.5rem;
}

.testimonial {
  margin: 0;
}

.testimonial blockquote {
  margin: 0;
  position: relative;
  padding-left: 1.25rem;
  border-left: 2px solid var(--color-heading);
}

.testimonial blockquote p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--color-text);
}

.testimonial figcaption {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.testimonials-rotating {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 3.5vw, 3rem);
  border-top: 1px solid var(--color-rule);
}

.rotating-quote-stack {
  position: relative;
  max-width: 52rem;
  margin: 1.25rem auto 0;
  min-height: 9rem;
}

.rotating-quote {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.rotating-quote.is-active {
  opacity: 1;
  pointer-events: auto;
}

.rotating-quote blockquote {
  margin: 0;
  text-align: center;
}

.rotating-quote blockquote p {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--color-text);
}

@media (max-width: 720px) {
  .testimonials-pair {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .rotating-quote-stack {
    min-height: 12rem;
  }

  .rotating-quote blockquote p {
    font-size: 1.08rem;
  }
}

/* Footer */

.site-footer {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding: clamp(2.75rem, 4vw, 3.75rem) 0 1.75rem;
  background: var(--color-tint);
  border-top: 1px solid var(--color-rule);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(20rem, 1.6fr) minmax(14rem, 1fr);
  gap: 2rem 3.5rem;
  align-items: end;
}

.footer-grid h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  color: var(--color-text);
  letter-spacing: -0.005em;
}

.footer-grid p {
  margin: 0 0 0.85rem;
}

.footer-grid p:last-child {
  margin-bottom: 0;
}

.footer-meta {
  display: grid;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  justify-self: end;
  text-align: right;
}

.footer-meta a {
  color: #000;
}

.copyright {
  margin: 1.75rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Responsive */

@media (max-width: 900px) {
  body {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .split,
  .split-narrow,
  .feature-row,
  .bio,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    justify-self: start;
    text-align: left;
  }

  .steps li {
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
  }

  .lead {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  :root {
    --shell: min(100vw - 1.5rem, 26rem);
    --shell-narrow: min(100vw - 1.5rem, 26rem);
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}

/* Dark mode */

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #f1f1f1;
    --color-muted: #a3a3a3;
    --color-heading: #4ba8e0;
    --color-surface: #0e0e0e;
    --color-tint: #1a232b;
    --color-border: rgba(255, 255, 255, 0.10);
    --color-rule: rgba(255, 255, 255, 0.16);
  }

  .site-header,
  .mobile-nav[open] nav,
  .card,
  .domain,
  .path {
    background: var(--color-surface);
  }

  .skip-link {
    background: var(--color-surface);
    color: var(--color-text);
  }

  .desktop-nav a,
  .mobile-nav a,
  .footer-meta a {
    color: var(--color-text);
  }

  .mobile-nav summary span,
  .mobile-nav summary span::before,
  .mobile-nav summary span::after {
    background: var(--color-text);
  }

  .nav-cta {
    color: var(--color-text);
    border-color: var(--color-text);
  }

  .nav-cta:hover {
    background: var(--color-text);
    color: var(--color-surface);
  }

  .button {
    background: var(--color-text);
    color: var(--color-surface);
    border-color: var(--color-text);
  }

  .button-secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
  }

  .button-secondary:hover {
    background: var(--color-text);
    color: var(--color-surface);
  }

  .brand img {
    filter: invert(1) hue-rotate(180deg);
  }

  .client-logos img {
    filter: brightness(0) invert(1);
  }
}
