/* ==========================================================================
   SummitWellspring Partners LLC — core stylesheet
   Bright-first design: white and near-white grounds carry the pages, with
   photography doing the heavy visual work. Ink grounds are held back for the
   closing CTA and the footer so they land as punctuation, not atmosphere.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */

:root {
  /* Light theme — the default palette lives on bare :root. */
  --bg:            #fbfdfd;
  --bg-tint:       #eef5f5;
  --surface:       #ffffff;
  --surface-2:     #f3f8f8;
  --ink:           #0d1b24;
  --ink-soft:      #33454f;
  --muted:         #5a6b74;
  --border:        rgba(13, 27, 36, 0.10);
  --border-strong: rgba(13, 27, 36, 0.20);

  /* --brand is the exact green of the purchased logo. It measures 4.22:1 on
     this ground, so it is used for decoration only; --accent is a darkened
     sibling that clears AA for text and button fills. */
  --brand:         #3a8861;
  --accent:        #2f7051;
  --accent-hover:  #25593f;
  --accent-ink:    #ffffff;
  --accent-wash:   #e6f2ec;
  --brass:         #9d6f33;

  /* Ink ground: stays dark in both themes, used sparingly. */
  --heavy-bg:      #081620;
  --heavy-bg-2:    #0e2430;
  --heavy-ink:     #eaf2f3;
  --heavy-muted:   #93a7b0;
  --heavy-border:  rgba(255, 255, 255, 0.12);
  --heavy-accent:  #6cc79a;

  --shadow-sm: 0 1px 2px rgba(13, 27, 36, 0.04), 0 2px 8px rgba(13, 27, 36, 0.04);
  --shadow-md: 0 2px 6px rgba(13, 27, 36, 0.05), 0 14px 38px rgba(13, 27, 36, 0.08);
  --shadow-lg: 0 4px 10px rgba(13, 27, 36, 0.06), 0 28px 64px rgba(13, 27, 36, 0.12);

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 24px;

  --wrap:  1180px;
  --wrap-n: 880px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0:  clamp(1rem, 0.975rem + 0.12vw, 1.0625rem);
  --step-1:  clamp(1.1875rem, 1.13rem + 0.28vw, 1.375rem);
  --step-2:  clamp(1.5rem, 1.33rem + 0.85vw, 2.0625rem);
  --step-3:  clamp(2rem, 1.62rem + 1.9vw, 3.125rem);
  --step-4:  clamp(2.5rem, 1.85rem + 3.25vw, 4.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

/* Dark by system preference — unless the viewer explicitly chose light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #06121a;
    --bg-tint:       #0a1c25;
    --surface:       #0c1e28;
    --surface-2:     #112a35;
    --ink:           #eef5f6;
    --ink-soft:      #c3d2d8;
    --muted:         #96a9b1;
    --border:        rgba(255, 255, 255, 0.11);
    --border-strong: rgba(255, 255, 255, 0.2);

    --brand:         #6cc79a;
    --accent:        #6cc79a;
    --accent-hover:  #8ad5b2;
    --accent-ink:    #052016;
    --accent-wash:   rgba(108, 199, 154, 0.13);
    --brass:         #d6a764;

    --heavy-bg:      #030b11;
    --heavy-bg-2:    #0a1a23;
    --heavy-ink:     #eef5f6;
    --heavy-muted:   #8fa4ad;
    --heavy-border:  rgba(255, 255, 255, 0.1);
    --heavy-accent:  #6cc79a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.35), 0 16px 44px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.4), 0 30px 70px rgba(0, 0, 0, 0.55);

    color-scheme: dark;
  }
}

/* Explicit dark choice wins over everything. */
:root[data-theme="dark"] {
  --bg:            #06121a;
  --bg-tint:       #0a1c25;
  --surface:       #0c1e28;
  --surface-2:     #112a35;
  --ink:           #eef5f6;
  --ink-soft:      #c3d2d8;
  --muted:         #96a9b1;
  --border:        rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.2);

  --brand:         #6cc79a;
  --accent:        #6cc79a;
  --accent-hover:  #8ad5b2;
  --accent-ink:    #052016;
  --accent-wash:   rgba(108, 199, 154, 0.13);
  --brass:         #d6a764;

  --heavy-bg:      #030b11;
  --heavy-bg-2:    #0a1a23;
  --heavy-ink:     #eef5f6;
  --heavy-muted:   #8fa4ad;
  --heavy-border:  rgba(255, 255, 255, 0.1);
  --heavy-accent:  #6cc79a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.35), 0 16px 44px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.4), 0 30px 70px rgba(0, 0, 0, 0.55);

  color-scheme: dark;
}

/* ---------------------------------------------------------------- 2. Reset */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* --------------------------------------------------------------- 3. Layout */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.wrap--narrow { max-width: var(--wrap-n); }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section--light  { background: var(--bg); }
.section--tinted { background: var(--bg-tint); }

/* Ink ground — reserved for the closing CTA and the footer. */
.section--heavy {
  background: var(--heavy-bg);
  color: var(--heavy-ink);
  position: relative;
  isolation: isolate;
}
.section--heavy h1, .section--heavy h2, .section--heavy h3 { color: var(--heavy-ink); }
.section--heavy .eyebrow { color: var(--heavy-accent); }
.section--heavy .lede,
.section--heavy .section-head p { color: var(--heavy-muted); }

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ----------------------------------------------------------- 4. Typography */

.display  { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; }
.h1 { font-size: var(--step-4); }
.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-2); }
.h4 { font-size: var(--step-1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.15rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}

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

.section-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head p { margin-top: 1.1rem; color: var(--muted); font-size: var(--step-0); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

/* -------------------------------------------------------------- 5. Buttons */

.btn {
  --btn-bg: var(--accent);
  --btn-ink: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--accent-wash);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn--onheavy {
  --btn-bg: transparent;
  --btn-ink: var(--heavy-ink);
  border-color: var(--heavy-border);
}
.btn--onheavy:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--heavy-accent);
  color: var(--heavy-ink);
}

.btn--sm { padding: 0.58rem 1.1rem; font-size: var(--step--1); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  color: var(--accent);
  text-decoration: none;
}
.arrow-link svg { transition: transform 0.2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }
.section--heavy .arrow-link { color: var(--heavy-accent); }

/* --------------------------------------------------------------- 6. Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}
@supports not (background: color-mix(in srgb, red, blue)) {
  .site-header { background: var(--bg); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}
/* The lockup is fixed artwork, so it is sized by height and left to keep its
   own aspect ratio. 3.88:1 — about 161px wide at the header size. */
.brand__logo { height: 2.6rem; width: auto; }
@media (max-width: 560px) { .brand__logo { height: 2.15rem; } }

/* Two baked PNGs stand in for what the old inline SVG did with currentColor:
   the brand green is only 4.39:1 on the dark ground, so dark mode swaps to the
   pale recolour. Driven by CSS rather than <picture media>, because the theme
   toggle sets data-theme and never touches prefers-color-scheme. */
.brand__logo--ondark { display: none; }
:root[data-theme="dark"] .brand__logo--onlight { display: none; }
:root[data-theme="dark"] .brand__logo--ondark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__logo--onlight { display: none; }
  :root:not([data-theme="light"]) .brand__logo--ondark { display: block; }
}

.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav a {
  position: relative;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.18rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 1.1rem; height: 1.1rem; }

.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
}

.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    inset: 4.75rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem clamp(1.15rem, 4vw, 2.5rem) 1.75rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.32s var(--ease), opacity 0.2s var(--ease), visibility 0.32s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { padding: 0.95rem 0.25rem; font-size: 1.0625rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav a[aria-current="page"]::after { left: 0.25rem; right: auto; width: 1.5rem; bottom: 0.5rem; }
  .nav .btn { margin-top: 1.25rem; }
}
@media (min-width: 921px) {
  .nav .btn { display: none; }
}

/* ---------------------------------------------------------- 7. Media / art */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.media--1x1  { aspect-ratio: 1 / 1; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--3x2  { aspect-ratio: 3 / 2; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }

.media--frame { border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.media--sm { border-radius: var(--radius); }
.media--zoom:hover img { transform: scale(1.035); }

/* A soft scrim keeps overlaid type legible over any photo. */
.media--scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 22, 32, 0.80) 0%, rgba(8, 22, 32, 0.34) 45%, rgba(8, 22, 32, 0.05) 100%);
}

.media__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  color: #fff;
}
.media__caption p { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.88); }
.media__caption strong { display: block; font-size: var(--step-1); font-weight: 600; margin-bottom: 0.25rem; }

/* Floating card that overlaps a photo corner. */
.media__badge {
  position: absolute;
  z-index: 3;
  left: clamp(0.9rem, 2vw, 1.5rem);
  bottom: clamp(0.9rem, 2vw, 1.5rem);
  max-width: min(17rem, 74%);
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.media__badge .stat__value { font-size: 1.9rem; }
.media__badge .stat__label { margin-top: 0.25rem; font-size: 0.8125rem; }

/* ----------------------------------------------------------------- 8. Hero */

.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 55% 30% -25%;
  background: radial-gradient(ellipse at center, var(--accent-wash), transparent 68%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(2.25rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem);
}
.hero__content { max-width: 34rem; }
.hero__title { font-size: var(--step-4); }
.hero__title em { font-style: italic; color: var(--accent); }
.hero__lede {
  margin-top: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  font-size: var(--step--1);
  color: var(--muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.hero__media { position: relative; }

@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: 2.5rem 3rem; }
  .hero__content { max-width: none; }
  .hero__media { order: -1; }
}

/* Interior page header: light, with a wide photo band beneath the title. */
.page-hero { background: var(--bg); position: relative; overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% 50% 40% -20%;
  background: radial-gradient(ellipse at center, var(--accent-wash), transparent 70%);
  pointer-events: none;
}
.page-hero__inner { position: relative; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 3vw, 2.5rem); }
.page-hero h1 { font-size: var(--step-3); max-width: 24ch; }
.page-hero p {
  margin-top: 1.35rem;
  max-width: 62ch;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
}
.page-hero__banner { position: relative; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: var(--step--1);
  color: var(--muted);
  list-style: none;
}
.crumbs a { text-decoration: none; color: inherit; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.crumbs [aria-current] { color: var(--ink); }

/* ----------------------------------------------------------------- 9. Grid */

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split--center { align-items: center; }
.split--sticky > :first-child { position: sticky; top: 7rem; }
.split--wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
/* Photo renders first on wide screens while text stays first in source order. */
.split--flip > :first-child { order: 2; }

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--wide { grid-template-columns: 1fr; }
  .split--sticky > :first-child { position: static; }
  .split--flip > :first-child { order: 0; }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- 10. Cards */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card h3 { font-size: var(--step-1); }
.card p { color: var(--muted); font-size: 0.9375rem; }
.card--hover:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  margin-bottom: 0.35rem;
  background: var(--accent-wash);
  color: var(--accent);
  border-radius: var(--radius-sm);
}
.card__icon svg { width: 1.35rem; height: 1.35rem; }
.card__foot { margin-top: auto; padding-top: 0.75rem; }

/* Card with a photo across the top. */
.card--media { padding: 0; overflow: hidden; gap: 0; }
.card--media .media { border-radius: 0; }
.card--media .card__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  padding: clamp(1.35rem, 2.2vw, 1.75rem);
}
.card--media:hover .media img { transform: scale(1.04); }

.card--heavy {
  background: var(--heavy-bg-2);
  border-color: var(--heavy-border);
  color: var(--heavy-ink);
}
.card--heavy h3 { color: var(--heavy-ink); }
.card--heavy p { color: var(--heavy-muted); }
.card--heavy .card__icon { background: rgba(108, 199, 154, 0.15); color: var(--heavy-accent); }
.card--heavy.card--hover:hover { border-color: var(--heavy-accent); }

.tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.section--heavy .tag { border-color: var(--heavy-border); color: var(--heavy-muted); }

/* --------------------------------------------------------------- 11. Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { padding: clamp(1.4rem, 2.4vw, 2rem); background: var(--surface); }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem);
  line-height: 1;
  color: var(--ink);
}
.stat__label {
  margin-top: 0.6rem;
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.01em;
}
.section--heavy .stats { background: var(--heavy-border); border-color: var(--heavy-border); }
.section--heavy .stat { background: var(--heavy-bg-2); }
.section--heavy .stat__value { color: var(--heavy-ink); }
.section--heavy .stat__label { color: var(--heavy-muted); }

/* --------------------------------------------------- 12. Steps / numbered */

.steps { counter-reset: step; display: grid; gap: 1px; background: var(--border); }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  background: var(--bg);
}
.step__num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 0.45rem;
}
.step__num::before { content: "0" counter(step); }
.step__body h3 { font-size: var(--step-2); margin-bottom: 0.7rem; }
.step__body p { color: var(--muted); max-width: 64ch; }
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
  .step__num { padding-top: 0; }
}

/* `--light` is kept as an alias so existing markup stays valid. */
.steps--light { background: var(--border); }
.steps--light .step { background: var(--bg); }
.section--tinted .step { background: var(--bg-tint); }

.steps--heavy { background: var(--heavy-border); }
.steps--heavy .step { background: var(--heavy-bg); }
.steps--heavy .step__num { color: var(--heavy-accent); }
.steps--heavy .step__body p { color: var(--heavy-muted); }

/* ------------------------------------------------------- 13. Feature lists */

.ticks { list-style: none; display: grid; gap: 0.85rem; }
/* The marker is positioned rather than a grid track: a grid/flex `li` would
   split mixed inline content (e.g. `<strong>label</strong> trailing text`)
   into separate items and stack them. */
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22rem;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background-color: var(--accent-wash);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7051' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 0.72rem;
  background-position: center;
  background-repeat: no-repeat;
}
.section--heavy .ticks li { color: var(--heavy-muted); }
.section--heavy .ticks li::before {
  background-color: rgba(108, 199, 154, 0.17);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236cc79a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.rows { list-style: none; border-top: 1px solid var(--border); }
.rows > li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.4rem, 2.6vw, 2rem) 0;
  border-bottom: 1px solid var(--border);
}
.rows h3 { font-size: var(--step-1); }
.rows p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 760px) {
  .rows > li { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* A service row that carries its own photo in the left column. */
.rows--media > li { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); align-items: start; }
@media (max-width: 860px) { .rows--media > li { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- 14. Pull quote */

.pull {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.pull p {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.pull footer {
  margin-top: 1.5rem;
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.section--heavy .pull {
  background: var(--heavy-bg-2);
  border-color: var(--heavy-border);
  border-left-color: var(--heavy-accent);
}
.section--heavy .pull footer { color: var(--heavy-muted); }

/* -------------------------------------------------------------- 15. Chips */

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  padding: 0.55rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.section--heavy .chip {
  background: var(--heavy-bg-2);
  border-color: var(--heavy-border);
  color: var(--heavy-muted);
}

/* ------------------------------------------------------------ 16. CTA band */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--heavy-bg);
  color: var(--heavy-ink);
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40% 40% 40% -10%;
  background: radial-gradient(ellipse at center, rgba(108, 199, 154, 0.22), transparent 65%);
  z-index: -1;
}
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
}
.cta h2 { font-size: var(--step-3); color: var(--heavy-ink); }
.cta p { margin-top: 1.1rem; color: var(--heavy-muted); max-width: 48ch; }
.cta__actions { display: flex; flex-direction: column; gap: 0.9rem; }
.cta__actions .btn { width: 100%; }
.cta__contact {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: var(--step--1);
  color: var(--heavy-muted);
}
.cta__contact a { color: var(--heavy-ink); text-decoration: none; overflow-wrap: anywhere; }
.cta__contact a:hover { color: var(--heavy-accent); }
@media (max-width: 860px) {
  .cta__inner { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- 17. Forms */

.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.45rem; }
.field > label {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.field .hint { font-size: 0.8125rem; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  appearance: none;
}
textarea { min-height: 9rem; resize: vertical; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b74' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.05rem;
  padding-right: 2.5rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: #c0392b;
}
.error-text { font-size: 0.8125rem; color: #c0392b; min-height: 0; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.form__consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  font-size: 0.8125rem;
  color: var(--muted);
}
.form__consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--accent); }

.form-status {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--accent-wash);
  border: 1px solid var(--accent);
  color: var(--ink);
}
.form-status[hidden] { display: none; }

/* ----------------------------------------------------------- 18. Accordion */

.accordion { border-top: 1px solid var(--border); }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  flex: none;
  width: 1.2rem; height: 1.2rem;
  background: currentColor;
  opacity: 0.55;
  transition: transform 0.25s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.accordion details[open] summary::after { transform: rotate(135deg); }
.accordion summary:hover { color: var(--accent); }
.accordion__body { padding: 0 0 1.5rem; max-width: 72ch; color: var(--muted); font-size: 0.9375rem; }
.accordion__body p + p { margin-top: 0.8rem; }
.accordion__body a { color: var(--accent); text-underline-offset: 3px; }

/* --------------------------------------------------------- 19. Contact bits */

.contact-list { list-style: none; display: grid; gap: 1.25rem; }
.contact-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.contact-list .card__icon { width: 2.5rem; height: 2.5rem; margin: 0; }
.contact-list dt, .contact-list .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.contact-list a { font-weight: 600; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); }
.contact-list span { font-size: 0.9375rem; color: var(--ink-soft); }
.section--heavy .contact-list a { color: var(--heavy-ink); }
.section--heavy .contact-list a:hover { color: var(--heavy-accent); }
.section--heavy .contact-list dt,
.section--heavy .contact-list .label,
.section--heavy .contact-list span { color: var(--heavy-muted); }

/* --------------------------------------------------------------- 20. Footer */

.site-footer {
  background: var(--heavy-bg);
  color: var(--heavy-ink);
  border-top: 1px solid var(--heavy-border);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer-brand .brand { margin-right: 0; }
.footer-brand .brand__logo { height: 2.9rem; }
.footer-brand p {
  margin-top: 1.1rem;
  max-width: 34ch;
  font-size: 0.9rem;
  color: var(--heavy-muted);
}
.footer-col h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--heavy-muted);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--heavy-ink);
  text-decoration: none;
  opacity: 0.85;
  overflow-wrap: anywhere;
  transition: opacity 0.18s var(--ease), color 0.18s var(--ease);
}
.footer-col a:hover { opacity: 1; color: var(--heavy-accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--heavy-border);
  font-size: 0.8125rem;
  color: var(--heavy-muted);
}
.footer-bottom p { margin: 0; }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ------------------------------------------- 21. Cross-ground overrides */

.section--heavy .rows,
.section--heavy .rows > li { border-color: var(--heavy-border); }
.section--heavy .rows p { color: var(--heavy-muted); }
.section--heavy .muted { color: var(--heavy-muted); }
.section--heavy .divider { background: var(--heavy-border); }

.card--heavy a:not(.btn):not(.arrow-link) {
  color: var(--heavy-ink);
  text-decoration: underline;
  text-decoration-color: var(--heavy-accent);
  text-underline-offset: 3px;
}
.card--heavy a:not(.btn):not(.arrow-link):hover { color: var(--heavy-accent); }
.card--heavy .ticks li { color: var(--heavy-muted); }
.card--heavy .ticks li::before {
  background-color: rgba(108, 199, 154, 0.17);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236cc79a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.card--heavy .muted { color: var(--heavy-muted); }

/* The select chevron and tick glyph are data URIs — recolour them on dark. */
:root[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2396a9b1' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236cc79a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2396a9b1' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
  :root:not([data-theme="light"]) .ticks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236cc79a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  }
}

.ticks li strong { color: var(--ink); font-weight: 600; }
.section--heavy .ticks li strong, .card--heavy .ticks li strong { color: var(--heavy-ink); }

/* ------------------------------------------------------------ 22. Motion */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.07s; }
.reveal:nth-child(3) { transition-delay: 0.14s; }
.reveal:nth-child(4) { transition-delay: 0.21s; }

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

/* ----------------------------------------------------------- 23. Utilities */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: clamp(2rem, 4vw, 3rem); }
.center { text-align: center; }
.no-wrap { white-space: nowrap; }
