/* Claire Lynch Consulting — single shared stylesheet
   Tokens and layout derived from Elementor kit (post-9) + page CSS
   (post-8364 home, post-1454 about, post-1733 contact) and Magnetique child. */

/* -------------------------------------------------------------------------- */
/* Local fonts                                                                 */
/* Live Elementor kit uses Helvetica system-wide. HKGrotesk is self-hosted as  */
/* fallback where Helvetica is absent. Helvetica is not redistributable.       */
/* -------------------------------------------------------------------------- */

@font-face {
  font-family: "HKGrotesk";
  src: url("../fonts/HKGrotesk-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HKGrotesk";
  src: url("../fonts/HKGrotesk-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "HKGrotesk";
  src: url("../fonts/HKGrotesk-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HKGrotesk";
  src: url("../fonts/HKGrotesk-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HKGrotesk";
  src: url("../fonts/HKGrotesk-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------------------- */
/* Design tokens (Elementor kit-9)                                             */
/* -------------------------------------------------------------------------- */

:root {
  --color-text: #343231;
  --color-primary: #1f334a;
  --color-secondary: #faf9f6;
  --color-accent: #7dbe27;
  --color-yellow: #ffcc00;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-muted: #a6bfda;
  --color-muted-text: #5a6a7a;
  --color-accent-light: #94ce24;
  --color-accent-dark: #4f7a28;
  --color-border: #c7ccd2;
  --color-input-bg: #2a3a4a;
  --color-input-border: #3d546b;
  --color-cta-grad-start: #142333;
  --color-cta-grad-end: #003544;
  /* Soft lime wash for control hover (nav toggle, etc.) */
  --color-accent-wash: #f4fbe8;

  /* Live kit: Helvetica. Local HKGrotesk fills gaps where Helvetica is absent. */
  --font-family: Helvetica, Arial, "HKGrotesk", sans-serif;

  /* Type roles — size, leading, tracking (sans-only system) */
  --font-size-body: 1.0625rem; /* 17px — slightly easier long-form scan */
  --font-size-meta: 0.875rem;
  --font-size-label: 0.8125rem;
  --font-size-title: 1.25rem;
  --font-size-headline: clamp(1.625rem, 2.2vw, 2rem);
  --font-size-display: clamp(2.25rem, 5.5vw, 3.5rem);
  --leading-body: 1.65;
  --leading-prose: 1.7;
  --leading-tight: 1.2;
  --leading-display: 1.05;
  --tracking-display: -0.02em;
  --tracking-headline: -0.015em;
  --tracking-title: -0.01em;
  --tracking-label: 0.05em;
  --measure-prose: 42em;

  --radius: 4px;
  --container-max: 1200px;
  /* 4-based rhythm: tight groups, generous section breaks */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-section-y: 72px;
  --space-section-x: 20px;
  --space-gap: 40px;
  --space-split-gap: 64px;
  --header-height: 88px;
  /* Soft ease-out — polished hover without bounce */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.28s var(--ease-out);
  --transition-fast: 0.2s var(--ease-out);
  --transition-slow: 0.35s var(--ease-out);
  --transition-lift: 0.3s var(--ease-out);
}

/* -------------------------------------------------------------------------- */
/* Reset / base                                                                */
/* -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* Prevent rare flex/media min-content widths from creating a sideways page */
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-secondary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    opacity var(--transition-fast),
    box-shadow var(--transition-slow),
    transform var(--transition-fast);
}

a:hover {
  color: var(--color-accent-dark);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.skip-nav {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-nav:focus {
  position: fixed;
  top: var(--space-section-x);
  left: var(--space-section-x);
  z-index: 1000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1.25rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-primary);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

/* Role scale: display → headline → title (clear steps, no near-duplicates) */
h1 {
  font-size: var(--font-size-display);
  font-weight: 400;
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  color: var(--color-secondary);
}

h2 {
  font-size: var(--font-size-headline);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-headline);
}

h3 {
  font-size: var(--font-size-title);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--tracking-title);
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: var(--tracking-title);
}

p {
  margin: 0 0 1em;
}

/* Comfortable prose measure where content is free-width */
.founder__quote,
.expertise__body p,
.cta-band h2,
.page-hero--home .hero-lede {
  text-wrap: pretty;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

/* -------------------------------------------------------------------------- */
/* Layout utilities                                                            */
/* -------------------------------------------------------------------------- */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-section-x);
}

.container--narrow {
  max-width: 800px;
}

main {
  display: block;
  min-height: 50vh;
}

/* -------------------------------------------------------------------------- */
/* Header / navigation (sticky, CSS mobile toggle)                             */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-secondary);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow var(--transition-slow),
    border-color var(--transition-slow);
}

.site-header:focus-within,
.site-header:hover {
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 12px rgba(31, 51, 74, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 18px;
  padding-bottom: 18px;
  min-height: var(--header-height);
}

.site-header .logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

/* Wide wordmark (logo-v2, border cropped): ~153×48 in the bar */
.site-header .logo img {
  display: block;
  height: 48px;
  width: auto;
  max-height: 48px;
  max-width: min(200px, 52vw);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  background: transparent;
  transition: opacity var(--transition-fast);
}

.site-header .logo:hover img {
  opacity: 0.88;
}

/* Checkbox hack for pure-CSS mobile menu (keyboard-exposed only ≤767px via nav-a11y.js) */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.nav-toggle:focus-visible + .nav-toggle-label {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-color: var(--color-accent);
}

.nav-toggle-label {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.nav-toggle-label:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-wash);
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  position: relative;
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast),
    background-color var(--transition-fast);
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before { top: -6px; }
.nav-toggle-label span::after { top: 6px; }

.nav-toggle:checked + .nav-toggle-label span {
  background: transparent;
}

.nav-toggle:checked + .nav-toggle-label span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-label span::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  padding: 0.35em 0;
  position: relative;
  transition: color var(--transition-fast);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: var(--color-accent-dark);
  text-decoration: none;
}

.site-nav a:hover::after,
.site-nav a:focus::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* -------------------------------------------------------------------------- */
/* Eyebrow labels (Elementor text widgets above headings)                      */
/* -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-family);
  font-size: var(--font-size-label);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--tracking-label);
  margin: 0 0 0.75em;
  color: var(--color-accent-dark);
}

.eyebrow--light {
  color: var(--color-accent-light);
}

.eyebrow--center {
  text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Sections                                                                    */
/* -------------------------------------------------------------------------- */

.section {
  padding: var(--space-section-y) 0;
}

/* Section intro: eyebrow tight to title, air before content */
.section-head {
  margin-bottom: var(--space-7);
}

.section-head .eyebrow {
  margin-bottom: var(--space-3);
}

.section-head h2 {
  margin-bottom: 0;
}

.section-head--center {
  text-align: center;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-7);
}

.section--cream {
  background: var(--color-secondary);
}

.section--navy {
  background: var(--color-primary);
  color: var(--color-secondary);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--color-secondary);
}

.section--navy h2 {
  color: var(--color-secondary);
}

.section--navy h3 {
  color: var(--color-accent-light);
}

.section--navy p {
  color: var(--color-secondary);
}

.section--muted {
  background: var(--color-muted);
}

/* Page hero — compact band on every page (title + optional eyebrow/lede) */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 28vh;
  padding: var(--space-7) var(--space-section-x); /* 48px */
  text-align: center;
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  color: var(--color-secondary);
  overflow: hidden;
  box-sizing: border-box;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none; /* override global img max-width so cover fill never forces scroll */
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  z-index: 0;
  pointer-events: none;
}

.page-hero--home .page-hero__media {
  object-position: bottom right;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-primary);
  opacity: 0.55;
  mix-blend-mode: luminosity;
  pointer-events: none;
  z-index: 1;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  /* Flex item: allow shrink + fill so copy never sits past the viewport edge */
  width: 100%;
  max-width: var(--container-max);
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-hero--home .page-hero__inner {
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.page-hero h1 {
  margin: 0;
  max-width: 100%;
  color: var(--color-secondary);
  font-size: var(--font-size-display);
  font-weight: 400;
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  overflow-wrap: break-word;
}

.page-hero .eyebrow {
  color: var(--color-accent-light);
}

.page-hero--home {
  /* Home carries lede + CTA — slightly taller than title-only heroes */
  min-height: 36vh;
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  /* Photo provided by .page-hero__media <img> for LCP; solid navy fallback */
  background-image: none;
  background-position: bottom right;
}

.page-hero--home h1 {
  font-size: clamp(2.35rem, 5.5vw, 3.65rem);
  font-weight: 400;
  letter-spacing: var(--tracking-display);
}

.page-hero--home .tagline {
  margin: var(--space-4) 0 0;
  max-width: 100%;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--color-secondary);
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.page-hero--home .tagline em {
  font-style: italic;
}

.page-hero--home .tagline strong {
  font-weight: 600;
  color: inherit;
}

.page-hero--home .hero-lede {
  margin: var(--space-6) auto 0;
  width: 100%;
  max-width: min(var(--measure-prose), 100%);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 400;
  line-height: var(--leading-prose);
  letter-spacing: 0.01em; /* slight open tracking on dark */
  color: var(--color-secondary);
  overflow-wrap: break-word;
}

.page-hero--home .hero-actions {
  margin: var(--space-6) 0 0;
  padding-top: var(--space-2);
}

.page-hero--home .hero-actions .btn {
  color: var(--color-primary);
}

.page-hero--home .hero-actions .btn:hover,
.page-hero--home .hero-actions .btn:focus-visible {
  color: var(--color-secondary);
}

/* Inner page heroes: photo via .page-hero__media (LCP); navy fallback only */
.page-hero--about,
.page-hero--contact,
.page-hero--services,
.page-hero--blog {
  background-image: none;
}

.page-hero--about .page-hero__media {
  object-position: 0 20%;
}

.page-hero--contact .page-hero__media,
.page-hero--services .page-hero__media,
.page-hero--blog .page-hero__media {
  object-position: center;
}

/* Hero subcopy on blog / glossary listings */
.page-hero__lede {
  margin: 0.75em auto 0;
  width: 100%;
  max-width: min(36em, 100%);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-secondary);
  overflow-wrap: break-word;
}

.mt-block {
  margin-top: 2.5rem;
}

.mt-block-sm {
  margin-top: 1.5em;
}

.contact-aside-title {
  font-size: 1.35rem;
  margin-top: 1.5em;
  color: var(--color-primary);
}

.footer-social--start {
  justify-content: flex-start;
}

/* Split / feature rows (min-height 380px, 70px gap on live) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-split-gap);
  align-items: stretch;
  min-height: 380px;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.split__media {
  min-height: 280px;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  border-radius: var(--radius);
}

/* Expertise blocks on navy — tighter stack, clearer row rhythm */
.expertise-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-2);
}

.expertise {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-split-gap);
  align-items: center;
  min-height: 0;
  padding: var(--space-7) 0;
}

.expertise + .expertise {
  border-top: 1px solid rgba(250, 249, 246, 0.12);
}

.expertise:nth-child(even) {
  direction: rtl;
}

.expertise:nth-child(even) > * {
  direction: ltr;
}

.expertise__body {
  max-width: 34rem;
}

.expertise__body h3 {
  color: var(--color-accent-light);
  margin: 0 0 var(--space-4);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: var(--tracking-title);
}

.expertise__body p {
  color: var(--color-secondary);
  margin: 0 0 var(--space-4);
  line-height: var(--leading-prose);
  letter-spacing: 0.01em;
  max-width: var(--measure-prose);
  font-size: 1rem;
}

.expertise__body .service-link {
  color: var(--color-accent-light);
}

.expertise__body .service-link:hover,
.expertise__body .service-link:focus-visible {
  color: var(--color-secondary);
}

.section--navy > .container > .section-head h2,
.section--navy > .container > h2.text-center {
  color: var(--color-secondary);
}

.expertise__media {
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 220px;
  aspect-ratio: 3 / 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.expertise__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  border-radius: var(--radius);
}

/* Founder quote block — colorized stage (Ink Navy + Impact Lime on Warm Paper) */
.founder-stage {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-6) var(--space-5);
  box-shadow: 0 2px 12px rgba(31, 51, 74, 0.06);
  transition:
    box-shadow var(--transition-lift),
    border-color var(--transition-fast);
}

.founder-stage:hover {
  border-color: var(--color-muted);
  box-shadow: 0 8px 28px rgba(31, 51, 74, 0.1);
}

.founder-stage > .eyebrow {
  margin-bottom: var(--space-5);
}

.founder {
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
  gap: var(--space-split-gap);
  align-items: start;
  overflow: visible;
}

.founder__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 40rem;
}

/* Full navy frame on all four sides (box-shadow ring — not a clipped ::after).
   Earlier offset mats used negative inset / right-biased shadows and read as
   “only the right edge” on deploy. Equal ring is complete and stable. */
.founder__photo {
  position: relative;
  overflow: visible;
}

.founder__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius);
  /* 4px solid navy ring all around + soft drop */
  box-shadow:
    0 0 0 4px var(--color-primary),
    0 8px 24px rgba(31, 51, 74, 0.12);
  transition:
    transform var(--transition-lift),
    box-shadow var(--transition-lift);
}

.founder-stage:hover .founder__photo img {
  transform: translate(-2px, -2px);
  box-shadow:
    0 0 0 4px var(--color-primary),
    0 12px 28px rgba(31, 51, 74, 0.16);
}

.founder__quote {
  position: relative;
  font-style: italic;
  font-size: 1.0625rem;
  line-height: var(--leading-prose);
  color: var(--color-primary);
  margin: 0 0 var(--space-4);
  max-width: var(--measure-prose);
  letter-spacing: 0.005em;
}

/* Thread bar only on the opening paragraph */
.founder__quote:first-of-type {
  padding-top: var(--space-5);
}

.founder__quote:first-of-type::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: 1px;
  background: var(--color-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent) 25%, transparent);
}

.founder__quote:last-of-type {
  margin-bottom: var(--space-5);
  color: var(--color-text);
}

/* Lead-in to the discipline list */
.founder__points-lead {
  margin: 0 0 var(--space-3);
  max-width: var(--measure-prose);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: var(--leading-prose);
  color: var(--color-primary);
  letter-spacing: 0.005em;
}

/* Subtle discipline list between founder paragraphs */
.founder__points {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  max-width: var(--measure-prose);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-6);
  row-gap: var(--space-3);
  align-items: start;
}

.founder__points li {
  position: relative;
  margin: 0;
  padding-left: 0.9em;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}

.founder__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35em;
  height: 0.35em;
  border-radius: 1px;
  background: var(--color-accent);
}

.founder__content > p:last-child {
  margin: 0;
}

.founder__wordmark {
  max-width: 280px;
  width: 100%;
  height: auto;
  margin: 0 0 var(--space-5);
  border-radius: 0;
  filter: brightness(0);
}

/* CTA band with countryside overlay */
.cta-band {
  position: relative;
  padding: var(--space-9) var(--space-section-x);
  text-align: center;
  color: var(--color-secondary);
  background-color: var(--color-muted);
  background-image: url("../images/cta-countryside.webp");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    180deg,
    var(--color-cta-grad-start) 0%,
    var(--color-cta-grad-end) 100%
  );
  opacity: 0.85;
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-band .eyebrow {
  color: var(--color-accent-light);
  margin-bottom: var(--space-3);
}

.cta-band h2 {
  color: var(--color-secondary);
  margin: 0 0 var(--space-6);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: var(--tracking-headline);
  max-width: 22em;
  text-wrap: balance;
}

.cta-band .btn {
  margin-top: var(--space-1);
  position: relative;
}

/* Soft lime hold on the closing action — consequence, not confetti */
.cta-band .btn--on-dark {
  box-shadow: 0 0 0 0 rgba(125, 190, 39, 0);
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow 0.45s var(--ease-out),
    transform var(--transition-lift);
}

.cta-band .btn--on-dark:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  box-shadow:
    0 6px 18px rgba(31, 51, 74, 0.28),
    0 0 0 3px rgba(125, 190, 39, 0.28);
}

.cta-band .btn--on-dark:focus-visible {
  box-shadow:
    0 0 0 3px rgba(125, 190, 39, 0.35);
}

.cta-band__inner::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 0 auto var(--space-4);
  border-radius: 1px;
  background: var(--color-accent);
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  /* Rest: Impact Lime field + Ink Navy label (always readable on cream) */
  color: var(--color-primary);
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-lift),
    transform var(--transition-lift);
}

/*
 * Hover: deepen the green thread — no navy/lime invert.
 * Deep Leaf fill + Warm Paper label stays legible on cream, navy, and photo CTAs.
 */
.btn:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-secondary);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(31, 51, 74, 0.2);
  transform: translateY(-2px);
}

.btn:focus {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
  text-decoration: none;
}

.btn:active {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-secondary);
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(31, 51, 74, 0.16);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(125, 190, 39, 0.35);
}

/* Same hover language on dark bands — still deepen green, never invert to navy */
.btn--on-dark:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

/* Thread advances: underline draws toward the next step */
.service-link,
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  min-height: 44px;
  font-weight: 600;
  color: var(--color-accent-dark);
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition:
    color var(--transition-fast),
    transform var(--transition-fast),
    gap var(--transition-fast),
    background-size 0.35s var(--ease-out);
}

.service-link:hover,
.service-link:focus-visible {
  color: var(--color-primary);
  transform: translateX(3px);
  gap: 0.4em;
  background-size: 100% 2px;
}

.read-more:hover,
.read-more:focus-visible {
  color: var(--color-primary);
  transform: translateX(3px);
  gap: 0.4em;
  background-size: 100% 2px;
}

.glossary-list {
  margin: 2em 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.glossary-list__item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25em 1.5em;
  transition:
    box-shadow var(--transition-lift),
    border-color var(--transition-fast),
    transform var(--transition-lift);
}

.glossary-list__item:hover {
  border-color: var(--color-muted);
  box-shadow: 0 6px 20px rgba(31, 51, 74, 0.08);
  transform: translateY(-2px);
}

.glossary-list__item dt {
  margin: 0 0 0.35em;
  font-size: 1.125rem;
}

.glossary-list__item dd {
  margin: 0;
  color: var(--color-muted-text);
  line-height: 1.55;
}

/* -------------------------------------------------------------------------- */
/* Cards (blog listing)                                                        */
/* -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-gap);
  margin-top: var(--space-2);
}

.section-head + .card-grid {
  margin-top: 0;
}

.section-follow {
  margin-top: var(--space-6);
  margin-bottom: 0;
}

.card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow var(--transition-lift),
    transform var(--transition-lift),
    border-color var(--transition-fast);
}

/* Green thread under the card — insight waiting to become a click */
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}

.card:hover {
  box-shadow: 0 12px 32px rgba(31, 51, 74, 0.14);
  transform: translateY(-4px);
  border-color: var(--color-muted);
}

.card:hover::after,
.card:focus-within::after {
  transform: scaleX(1);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h2,
.card h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: var(--tracking-title);
  margin-bottom: 0.5em;
  text-wrap: balance;
}

.card h2 a,
.card h3 a {
  color: var(--color-primary);
  display: inline;
  /* Stretched hit target: whole card (image + body) activates the title link */
}

.card h2 a::after,
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card h2 a:hover,
.card h3 a:hover {
  color: var(--color-accent-dark);
}

.card h2 a:focus-visible,
.card h3 a:focus-visible {
  outline: none;
}

.card h2 a:focus-visible::after,
.card h3 a:focus-visible::after {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.card .meta {
  color: var(--color-muted-text);
  font-size: var(--font-size-meta);
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 0.5em;
}

.card-body > p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text);
}

.card .read-more {
  margin-top: auto;
  padding-top: 0.75em;
  min-height: 48px;
  /* Decorative; title link stretches over the whole card */
  pointer-events: none;
  position: relative;
  z-index: 0;
}

/* Service overview cards */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-gap);
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition:
    box-shadow var(--transition-lift),
    transform var(--transition-lift),
    border-color var(--transition-fast);
}

.service-card:hover {
  box-shadow: 0 12px 28px rgba(31, 51, 74, 0.12);
  transform: translateY(-3px);
  border-color: var(--color-accent);
}

.service-card .service-link {
  margin-top: 0.25rem;
}

.service-card h2 {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 0.5em;
}

/* FAQ accordion (native details/summary — no JS) */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 800px;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-lift);
}

.faq-item:hover {
  border-color: var(--color-muted);
  box-shadow: 0 4px 16px rgba(31, 51, 74, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--color-primary);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  content: "";
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-accent-dark);
}

.faq-item[open] > .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: var(--color-accent-dark);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

.faq-answer a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.faq-answer a:hover {
  color: var(--color-accent-dark);
}

/* -------------------------------------------------------------------------- */
/* Forms (contact)                                                             */
/* -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-split-gap);
  align-items: start;
}

.contact-form-panel {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-form-panel h2,
.contact-form-panel label {
  color: var(--color-secondary);
}

.contact-form-panel .eyebrow {
  color: var(--color-accent-light);
}

.contact-form-panel p {
  color: var(--color-secondary);
}

.contact-form-panel a:not(.btn) {
  color: var(--color-accent-light);
}

.contact-form-panel .form-note {
  color: var(--color-muted);
}

.contact-form-panel .form-note a {
  color: var(--color-accent-light);
}

/* Reserved for planned contact form backend (PRODUCT.md). No live <form> yet. */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
}

label {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.35em;
}

input,
textarea,
select {
  font-family: var(--font-family);
  font-size: 1rem;
  width: 100%;
  padding: 0.7em 0.85em;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select {
  min-height: 44px;
}

.contact-form-panel input,
.contact-form-panel textarea {
  background: var(--color-input-bg);
  border-color: var(--color-input-border);
  color: var(--color-secondary);
}

.contact-form-panel input::placeholder,
.contact-form-panel textarea::placeholder {
  color: var(--color-muted);
}

input:hover,
textarea:hover {
  border-color: var(--color-muted);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(125, 190, 39, 0.25);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0.5em 0 0;
}

/* -------------------------------------------------------------------------- */
/* Blog article                                                                */
/* -------------------------------------------------------------------------- */

article {
  max-width: 40rem; /* ~65ch at body size */
  margin: 0 auto;
  padding: var(--space-section-y) var(--space-section-x);
  font-size: var(--font-size-body);
  line-height: var(--leading-prose);
}

.breadcrumbs {
  margin: 0 0 1.25em;
  font-size: 0.875rem;
  color: var(--color-muted-text);
  line-height: 1.4;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 0.5em;
  color: var(--color-muted);
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.25em 0.35em;
  color: var(--color-muted-text);
  text-decoration: none;
  text-underline-offset: 2px;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-text);
}

article > h1 {
  color: var(--color-primary);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: var(--tracking-headline);
  text-wrap: balance;
}

article > .meta {
  color: var(--color-muted-text);
  font-size: var(--font-size-meta);
  letter-spacing: 0.02em;
  line-height: 1.45;
  margin-bottom: 1.5em;
}

article > img:first-of-type,
article .featured {
  width: 100%;
  margin: 0 0 1.75em;
  border-radius: var(--radius);
}

article h2 {
  margin-top: 1.75em;
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  letter-spacing: var(--tracking-title);
  line-height: 1.3;
}

article p {
  max-width: var(--measure-prose);
}

article a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

article a:hover {
  color: var(--color-primary);
}

article hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2em 0;
}

.related-posts {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--color-border);
}

.related-posts h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75em;
}

.related-posts ul {
  margin: 0;
  padding-left: 1.25em;
}

.related-posts li {
  margin-bottom: 0.5em;
}

.related-posts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.article-cta {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--color-border);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */

.site-footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  margin-top: 0;
}

.site-footer a {
  color: var(--color-secondary);
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: var(--color-accent-light);
}

.site-footer .container {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25em 0.15em;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.2em;
  width: 100%;
  height: 1px;
  background: var(--color-accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
  opacity: 0.85;
}

.footer-nav a:hover::after {
  transform: scaleX(1);
}

.footer-social {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4em 0.75em;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--color-primary);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-lift),
    box-shadow var(--transition-lift);
}

.site-footer .footer-social a {
  color: var(--color-secondary);
}

.footer-social a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

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

/* -------------------------------------------------------------------------- */
/* Page intro / content wrappers                                               */
/* -------------------------------------------------------------------------- */

.page-intro {
  padding: var(--space-section-y) 0 calc(var(--space-section-y) * 0.5);
  text-align: center;
}

.page-intro h1 {
  color: var(--color-primary);
  font-size: clamp(2rem, 5vw, 3em);
}

.content-block {
  padding-bottom: var(--space-section-y);
}

.content-block .container > p:last-child {
  margin-bottom: 0;
}

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .page-hero {
    min-height: 26vh;
    padding: var(--space-6) var(--space-section-x);
  }

  .page-hero--home {
    min-height: 34vh;
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }

  .page-hero--home .tagline {
    font-size: 1.35em;
  }

  .split,
  .expertise,
  .founder,
  .contact-layout {
    gap: 40px;
  }
}

@media (max-width: 767px) {
  body { font-size: 1rem; }

  h1 { font-size: clamp(1.85rem, 8vw, 2.25rem); }
  h2 { font-size: 1.5rem; line-height: 1.25; }
  h3 { font-size: 1.2rem; line-height: 1.3; }

  .section {
    padding: var(--space-7) 0;
  }

  .section-head,
  .section-head--center {
    margin-bottom: var(--space-6);
  }

  .founder {
    gap: var(--space-6);
  }

  .expertise {
    padding: var(--space-6) 0;
    gap: var(--space-5);
  }

  .expertise__media {
    min-height: 200px;
    aspect-ratio: 16 / 10;
  }

  .page-hero {
    min-height: 22vh;
    padding: var(--space-6) var(--space-section-x); /* 32px */
  }

  .page-hero--home {
    min-height: 32vh;
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
    background-image: none;
  }

  /* Class selector beats bare h1 — keep home title on the mobile scale */
  .page-hero--home h1 {
    font-size: clamp(1.85rem, 8vw, 2.25rem);
  }

  .page-hero--home .tagline {
    font-size: 1em;
  }

  .page-hero--home .hero-lede {
    font-size: 0.95rem;
  }

  .page-hero--about,
  .page-hero--contact,
  .page-hero--services,
  .page-hero--blog {
    background-image: none;
  }

  .nav-toggle-label {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-secondary);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height var(--transition-slow),
      opacity var(--transition-slow);
  }

  .nav-toggle:checked ~ .site-nav {
    max-height: 320px;
    opacity: 1;
  }

  .site-header .container {
    position: relative;
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--space-section-x) 1rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75em 0;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav a::after {
    display: none;
  }

  .btn,
  .site-nav a,
  .footer-nav a,
  .footer-social a,
  .breadcrumbs a,
  .faq-question,
  .service-link,
  .read-more,
  .related-posts a,
  .nav-toggle-label {
    min-height: 44px;
    min-width: 44px;
  }

  .footer-nav ul {
    gap: 0.5rem 1rem;
  }

  .founder-stage {
    padding: var(--space-5) var(--space-4);
  }

  .founder__photo img {
    box-shadow:
      0 0 0 3px var(--color-primary),
      0 8px 24px rgba(31, 51, 74, 0.12);
  }

  .split,
  .split--reverse,
  .expertise,
  .expertise:nth-child(even),
  .founder,
  .contact-layout {
    grid-template-columns: 1fr;
    direction: ltr;
    min-height: 0;
    gap: 1.5rem;
  }

  .expertise {
    padding: 2rem 0;
  }

  .cta-band {
    padding: 50px var(--space-section-x);
    background-image: url("../images/cta-countryside-800w.webp");
  }

  article > h1 {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Targeted: kill decorative motion, keep instant color/border state changes */
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .site-header,
  .site-header .logo img,
  .nav-toggle-label,
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after,
  .site-nav a,
  .site-nav a::after,
  .site-nav,
  a,
  .btn,
  .card,
  .card::after,
  .service-card,
  .glossary-list__item,
  .faq-item,
  .founder-stage,
  .footer-nav a::after,
  .footer-social a,
  .service-link,
  .read-more {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .card:hover,
  .card:focus-within,
  .btn:hover,
  .btn:active,
  .service-card:hover,
  .glossary-list__item:hover,
  .footer-social a:hover {
    transform: none;
    box-shadow: none;
  }
}
