:root {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --text: #151515;
  --muted: #4f4f4f;
  --line: #d2d2d2;
  --line-strong: #9a9a9a;
  --accent: #111111;
  --accent-dark: #000000;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgb(0 0 0 / 5%), transparent 24%),
    radial-gradient(circle at 90% 14%, rgb(0 0 0 / 4%), transparent 22%),
    linear-gradient(180deg, #f0f0f0 0%, #f7f7f7 50%, #f1f1f1 100%);
  line-height: 1.65;
}

.container {
  width: min(var(--maxw), calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(243 243 243 / 92%);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.35rem;
}

.site-nav a {
  color: #666666;
  text-decoration: none;
  font-size: 0.83rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  font-size: 0.84rem;
  font-family: inherit;
}

.section {
  padding: 5rem 0;
}

.border-top {
  border-top: 1px solid var(--line);
}

.hero {
  padding-top: 5.4rem;
}

.home-hero {
  min-height: calc(100vh - 86px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgb(243 243 243 / 74%), rgb(243 243 243 / 74%)),
    url('../images/hero1-bw.jpg') center / cover;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #565656;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.77rem;
}

.home-hero .eyebrow {
  color: var(--text);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  font-family: 'Lora', serif;
  color: #101010;
}

h1 {
  font-size: clamp(2.3rem, 5.3vw, 4.45rem);
  max-width: 10ch;
  margin-bottom: 1.15rem;
}

h2 {
  font-size: clamp(1.48rem, 2.8vw, 2.2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.14rem;
  margin-bottom: 0.45rem;
}

p {
  margin: 0;
  color: var(--muted);
}

.lead {
  max-width: 52ch;
  font-size: 1.08rem;
}

.home-hero .lead {
  color: var(--text);
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.8rem 1.1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

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

.btn-secondary:hover {
  text-decoration: underline;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  align-items: start;
}

.challenge-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.challenge-grid article,
.insights-grid article {
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 88%);
  padding: 1rem;
}

.challenges-section {
  background:
    linear-gradient(rgb(243 243 243 / 82%), rgb(243 243 243 / 82%)),
    url('../images/challenges-bg.jpg') center / cover;
}

.challenge-grid article p + p {
  margin-top: 0.5rem;
}

.firm-copy,
.page-content {
  max-width: 72ch;
  display: grid;
  gap: 1rem;
}

.firm-hero .container {
  max-width: 860px;
}

.firm-hero-shell h1 {
  font-size: clamp(2.75rem, 6vw, 5rem);
  margin-bottom: 0.6rem;
  line-height: 1.06;
  font-weight: 500;
}

.firm-subhead {
  max-width: 46ch;
  font-size: 0.98rem;
  color: #3f3f3f;
  letter-spacing: 0.01em;
}

.firm-hero-rule {
  margin-top: 1.5rem;
  max-width: 140px;
  border-top: 1px solid #9f9f9f;
}

.section-kicker {
  margin: 0 0 0.65rem;
  color: #686868;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 600;
}

.firm-narrow {
  max-width: 840px;
}

.firm-copy p + p {
  margin-top: 0.95rem;
}

.firm-pull {
  margin-top: 1.25rem;
  padding-left: 0.8rem;
  border-left: 2px solid #bdbdbd;
  color: #2f2f2f;
}

.firm-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
}

.firm-list li {
  color: var(--muted);
}

.firm-two-col {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.firm-card {
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 92%);
  padding: 1.15rem;
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.firm-card h3 {
  margin-bottom: 0;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #d9d9d9;
}

.firm-rows {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.firm-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.65rem;
  align-items: start;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 86%);
  padding: 0.75rem 0.85rem;
}

.row-index {
  margin: 0;
  font-family: 'Lora', serif;
  color: #797979;
  font-size: 1rem;
  line-height: 1.1;
}

.row-text {
  margin: 0;
  color: #3f3f3f;
}

.service-list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.service-list article {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.1rem;
}

.service-list ul {
  margin: 0;
  padding-left: 1.1rem;
}

.service-list li {
  margin: 0.45rem 0;
  color: var(--muted);
}

.how-help-shell {
  max-width: 900px;
}

.how-help-shell h1 {
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.how-help-subhead {
  max-width: 56ch;
  margin: 0;
  color: #4a4a4a;
}

.how-help-page .service-list {
  margin-top: 1.5rem;
  gap: 1.2rem;
}

.service-card {
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 90%);
  padding: 1rem 1rem 0.95rem;
}

.service-card .row-index {
  margin-bottom: 0.45rem;
}

.service-card h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.26rem, 2vw, 1.56rem);
}

.how-help-page .service-list article {
  border-bottom: 0;
  padding-bottom: 0;
}

.insights-bg {
  background:
    linear-gradient(rgb(243 243 243 / 95%), rgb(243 243 243 / 95%)),
    url('../images/hero1-bw.jpg') center / cover;
}

.insights-shell {
  max-width: 980px;
}

.insights-shell h1 {
  margin-bottom: 0.7rem;
  font-weight: 500;
}

.intro {
  max-width: 62ch;
  margin-bottom: 0;
}

.insights-shell .firm-hero-rule {
  margin-top: 1.1rem;
}

.insights-grid {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.insights-grid h2 {
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}

.insights-grid h2 a {
  color: inherit;
  text-decoration: none;
}

.insights-grid h2 a:hover {
  text-decoration: underline;
}

.meta {
  color: #6a6a6a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  margin-bottom: 0.55rem;
}

.insights-card {
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 88%);
  padding: 1rem;
}

.insights-card h3,
.insights-card h2 {
  font-size: 1.06rem;
  line-height: 1.3;
}

.engagement-form {
  display: grid;
  gap: 0.62rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.15rem;
}

.engagement-form label {
  font-size: 0.84rem;
  color: var(--text);
}

.engagement-form input,
.engagement-form textarea {
  width: 100%;
  border: 1px solid #bdbdbd;
  background: #fbfbfb;
  padding: 0.7rem;
  font: inherit;
  color: var(--text);
}

.engagement-form input:focus,
.engagement-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-status {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: #1e1e1e;
}



.site-footer {
  background: #1f1f1f;
  color: #ffffff;
  padding: 2.6rem 0 1.2rem;
  border-top: 1px solid #3a3a3a;
}

.site-footer.border-top {
  border-top: 1px solid #3a3a3a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.1fr;
  gap: 1.8rem;
  align-items: start;
}

.footer-col {
  display: grid;
  gap: 0.35rem;
}

.footer-heading {
  margin: 0 0 0.2rem;
  color: #ffffff;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.footer-mission {
  margin: 0;
  color: #ffffff;
  font-family: 'Lora', serif;
  font-size: clamp(0.92rem, 1.4vw, 1.06rem);
  line-height: 1.4;
}

.footer-logo {
  height: 46px;
  width: auto;
  display: block;
  margin-bottom: 0.55rem;
  background: #ffffff;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  filter: invert(1) grayscale(1) brightness(2.1);
}

.footer-col p,
.footer-col a,
.footer-col span {
  margin: 0;
  color: #ffffff;
  font-size: 0.8rem;
}

.footer-col a {
  text-decoration: none;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid #3a3a3a;
  display: grid;
  gap: 0.2rem;
}

.footer-bottom p {
  margin: 0;
  color: #ffffff;
  font-size: 0.76rem;
}

.footer-bottom-line {
  color: #ffffff;
}

@media (max-width: 980px) {
  .grid-two,
  .challenge-grid,
  .insights-grid,
  .firm-two-col {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 86px;
    right: 1.5rem;
    left: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 0.8rem;
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 4.8rem;
  }

  .home-hero {
    min-height: auto;
    padding-bottom: 4.6rem;
  }

  .btn-secondary {
    border-color: var(--line-strong);
    padding: 0.8rem 1.1rem;
    background: var(--surface);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .brand-logo {
    height: 35px;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 0.3rem;
  }
}

/* Header edge alignment */
.site-header .container.nav-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 0.5rem;
  padding-right: 1.2rem;
}

@media (max-width: 980px) {
  .site-header .container.nav-wrap {
    padding-left: 0.35rem;
    padding-right: 1rem;
  }
}

/* Ghost Koenig editor required width styles */
.kg-width-wide {
  max-width: min(1200px, calc(100% - 3rem));
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.kg-width-full {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
