/* The Dacey Group — shared styles */

:root {
  /* Palette — Cheryl Dacey's Canva brand system */
  --navy: #1F2A44;          /* brand navy (warmer/lighter) */
  --navy-deep: #14182B;     /* darker variant for hover/shadow */
  --gold: #C6A96B;          /* brand gold — champagne/antique gold */
  --gold-deep: #A8884B;     /* darker gold for accessible buttons/hover */
  --charcoal: #333333;      /* brand charcoal — body text */
  --charcoal-soft: #4D4D4D; /* softer charcoal from brand reference */
  --soft-gray: #6B6B6B;     /* muted gray for secondary text */
  --gray-bg: #F4F6F8;       /* brand light gray for soft alternating sections */
  --gray-border: #E5E7EB;   /* light gray borders */
  --white: #FFFFFF;         /* crisp true white */
  --gold-btn: #A8884B;      /* button background — gold-deep for white-text contrast */
  --off-white: #F4F6F8;     /* alias -> brand light gray band */

  /* Back-compat aliases */
  --gold-light: #C6A96B;
  --bg: #FFFFFF;
  --gray: #6B6B6B;
  --border: #E5E7EB;

  /* Type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: var(--font-display);
  --sans: var(--font-body);

  /* Layout */
  --maxw: 1200px;
  --measure: 68ch;

  /* Spacing scale */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 7rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-optical-sizing: auto;
}

p { margin: 0 0 1.2em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1rem;
  display: block;
}
.eyebrow--muted { color: var(--soft-gray); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-border);
}
.header-logo { display: block; }
.header-logo img { height: 56px; width: auto; display: block; }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
}

/* CTA button */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  padding: 0.78rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn--gold {
  background: var(--gold-btn);
  color: #fff;
  box-shadow: 0 1px 2px rgba(31, 42, 68, 0.12);
}
.btn--gold:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-light {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--outline-light:hover { background: var(--gold); color: var(--navy-deep); }
.btn--lg { padding: 0.95rem 1.9rem; font-size: 1.02rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; align-items: center; }

.text-link {
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}
.text-link:hover { border-color: var(--gold); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px; height: 44px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
section { padding: var(--s-7) 0; }
.section--tight { padding: var(--s-6) 0; }

.measure { max-width: var(--measure); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

h1.hero-title {
  font-size: clamp(2.9rem, 6.4vw, 4.6rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 0.55em;
}
h2.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 0.5em;
}
.lead {
  font-size: 1.22rem;
  color: var(--charcoal);
  line-height: 1.6;
}
.muted { color: var(--gray); }
.serif-body {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.32rem;
  line-height: 1.7;
  color: var(--charcoal);
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--s-7) 0 var(--s-6);
}
.hero .sub {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 60ch;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

/* Refined single-swash underline under tagline */
.underline-wrap { position: relative; display: inline; }
.underline-svg {
  position: absolute;
  left: 0;
  bottom: -0.14em;
  width: 100%;
  height: 0.32em;
  color: var(--gold);
  overflow: visible;
}

/* Page hero (inner pages) */
.page-hero {
  padding: var(--s-6) 0 var(--s-5);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  margin-bottom: 0.35em;
}
.page-hero .sub { font-size: 1.22rem; color: var(--gray); max-width: 60ch; margin: 0; }

/* ---------- Personal note (heart) ---------- */
.note {
  background: var(--navy);
  color: #E8EDF3;
}
.note h2, .note .eyebrow { color: #fff; }
.note .eyebrow { color: var(--gold); }
.note .serif-body { color: #DCE3EC; }
.note .signoff {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
  margin-top: 1.5rem;
}
/* Home note: headshot + signature row */
.note-signature {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.note-signature img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
  flex-shrink: 0;
}
.note-signature .signoff { margin-top: 0; }

/* ---------- Who we serve ---------- */
.taglist {
  font-size: 0.95rem;
  color: var(--gray);
  letter-spacing: 0.01em;
  line-height: 2;
  margin-top: 2rem;
}

/* ---------- Focus cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.2rem 2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(31, 42, 68, 0.08);
  border-color: #d8dde3;
}
.card .num {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.card p { margin: 0; color: var(--gray); font-size: 1.02rem; }
.card-meta {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ---------- Why list ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 4rem;
  margin-top: 2.5rem;
}
.why-item {
  padding: 1.3rem 0;
  border-top: 1px solid var(--gold);
  font-size: 1.08rem;
  color: var(--charcoal);
}
.why-item:first-child, .why-grid > .why-item:nth-child(2) { /* keep top lines */ }

/* ---------- Closing CTA ---------- */
.cta-band { background: var(--navy-deep); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-band .sub { color: #B8C2D0; max-width: 52ch; margin: 0 auto 2rem; font-size: 1.18rem; }
.cta-band .below { margin-top: 1.6rem; color: #91A0B2; font-size: 0.98rem; }
.cta-band .below a { color: var(--gold); text-decoration: none; }
.cta-band .below a:hover { text-decoration: underline; }

/* ---------- Pillar sections ---------- */
.pillar { border-bottom: 1px solid var(--border); }
.pillar:last-of-type { border-bottom: none; }
.pillar .num {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.8rem;
}
.pillar h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.practice-impact {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0.6rem 0 1.4rem;
  max-width: 60ch;
  line-height: 1.6;
}

/* ---------- Solutions stat band ---------- */
.stat-band {
  background: var(--off-white);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  padding: var(--s-4) 0;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 0.4rem 2rem;
  border-left: 1px solid var(--gray-border);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat__eyebrow {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}
.stat__label {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--charcoal);
  line-height: 1.4;
}
@media (max-width: 760px) {
  .stat-row { grid-template-columns: 1fr 1fr; gap: 1.6rem 0; }
  .stat { padding: 0.4rem 1.4rem; }
  .stat:first-child { padding-left: 1.4rem; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
}
.cap-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.5rem;
}
.cap-list li {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 3.5rem;
  align-items: start;
}
/* Italic gold tagline lock-up */
.tagline-lockup {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--gold-deep);
  margin: 0 0 1.6rem;
  letter-spacing: 0.01em;
}
.tagline-lockup--center { text-align: center; }
/* Real editorial portrait */
.headshot {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  display: block;
}
.headshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.headshot--lg { max-width: 480px; }
.headshot-caption {
  margin: 0.9rem 0 0;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft-gray);
  position: relative;
  padding-top: 0.85rem;
}
.headshot-caption::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 48px; height: 1.5px;
  background: var(--gold);
}

.highlight-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 1.8rem;
}
.highlight-box h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.highlight-box ul { list-style: none; padding: 0; margin: 0; }
.highlight-box li {
  font-size: 0.98rem;
  color: var(--charcoal);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.highlight-box li:last-child { border-bottom: none; }

/* ---------- Insights ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2.5rem 0 0;
}
.pill {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.pill:hover, .pill.active { color: var(--navy); border-color: var(--gold); }
.pill.active { color: var(--navy); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.8rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(31,42,68,0.08); }
.article-card .cat { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.9rem; }
.article-card h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: 0.7rem; }
.article-card p { font-size: 0.98rem; color: var(--gray); margin-bottom: 1.4rem; }
.article-card .read { margin-top: auto; font-weight: 600; color: var(--navy); font-size: 0.95rem; }

/* ---------- Article page ---------- */
.article {
  padding: var(--s-6) 0 var(--s-7);
}
.article .cat { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); display: block; margin-bottom: 1rem; }
.article h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); max-width: 20ch; margin-bottom: 0.6rem; }
.article .byline { color: var(--gray); font-size: 0.98rem; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.article-body { max-width: 66ch; }
.article-body p { font-family: var(--serif); font-weight: 500; font-size: 1.34rem; line-height: 1.75; color: var(--charcoal); }
.back-link { display: inline-block; margin-top: 3rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.back-link:hover { color: var(--gold); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.2rem;
}
.contact-card dl { margin: 0 0 1.8rem; }
.contact-card dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-bottom: 0.25rem; }
.contact-card dd { margin: 0 0 1.3rem; font-size: 1.05rem; color: var(--charcoal); }
.contact-card dd a { color: var(--navy); text-decoration: none; }
.contact-card dd a:hover { color: var(--gold); }

form .field { margin-bottom: 1.4rem; }
form label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--charcoal); margin-bottom: 0.45rem; }
form input, form textarea, form select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--charcoal);
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A8884B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}
form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31,42,68,0.08);
}
form textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #B8C2D0;
  padding: var(--s-6) 0 var(--s-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-brand .footer-logo { display: block; margin-bottom: 1.2rem; }
.footer-brand .footer-logo img { width: 168px; height: auto; display: block; }
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--gold);
  margin: 0 0 1.4rem;
  letter-spacing: 0.01em;
}
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.site-footer p { font-size: 0.98rem; color: #A7B2C2; }
.site-footer a { color: #C2CAD6; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.6rem; }
.footer-bottom {
  margin-top: var(--s-5);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.88rem;
  color: #6E7E91;
}

/* ---------- Image treatment ---------- */
.img-rounded {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  display: block;
}
.media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
/* Hero full-bleed: no rounding, subtle warm navy tint overlay */
.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  display: block;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 42, 68, 0.04);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Home hero split layout */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-split .hero-media {
  border-radius: 14px;
  aspect-ratio: 4 / 3;
}
.hero-split .hero-media img { height: 100%; }

/* Aspect ratio helpers to prevent layout shift */
.ar-4-3 { aspect-ratio: 4 / 3; }
.ar-4-5 { aspect-ratio: 4 / 5; }
.ar-1-1 { aspect-ratio: 1 / 1; }
.ar-16-9 { aspect-ratio: 16 / 9; }

/* Full-bleed inner page hero band */
.hero-band {
  width: 100%;
  aspect-ratio: 21 / 7;
  max-height: 360px;
}
.hero-band img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); display: block; }

/* Who-we-serve + pillar two-column */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split--narrow-img { grid-template-columns: 1.2fr 0.8fr; }

.article-card .thumb {
  margin: -2rem -1.8rem 1.6rem;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); display: block; }
.article-figure { margin: 0 0 2.5rem; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.article-figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); display: block; }

/* ---------- Fade-in ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.fade-in.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 92px 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.75rem 2rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: 0 14px 30px rgba(31,42,68,0.08);
  }
  .nav.open { transform: translateY(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 1rem 0; font-size: 1.05rem; }
  .nav-links a.active::after { display: none; }
  .nav .btn { margin-top: 1.2rem; text-align: center; }
  section { padding: var(--s-6) 0; }
  .cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-actions { gap: 1.1rem; }
  .hero-split { grid-template-columns: 1fr; gap: 2.2rem; }
  .split, .split--narrow-img { grid-template-columns: 1fr; gap: 2rem; }
  .hero-band { aspect-ratio: 16 / 9; max-height: 280px; }
}

@media (max-width: 560px) {
  .article-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .btn, .card, .article-card { transition: none; }
}

/* ============================================================
   HOMEPAGE — navy header + typographic hero
   ============================================================ */

/* Header turns navy on the homepage only so header + hero read as
   one continuous navy band. Other pages keep the white header. */
body.home-header .site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
body.home-header .nav-links a { color: rgba(255, 255, 255, 0.82); }
body.home-header .nav-links a:hover { color: #fff; }
body.home-header .nav-links a.active { color: #fff; }
body.home-header .nav-links a.active::after { background: var(--gold); }
body.home-header .nav-toggle span { background: #fff; }

/* Header CTA: white-outlined-on-navy (P2PP treatment) */
body.home-header .nav .btn--gold {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
body.home-header .nav .btn--gold:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: #fff;
  transform: translateY(-1px);
}

/* Mobile nav panel stays navy on home so it matches */
@media (max-width: 768px) {
  body.home-header .nav {
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 14px 30px rgba(20, 24, 43, 0.4);
  }
  body.home-header .nav-links li { border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
}

/* ---------- Typographic hero ---------- */
.hero-type {
  background: var(--navy);
  color: #fff;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: var(--s-6) 0;
}
.hero-type__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
.hero-type__content { max-width: 720px; }

.hero-type__eyebrow {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}
/* Small bridging line between the eyebrow and the headline.
   Title Case Montserrat 500 in soft gold — subordinate to the headline,
   visually distinct from the all-caps letter-spaced eyebrow above it. */
.hero-type__bridge {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin: 11px 0 26px;
}
.hero-type__title {
  font-family: var(--serif);
  font-weight: 500;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 24px;
}
.hero-type__title em {
  font-style: italic;
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 500;
}
/* Gold italic supporting tagline directly under the headline */
.hero-type__support {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.375rem, 2vw, 1.55rem);
  line-height: 1.3;
  color: var(--gold);
  margin: 0 0 15px;
  letter-spacing: 0.005em;
}
/* Positioning sub-statement — muted white sans, beneath the gold tagline */
.hero-type__positioning {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.80);
  max-width: 540px;
  margin: 0 0 30px;
}
.hero-type__sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.70);
  max-width: 540px;
  margin: 0 0 38px;
}
.hero-type__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero buttons — caps, letter-spaced, P2PP style */
.btn-hero {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.7rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-hero--gold {
  background: var(--gold-btn);
  color: #fff;
}
.btn-hero--gold:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
}
.btn-hero--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-hero--ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: #fff;
  transform: translateY(-1px);
}

/* ---------- Hero ECG heartbeat strip (continuous scroll) ---------- */
.hero-type__art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.hero-ecg {
  width: 100%;
  max-width: 620px;
  height: auto;
  overflow: hidden;       /* mask the strip as it scrolls */
  /* soft fade at both edges so the scrolling strip enters/exits gently */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
}
/* The strip path is 1200 wide = two identical 600-unit pulse cycles laid
   end to end. Translating left by exactly 600 (one cycle) loops seamlessly. */
.hero-ecg__strip {
  animation: heroEcgScroll 7s linear infinite;
}
.hero-ecg__line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-opacity: 0.92;
}
.hero-ecg__dot {
  fill: var(--gold);
  transform-box: fill-box;
  transform-origin: center;
  animation: heroEcgPulse 7s ease-in-out infinite;
}

@keyframes heroEcgScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-600px); }
}
@keyframes heroEcgPulse {
  0%, 22%, 60%, 100% { transform: scale(1); }
  28% { transform: scale(1.2); }
  66% { transform: scale(1.2); }
}

/* Make the home personal-note section a clean off-white band so the
   navy hero gives way to a calm tonal break (was navy, would clash). */
body.home-header .note {
  background: var(--off-white);
  color: var(--charcoal);
  border-top: 1px solid var(--gray-border);
}
body.home-header .note h2 { color: var(--navy); }
body.home-header .note .eyebrow { color: var(--gold-deep); }
body.home-header .note .serif-body { color: var(--charcoal); }
body.home-header .note .signoff { color: var(--gold-deep); }
body.home-header .note-signature img { border-color: var(--gold); }

/* ---------- Hero responsive ---------- */
@media (max-width: 768px) {
  .hero-type {
    min-height: 0;
    padding: var(--s-6) 0 var(--s-5);
  }
  .hero-type__grid { grid-template-columns: 1fr; gap: 0; }
  .hero-type__art { display: none; }
  .hero-type__content { max-width: 100%; }
}
@media (max-width: 480px) {
  .hero-type__actions { flex-direction: column; align-items: stretch; }
  .btn-hero { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ecg__strip { animation: none; transform: none; }
  .hero-ecg__dot { animation: none; }
  .hero-ecg {
    -webkit-mask-image: none;
            mask-image: none;
  }
}

/* ============================================================
   REVISION 2 — warmer, advisor-led layout additions
   ============================================================ */

/* ---------- Section eyebrow on light bands (gold caps) ---------- */
.eyebrow--gold { color: var(--gold-deep); }

/* ---------- "Why This Work Matters" editorial band ---------- */
.why-matters { background: var(--off-white); }
.why-matters .eyebrow { color: var(--gold-deep); }
.why-matters h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  max-width: 22ch;
  margin-bottom: 1.4rem;
}
.editorial-col {
  max-width: 680px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  color: var(--charcoal);
}
.editorial-col p { margin: 0 0 1.3rem; }
.editorial-col .emphasis {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--gold-deep);
  margin-top: 1.8rem;
}
/* Signature row (circular inset) at bottom of Why This Work Matters */
.signature-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-border);
}
.signature-row img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.signature-row .signoff {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-deep);
  margin: 0;
}

/* ---------- "Experience That Matters" ---------- */
.experience { background: var(--white); }
.experience .eyebrow { color: var(--gold-deep); }
.experience h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  max-width: 24ch;
  margin-bottom: 2.4rem;
}
.experience-grid {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 3.5rem;
  align-items: start;
}
.exp-photo {
  width: 100%;
  max-width: 320px;
}
.exp-photo .frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
}
.exp-photo .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: saturate(0.96);
  display: block;
}
.exp-photo .cap {
  margin: 0.9rem 0 0;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft-gray);
  position: relative;
  padding-top: 0.85rem;
}
.exp-photo .cap::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 48px; height: 1.5px;
  background: var(--gold);
}
.cred-list { list-style: none; padding: 0; margin: 0; }
.cred-list li {
  padding: 1.15rem 0;
  border-top: 1px solid var(--gold);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: var(--navy);
}
.cred-cta {
  display: inline-block;
  margin-top: 1.8rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--gold-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}
.cred-cta:hover { color: var(--navy); }

/* ---------- "Who We Serve" dual column ---------- */
.serve-intro {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  color: var(--soft-gray);
  max-width: 640px;
  margin: 0 0 3rem;
}
.serve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}
.serve-col h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.4rem;
}
.serve-col ul { list-style: none; padding: 0; margin: 0; }
.serve-col li {
  padding: 1.05rem 0;
  border-top: 1px solid var(--gray-border);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  color: var(--charcoal);
}

/* ---------- Focus / pillar cards (homepage) ---------- */
.focus-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
}
.focus-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.4rem 2.2rem;
  display: flex;
  flex-direction: column;
}
.focus-card:hover {
  box-shadow: 0 12px 30px rgba(31, 42, 68, 0.07);
  border-color: #d8dde3;
}
.focus-card .num {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.9rem;
}
.focus-card h3 {
  font-size: clamp(1.65rem, 2.4vw, 1.85rem);
  line-height: 1.16;
  margin-bottom: 0.7rem;
}
.focus-card .body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--charcoal);
  margin: 0 0 1.3rem;
}
.focus-card .sol-label {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.4rem;
}
.focus-card .sol-list {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--navy);
  margin: 0 0 1.5rem;
}
.focus-card .learn {
  margin-top: auto;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}
.focus-card .learn:hover { color: var(--navy); }

/* fifth card spans both columns on desktop, centered */
.focus-cards .focus-card.span-2 { grid-column: 1 / -1; }

.focus-closing {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--gold-deep);
  max-width: 720px;
  margin: 3rem auto 0;
  text-align: center;
}

/* ---------- Solutions page pillar (5-pillar restructure) ---------- */
.pillar .pillar-eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.8rem;
}
.pillar .serif-body { font-size: 1.28rem; }
.benefit-label {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 1.8rem 0 0.8rem;
}
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.6rem;
}
.benefit-list li {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  color: var(--charcoal);
  padding-left: 1.1rem;
  position: relative;
}
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.pillar .learn {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--gold-deep);
  text-decoration: none;
}
.pillar .learn:hover { color: var(--navy); }

/* ---------- Solution detail pages ---------- */
.sol-detail-hero {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-border);
  padding: var(--s-6) 0 var(--s-5);
}
.sol-detail-hero .eyebrow { color: var(--gold-deep); }
.sol-detail-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  max-width: 18ch;
  margin-bottom: 0.5rem;
}
.sol-detail-hero .sub {
  font-size: 1.32rem;
  color: var(--soft-gray);
  max-width: 56ch;
  margin: 0;
  line-height: 1.5;
}
.sol-overview .editorial-col { font-size: 1.28rem; font-family: var(--serif); font-weight: 500; line-height: 1.72; max-width: 65ch; }
.sol-overview .editorial-col p { margin: 0 0 1.3rem; }
.sol-included { background: var(--off-white); }
.sol-item {
  padding: 2rem 0;
  border-top: 1px solid var(--gray-border);
  max-width: 720px;
}
.sol-item:first-of-type { border-top: 1px solid var(--gold); }
.sol-item .name {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}
.sol-item p { margin: 0; font-size: 1.08rem; color: var(--charcoal); line-height: 1.6; }
.sol-benefits h2 { margin-bottom: 2rem; max-width: 22ch; }
.sol-why { background: var(--off-white); }
.why-list { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: 720px; }
.why-list li {
  padding: 1.3rem 0 1.3rem 2rem;
  border-top: 1px solid var(--gray-border);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--navy);
  position: relative;
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.65rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- About page large portrait framing ---------- */
.headshot--portrait {
  max-width: 440px;
}
.headshot--portrait .frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
}
.headshot--portrait .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: saturate(0.96);
  display: block;
}

/* ---------- Article closing CTA ---------- */
.article-cta {
  max-width: 66ch;
  margin: 3.5rem 0 0;
  padding-top: 2.4rem;
  border-top: 1px solid var(--gold);
}
.article-cta .eyebrow { color: var(--gold-deep); margin-bottom: 0.7rem; }
.article-cta h2 {
  font-size: 1.75rem;
  margin-bottom: 0.8rem;
}
.article-cta p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 1.6rem;
  max-width: 60ch;
}

/* ---------- Contact phone (prominent) ---------- */
.contact-phone {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--navy);
  text-decoration: none;
  display: block;
  margin-bottom: 1.6rem;
  letter-spacing: -0.01em;
}
.contact-phone:hover { color: var(--gold-deep); }

/* ---------- Responsive (revision 2) ---------- */
@media (max-width: 900px) {
  .experience-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .exp-photo { max-width: 280px; }
}
@media (max-width: 768px) {
  .focus-cards { grid-template-columns: 1fr; }
  .focus-cards .focus-card.span-2 { grid-column: auto; }
  .serve-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .benefit-list { grid-template-columns: 1fr; }
  .signature-row { flex-wrap: wrap; }
}

/* ---------- About page brand mark ---------- */
.about-brandmark {
  display: block;
  width: 80px;
  height: 80px;
  margin: 1.6rem 0 0;
}

/* === Solutions Page: Pillar Jump Nav ===================================== */
html { scroll-behavior: smooth; }
.pillar[id], #pillar-1, #pillar-2, #pillar-3, #pillar-4, #pillar-5 {
  scroll-margin-top: 96px;
}

.pillar-nav {
  background: var(--off-white);
  padding: var(--s-5) 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.pillar-nav__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.pillar-nav__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  color: var(--navy);
  text-decoration: none;
  min-height: 150px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.pillar-nav__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 30, 60, 0.08);
  border-color: rgba(0,0,0,0.16);
}
.pillar-nav__num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}
.pillar-nav__label {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--navy);
}
.pillar-nav__card::after {
  content: "↓";
  align-self: flex-end;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--gold);
  margin-top: -0.5rem;
}
@media (max-width: 1024px) {
  .pillar-nav__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .pillar-nav__grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .pillar-nav__card { min-height: 120px; padding: 1rem 0.9rem; }
  .pillar-nav__label { font-size: 0.95rem; }
}
