/*
Theme Name: Carter
Theme URI: https://carter-consultancy.com
Author: Vanilla Killer
Author URI: https://vanillakiller.com
Description: Custom classic PHP theme for Carter Consultancy. Built to the new layout — CX, process & change consultancy.
Version: 1.0.0
License: Proprietary
Text Domain: carter
*/

/* =========================================================
   Carter Consultancy — site styles
   Clean, professional, corporate, modern. Light use of blue.
   ========================================================= */

:root {
  /* Brand palette */
  --blue-900: #0b2545;
  --blue-700: #13315c;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  /* Brand blue: pulled from the carter-logo.svg CARTER wordmark fills.
     Used on every CTA button so the buttons match the brand mark. */
  --brand-blue:      #4880C1;
  --brand-blue-dark: #3C64AA;
  --shadow-brand:    0 12px 30px -10px rgba(72, 128, 193, .45);

  /* Neutrals */
  --ink:       #0f172a;
  --ink-soft:  #1e293b;
  --muted:     #475569;
  --muted-2:   #64748b;
  --line:      #e2e8f0;
  --line-soft: #eef2f7;
  --bg:        #ffffff;
  --bg-alt:    #f8fafc;
  --bg-tint:   #f4f7fc;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  /* Layout */
  --container: 1200px;
  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, .06), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, .12), 0 8px 16px -8px rgba(15, 23, 42, .08);
  --shadow-blue: 0 12px 30px -10px rgba(37, 99, 235, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

h1, h2, h3, h4 {
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue-700); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 56px; width: auto; }

.primary-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.primary-nav a:hover,
.primary-nav a.is-active,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a,
.primary-nav .current_page_ancestor > a { color: var(--blue-700); background: var(--blue-50); }

/* CSS chevron for items with a sub-menu (replaces the inline SVG from the static markup) */
.primary-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-left: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  width: max-content;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 2px;
  align-items: stretch;
}
.primary-nav .menu-item-has-children:hover .sub-menu,
.primary-nav .menu-item-has-children:focus-within .sub-menu,
.primary-nav .menu-item-has-children.sub-open .sub-menu { display: flex; }
.primary-nav .sub-menu a {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  text-align: left;
  white-space: nowrap;
}

.nav-cta > a,
a.nav-cta {
  background: var(--brand-blue) !important;
  color: #fff !important;
  padding: 10px 18px !important;
  margin-left: 6px;
  box-shadow: var(--shadow-brand);
}
.nav-cta > a:hover,
a.nav-cta:hover { background: var(--brand-blue-dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 15.5px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .2s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-blue-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-700); }
.btn-light {
  background: #fff;
  color: var(--blue-700);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.btn-light:hover { background: var(--blue-50); color: var(--blue-700); }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* =========================================================
   Eyebrow / shared
   ========================================================= */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section { padding: 96px 0; }
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
}
.section-head-left { text-align: left; margin: 0; max-width: none; }
.section-intro {
  color: var(--muted);
  font-size: 18px;
  margin-top: 12px;
}

/* =========================================================
   1. Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 64px 0 88px;
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--blue-50) 0%, transparent 60%),
    radial-gradient(900px 400px at -10% 30%, var(--blue-50) 0%, transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(37, 99, 235, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  column-gap: 64px;
  row-gap: 32px;
  align-items: center;
  position: relative;
}

.hero-intro {
  grid-column: 1 / -1;
  max-width: 1100px;
}
.hero-intro .eyebrow { margin-bottom: 16px; }

.hero-copy { position: relative; }

.hero-headline {
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.028em;
  margin: 0;
  color: var(--ink);
  max-width: 18ch;
}
.hero-headline .accent {
  color: var(--blue-600);
  background-image: linear-gradient(120deg, transparent 0%, transparent 60%, rgba(37, 99, 235, .12) 60%, rgba(37, 99, 235, .12) 100%);
  background-size: 100% 100%;
}

.lede {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 14px;
  max-width: 60ch;
}
.body-text {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 60ch;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.value-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-weight: 500; color: var(--ink-soft);
  font-size: 16px;
}
.tick {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue-600);
  position: relative;
  margin-top: 2px;
  box-shadow: 0 4px 10px -3px rgba(37, 99, 235, .5);
}
.tick::after {
  content: "";
  position: absolute;
  left: 7px; top: 4px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 36px;
}
.cta-row-centered { justify-content: center; }

.hero-quote {
  margin: 0;
  padding: 20px 22px;
  border-left: 3px solid var(--blue-500);
  background: var(--bg-alt);
  border-radius: 0 12px 12px 0;
  max-width: 600px;
}
.hero-quote blockquote {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.55;
}
.hero-quote figcaption {
  font-size: 13.5px;
  color: var(--muted-2);
}

/* ---------- Hero variant: immersive (full-bleed photo BG) ---------- */
.hero.hero-immersive {
  background:
    /* Darkened after Tom said the previous "lightened" pass went too far.
       The text needs strong contrast; the photo is decorative not load-bearing. */
    linear-gradient(95deg, rgba(7, 24, 48, .85) 0%, rgba(11, 37, 69, .70) 45%, rgba(11, 37, 69, .75) 70%, rgba(7, 24, 48, .90) 100%),
    url('assets/img/hero-bg.jpg') 25% center / cover no-repeat;
  color: #fff;
  /* Shrunk so the client-logo bar peeks above the fold on standard laptops (~900px viewport) */
  min-height: clamp(560px, calc(100vh - 280px), 760px);
  display: flex;
  align-items: center;
  padding: 56px 0 48px;
}
.hero-immersive::before { display: none; } /* kill grid texture */

.hero-immersive .hero-grid { align-items: center; }
.hero-immersive .hero-intro { max-width: 980px; }

/* Keep Dave-with-badges card visible — give it a soft glow so it sits on the photo */
.hero-immersive .hero-media { position: relative; }
.hero-immersive .dave-photo {
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
}

.hero-immersive .eyebrow {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-immersive .hero-headline { color: #fff; }
.hero-immersive .hero-headline .accent {
  color: #fff;
  background-image: linear-gradient(120deg, transparent 0%, transparent 60%, rgba(96, 165, 250, .4) 60%, rgba(96, 165, 250, .4) 100%);
}

.hero-immersive .lede { color: rgba(255, 255, 255, .92); }
.hero-immersive .body-text { color: rgba(255, 255, 255, .8); }

.hero-immersive .value-list li { color: #fff; }
.hero-immersive .tick { background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.hero-immersive .tick::after { border-color: var(--blue-700); }

.hero-immersive .hero-quote {
  background: rgba(255, 255, 255, .08);
  border-left-color: rgba(147, 197, 253, .8);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-immersive .hero-quote blockquote { color: #fff; }
.hero-immersive .hero-quote figcaption { color: rgba(255, 255, 255, .65); }

.hero-immersive .btn-primary {
  background: #fff;
  color: var(--blue-700);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .35);
}
.hero-immersive .btn-primary:hover { background: var(--blue-50); color: var(--blue-700); }
.hero-immersive .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  background: transparent;
}
.hero-immersive .btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

/* Hero media (Dave + badges) */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dave-photo {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(11, 37, 69, .15));
}

/* =========================================================
   Client logo bar
   ========================================================= */
.logo-bar {
  padding: 32px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logo-strip {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
  justify-items: center;
}
.logo-strip img {
  max-height: 44px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
}

/* =========================================================
   2. Problem landscape
   ========================================================= */
.problems { background: var(--bg); }

/* 2-col intro: copy left, Dave photo right */
.problems-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}
.problems-media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.problems-photo {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}

.problem-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 56px;
}
/* 3 + 2 layout, second row centered */
.problem-card { grid-column: span 2; }
.problem-card:nth-child(4) { grid-column: 2 / span 2; }
.problem-card:nth-child(5) { grid-column: 4 / span 2; }
.problem-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}
.problem-num {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.problem-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.pull-quote {
  text-align: center;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.3;
}
.pull-quote em {
  color: var(--blue-600);
  font-style: italic;
  font-weight: 700;
}

/* =========================================================
   3. Approach (steps)
   ========================================================= */
.approach { background: var(--bg-alt); }

.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  transition: transform .2s ease, box-shadow .25s ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.step-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-blue);
}
.step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* =========================================================
   4. Testimonials
   ========================================================= */
.testimonials { background: var(--bg); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin: 0;
  position: relative;
  transition: transform .2s ease, box-shadow .25s ease;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.quote-mark {
  width: 32px; height: 24px;
  color: var(--blue-100);
  margin-bottom: 14px;
}
.testimonial-card blockquote {
  margin: 0 0 24px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.testimonial-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--muted-2);
}
.testimonial-card figcaption strong {
  color: var(--ink);
  font-size: 15px;
}

/* =========================================================
   5. About
   ========================================================= */
.about { background: var(--bg-alt); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.about .section-head {
  text-align: left;
  margin: 0;
  position: sticky;
  top: 110px;
}
.about .section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
}
.about-body p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.about-body p strong {
  color: var(--ink);
  font-weight: 600;
}

/* =========================================================
   6. Outcomes (Good Island)
   ========================================================= */
.outcomes {
  background: var(--bg);
}
.outcome-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.outcome-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 12px;
  padding: 18px 20px;
}
.outcome-list .check {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  background: var(--blue-600);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 1px;
}
.outcome-list strong {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
}

/* =========================================================
   7. Case study
   ========================================================= */
.case-study { background: var(--bg-alt); }

.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 1080px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.case-image {
  margin: 0;
  background: var(--bg-tint);
  aspect-ratio: 16 / 7;
  overflow: hidden;
}
.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.case-content {
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 36px;
}
.case-header {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.case-header .eyebrow { margin-bottom: 14px; }
.case-header h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin: 0;
  letter-spacing: -.015em;
}
.case-section h3 {
  color: var(--blue-700);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
  font-weight: 700;
}
.case-section p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.case-section p:last-child { margin-bottom: 0; }
.case-pull {
  font-size: 20px !important;
  font-weight: 600;
  color: var(--ink) !important;
  border-left: 3px solid var(--blue-500);
  padding-left: 16px;
  margin: 18px 0 !important;
  font-style: italic;
}

/* =========================================================
   8. Final CTA
   ========================================================= */
.final-cta {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, .35), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(37, 99, 235, .25), transparent 45%);
  pointer-events: none;
}
.final-cta .container { position: relative; }
.final-cta h2 {
  color: #fff;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 1.3;
  max-width: 880px;
  margin: 0 auto 36px;
  letter-spacing: -.01em;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 56px 0 40px;
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.footer-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.footer-brand p { font-size: 14px; margin: 0; }
.footer-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}
.footer-nav a {
  color: rgba(255, 255, 255, .75);
  font-size: 14.5px;
  font-weight: 500;
}
.footer-nav a:hover { color: #fff; }
.copyright {
  grid-column: 1 / -1;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; column-gap: 0; row-gap: 40px; }
  .hero-headline { max-width: none; }
  .hero-media { max-width: 460px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about .section-head { position: static; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }

  /* Problems intro: stack copy + Dave photo */
  .problems-intro { grid-template-columns: 1fr; gap: 36px; }
  .problems-media { max-width: 520px; margin: 0 auto; }

  /* Problem grid: 2 columns; last orphan goes full width */
  .problem-grid { grid-template-columns: 1fr 1fr; max-width: 720px; }
  .problem-card,
  .problem-card:nth-child(4),
  .problem-card:nth-child(5) { grid-column: auto; }
  .problem-card:nth-child(5) { grid-column: 1 / -1; }

  /* Case study: stack content into single column */
  .case-content { grid-template-columns: 1fr; padding: 40px 36px; row-gap: 28px; }
  .case-image { aspect-ratio: 16 / 9; }
}

@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 64px; }
  .final-cta { padding: 72px 0; }

  .nav-toggle { display: block; }

  .primary-nav {
    position: absolute;
    top: 78px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .primary-nav.is-open { max-height: 80vh; overflow-y: auto; }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
  }
  .primary-nav a {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 8px;
    width: 100%;
  }
  .primary-nav .sub-menu {
    position: static;
    display: flex;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--blue-100);
    border-radius: 0;
    margin: 0 0 4px 16px;
    padding: 4px 0 8px 8px;
  }
  .primary-nav .sub-menu a { padding: 10px 14px; font-size: 14.5px; }
  .nav-cta { margin: 8px 16px 0 !important; text-align: center; }

  .cta-row .btn { flex: 1 1 220px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .header-inner { height: 68px; }
  .brand-logo { height: 46px; }
  .primary-nav { top: 68px; }

  .hero-headline { font-size: 36px; }
  .hero-quote { padding: 16px 18px; }

  .logo-strip { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .logo-strip img { max-height: 36px; }

  .problem-grid { grid-template-columns: 1fr; }
  .problem-card:nth-child(5) { grid-column: auto; }

  .footer-inner { grid-template-columns: 1fr; }
}

/* =========================================================
   Contact modal
   ========================================================= */
.contact-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(1040px, calc(100vw - 32px));
  width: 100%;
  max-height: calc(100vh - 32px);
  margin: auto;
  color: var(--ink);
  overflow: visible;
}
.contact-modal::backdrop {
  background: rgba(11, 37, 69, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.contact-modal[open] {
  animation: modalIn .25s cubic-bezier(.2,.7,.3,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.modal-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(11, 37, 69, .35);
  overflow: hidden;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.modal-close:hover {
  background: var(--blue-50);
  color: var(--blue-700);
  border-color: var(--blue-100);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  min-height: 520px;
}

.modal-main {
  padding: 44px 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.modal-head .eyebrow { margin-bottom: 12px; }
.modal-head h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  margin: 0 0 8px;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.contact-channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.channel:hover {
  border-color: var(--blue-100);
  background: var(--blue-50);
  transform: translateY(-1px);
}
.channel-icon {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.channel-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.channel-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: .02em;
}
.channel-value {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.channel-cta {
  background: linear-gradient(135deg, var(--blue-50), #fff);
  border-color: var(--blue-100);
}
.channel-cta .channel-icon { background: var(--blue-600); color: #fff; }
.channel-cta .channel-label { color: var(--blue-700); font-size: 14.5px; }
.channel-cta .channel-value { color: var(--muted); font-weight: 500; font-size: 13.5px; }

.modal-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 6px 0 2px;
}
.modal-divider::before,
.modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row { display: contents; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.form-label em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted-2);
}
.form-field input,
.form-field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 11px 14px;
  border: 1.5px solid var(--muted-2);
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  resize: vertical;
}
.form-field input:hover,
.form-field textarea:hover { border-color: var(--ink-soft); }
.form-field textarea { min-height: 96px; }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-status {
  margin: 0;
  font-size: 14px;
  color: var(--blue-700);
  font-weight: 500;
}

.modal-aside {
  background: linear-gradient(160deg, var(--blue-700) 0%, var(--blue-900) 100%);
  color: #fff;
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.modal-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, .35), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(37, 99, 235, .25), transparent 50%);
  pointer-events: none;
}
.modal-aside > * { position: relative; }
.modal-aside .quote-mark {
  width: 32px; height: 24px;
  color: rgba(255, 255, 255, .35);
}
.modal-aside blockquote {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
  color: #fff;
  letter-spacing: -.005em;
}
.modal-aside figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .65);
}
.modal-aside figcaption strong {
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
}
.modal-aside-foot {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.aside-foot-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin: 0 0 4px;
}
.aside-foot-value {
  margin: 0;
  font-size: 14.5px;
  color: #fff;
  font-weight: 500;
}

@media (max-width: 820px) {
  .modal-grid { grid-template-columns: 1fr; min-height: 0; }
  .modal-aside { order: -1; padding: 32px 28px; }
  .modal-aside-foot { display: none; }
  .modal-main { padding: 32px 26px 32px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .modal-card { border-radius: 16px; }
  .modal-aside blockquote { font-size: 16px; }
  .channel { padding: 12px 14px; }
  .channel-icon { flex-basis: 36px; width: 36px; height: 36px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Pre-footer diagnostic promo (shown on most pages, not home or LM)
   ========================================================= */
.promo-diagnostic {
  background: var(--blue-50);
  border-top: 1px solid var(--blue-100);
  border-bottom: 1px solid var(--blue-100);
  padding: 64px 0;
  margin-top: 64px;
}
.promo-diagnostic-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.promo-diagnostic .promo-text { max-width: 640px; }
.promo-diagnostic .eyebrow { color: var(--blue-700); margin-bottom: 10px; display: inline-block; }
.promo-diagnostic h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  margin: 0 0 10px;
  letter-spacing: -.02em;
}
.promo-diagnostic p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.55;
}
.promo-diagnostic .btn-primary {
  white-space: nowrap;
  padding: 16px 28px;
  font-size: 16px;
}
@media (max-width: 760px) {
  .promo-diagnostic-inner { grid-template-columns: 1fr; gap: 22px; }
  .promo-diagnostic .btn-primary { width: 100%; text-align: center; }
}

/* =========================================================
   Home — Mission / Vision / Values (added May 2026)
   Row 1: Mission + Vision (2 columns)
   Row 2: Values (5 columns, wrapping)
   ========================================================= */
.section.home-mvv { padding: 96px 0; background: var(--bg-tint); }
.home-mvv .section-head { margin-bottom: 40px; }
.home-mvv-mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 0 0 22px;
}
.home-mvv-mv .mv-card {
  background: var(--blue-900);
  color: #fff;
  padding: 36px 32px;
  border-radius: 16px;
  box-shadow: 0 22px 50px -28px rgba(11, 37, 69, .55);
}
.home-mvv-mv .mv-card h3 {
  color: var(--blue-100);
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: -.015em;
}
.home-mvv-mv .mv-card p {
  color: #fff;
  font-size: 16.5px;
  line-height: 1.65;
  margin: 0;
}

.home-mvv-values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.home-mvv-values .value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px;
  transition: transform .12s ease, box-shadow .15s ease;
}
.home-mvv-values .value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -22px rgba(15, 23, 42, .2);
}
.home-mvv-values .value-card h4 {
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--blue-700);
  letter-spacing: -.01em;
}
.home-mvv-values .value-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
@media (max-width: 960px) {
  .home-mvv-values { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .home-mvv-mv { grid-template-columns: 1fr; }
  .home-mvv-values { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* =========================================================
   Service pages — hero band with CTAs and testimonial card
   ========================================================= */
.service-hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--bg) 100%);
  padding: 120px 0 96px;
  border-bottom: 1px solid var(--line);
}
.service-hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.service-hero-grid > .container { padding: 0; margin: 0; }
.service-hero .eyebrow {
  display: inline-block;
  margin-bottom: 26px;
  background: var(--brand-blue);
  color: #fff !important;
  padding: 7px 16px 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-brand);
}
.service-hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  letter-spacing: -.025em;
  margin: 0 0 20px;
  line-height: 1.1;
}
.service-hero .hero-h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 28px;
  line-height: 1.25;
}
.service-hero .hero-lede {
  margin: 0 0 40px;
  max-width: 560px;
}
.service-hero .hero-lede p {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.service-hero .hero-lede p:last-child { margin-bottom: 0; }
.service-hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.service-test {
  background: var(--blue-900);
  color: #fff;
  border-radius: 16px;
  padding: 30px 28px;
  box-shadow: 0 26px 56px -26px rgba(11, 37, 69, .6);
}
.service-test blockquote {
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 18px;
  color: #fff;
  font-style: italic;
}
.service-test .attrib { font-size: 14px; color: rgba(255,255,255,.7); letter-spacing: .04em; }
.service-test .attrib strong { color: #fff; font-weight: 600; display: block; }
@media (max-width: 900px) {
  .service-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-test { max-width: 560px; }
}

/* Service-page body uses the standard .container width (1200px). */
body.page-template-template-service .inner-page { padding: 64px 0 32px; }

/* "How it works" — three (or more) inline cards, each numbered. The cleaner
   wraps the pattern "<h2>How it works</h2> <p>…</p> <p>…</p> <p>…</p>" into
   a .how-it-works grid; this just styles the result. */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 1.6em 0 2.4em;
}
.how-it-works .hiw-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .12s ease, box-shadow .15s ease;
}
.how-it-works .hiw-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -22px rgba(15, 23, 42, .18);
}
.how-it-works .hiw-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue-600);
  display: inline-block;
}
.how-it-works .hiw-card p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
@media (max-width: 880px) {
  .how-it-works { grid-template-columns: 1fr; }
}

/* =========================================================
   Inner pages (About, services, Contact etc.)
   Not part of the static homepage — added for WP page templates.
   ========================================================= */
.page-hero {
  background: linear-gradient(180deg, var(--blue-50), var(--bg));
  padding: 120px 0 88px;
  border-bottom: 1px solid var(--line);
}
.page-hero .container { max-width: 880px; }
.page-hero .eyebrow { display: inline-block; margin-bottom: 22px; }
.page-hero .page-title {
  font-size: clamp(34px, 4.8vw, 56px);
  margin: 0 0 24px;
  line-height: 1.08;
}
.page-hero .page-subtitle {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 720px;
}

/* Tighten on mobile so the heros don't feel cavernous on small screens. */
@media (max-width: 720px) {
  .page-hero    { padding: 72px 0 56px; }
  .service-hero { padding: 80px 0 64px; }
}

.inner-page {
  padding: 64px 0 96px;
}
/* Inner-page-body inherits its width from the .container wrapper (max 1200px,
   24px gutters) so content lines up with the header logo and Contact button. */
.inner-page-body > h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 2em 0 .6em;
  letter-spacing: -.02em;
  position: relative;
  padding-top: .4em;
}
.inner-page-body > h2::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--blue-500);
  margin-bottom: .8em;
}
.inner-page-body h3 {
  font-size: 22px;
  margin: 1.6em 0 .4em;
  letter-spacing: -.015em;
}
.inner-page-body p {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.inner-page-body ul,
.inner-page-body ol {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  padding-left: 1.4em;
  margin: 0 0 1.2em;
}
.inner-page-body li { margin-bottom: .35em; }
.inner-page-body li p { margin: 0; }
.inner-page-body img {
  border-radius: var(--radius);
  margin: 1.8em 0;
  box-shadow: 0 12px 36px -16px rgba(15, 23, 42, .18);
}
.inner-page-body blockquote {
  border-left: 4px solid var(--blue-500);
  margin: 1.8em 0;
  padding: .2em 0 .2em 1.2em;
  color: var(--ink-soft);
  font-size: 19px;
  font-style: italic;
}
.inner-page-body a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.inner-page-body a:hover { color: var(--blue-700); }
.inner-page-body p[style*="text-align: center"] {
  text-align: center;
  font-size: 19px;
  color: var(--ink-soft);
  font-style: italic;
  margin: 1.6em auto;
  max-width: 640px;
}

/* Button-styled standalone links (extractor tags CTAs with .btn-link). */
.inner-page-body a.btn-link,
.btn-link a {
  display: inline-block;
  background: var(--brand-blue);
  color: #fff !important;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  letter-spacing: -.005em;
  margin: 8px 0 24px;
  box-shadow: var(--shadow-brand);
  transition: background .15s ease, transform .12s ease;
}
.inner-page-body a.btn-link:hover {
  background: var(--brand-blue-dark);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Mission / Vision / Values grid (extracted from old WP about page). */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 1.6em 0 2.4em;
}
.mvv-card {
  background: var(--blue-900);
  color: #fff;
  padding: 28px 26px;
  border-radius: 14px;
  box-shadow: 0 18px 40px -22px rgba(11, 37, 69, .55);
}
.mvv-card h3 {
  color: var(--blue-100);
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: -.01em;
}
.mvv-card p {
  color: #fff;
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.mvv-card p:last-child { margin-bottom: 0; }
.mvv-card strong { color: #fff; font-weight: 700; }

/* "What success looks like" callout. Treated as a confident outcome statement
   on a soft tinted card with a tick mark — not a corporate eyebrow + body. */
.success-highlight-box {
  position: relative;
  background: var(--bg-tint);
  border: 1px solid var(--blue-100);
  padding: 32px 36px 32px 84px;
  border-radius: 16px;
  margin: 2.4em 0;
}
.success-highlight-box::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-600);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>");
  background-size: 18px;
  background-position: center;
  background-repeat: no-repeat;
}
.success-highlight-box p:first-child {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.success-highlight-box p:last-child {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* Media listing — laid out as a grid of cards (image, title, meta, button).
   The /media/ page widens to accommodate; non-card siblings (the page hero
   text, intro paragraphs) span the full grid width. */
/* The /media/ page imports a top-level <h1> (page title). We don't want it
   in the grid (it'd inherit the grid item alignment); flow it normally then
   start a grid only for the media-cards. */
.page-media .inner-page-body { display: block; }
.page-media .inner-page-body > h1 { margin-top: 0; }
.page-media .inner-page-body > .media-card,
.page-media .inner-page-body > h2,
.page-media .inner-page-body > h3,
.page-media .inner-page-body > p,
.page-media .inner-page-body > ul,
.page-media .inner-page-body > ol { display: block; }
/* Then re-flow the .media-card siblings into a grid using a wrapper hack:
   target them as a sibling sequence via :has() — supported in all modern
   browsers (incl. Safari 15.4+, Firefox 121+, Chrome 105+). */
.page-media .inner-page-body:has(.media-card) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.page-media .inner-page-body:has(.media-card) > h1,
.page-media .inner-page-body:has(.media-card) > h2,
.page-media .inner-page-body:has(.media-card) > h3,
.page-media .inner-page-body:has(.media-card) > p,
.page-media .inner-page-body:has(.media-card) > ul:not(.media-meta),
.page-media .inner-page-body:has(.media-card) > ol {
  grid-column: 1 / -1;
}
.page-media .inner-page-body > h1 { padding-left: 0; margin-left: 0; }

.media-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .15s ease;
}
.media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px -22px rgba(15, 23, 42, .22);
}
.media-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.media-card h2 {
  font-size: 18px;
  line-height: 1.32;
  letter-spacing: -.01em;
  margin: 22px 22px 12px;
  padding-top: 0;
}
.media-card h2::before { display: none; }
.media-card ul {
  list-style: none;
  padding: 0;
  margin: 0 22px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.4;
}
.media-card ul li {
  margin: 0;
  position: relative;
  padding-left: 12px;
}
.media-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  background: var(--muted-2);
  border-radius: 50%;
}
.media-card ul li:first-child { padding-left: 0; }
.media-card ul li:first-child::before { display: none; }
.media-card ul li p { margin: 0; font-size: 13px; color: var(--muted-2); }
.media-card a.btn-link {
  margin: auto 22px 22px;
  padding: 10px 18px;
  font-size: 14px;
  align-self: flex-start;
  box-shadow: none;
}
@media (max-width: 980px) {
  .page-media .inner-page-body { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .page-media .inner-page-body { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 760px) {
  .mvv-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* Search results / blog index */
.archive-header { padding: 88px 0 32px; background: linear-gradient(180deg, var(--blue-50), var(--bg)); border-bottom: 1px solid var(--line); }
.archive-header h1 { font-size: clamp(34px, 4.8vw, 56px); margin: 0; letter-spacing: -.025em; line-height: 1.08; }
.post-list { padding: 24px 0 96px; }
.post-list article { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: 24px; margin: 0 0 .3em; }
.post-list h2 a { color: var(--ink); }
.post-list h2 a:hover { color: var(--blue-700); }
.post-list .post-meta { color: var(--muted-2); font-size: 14px; margin-bottom: .5em; }

/* 404 */
.error-404 { padding: 120px 0; text-align: center; }
.error-404 h1 { font-size: 64px; margin: 0 0 .2em; }
.error-404 p { font-size: 19px; color: var(--muted); }
