:root {
  color-scheme: light;
  --ivory: #f7f3ea;
  --ivory-2: #fbf8f0;
  --paper: #fffdf8;
  --sand: #d9c7a6;
  --taupe: #a99477;
  --gold: #c9a46a;
  --graphite: #1c1c1c;
  --ink: #202329;
  --muted: #6f716d;
  --line: rgba(32, 35, 41, 0.13);
  --cool: #536268;
  --shadow: 0 24px 70px rgba(20, 20, 20, 0.11);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(247, 243, 234, 0.96)),
    var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: geometricPrecision;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: 84px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: var(--ink);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid rgba(32, 35, 41, 0.1);
  box-shadow: 0 14px 34px rgba(26, 24, 21, 0.07);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo-img {
  display: block;
  width: clamp(128px, 10vw, 150px);
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(201, 164, 106, 0.46);
  background: rgba(255, 253, 248, 0.72);
}

.brand-mark svg {
  width: 32px;
  height: 32px;
  overflow: visible;
}

.brand-mark path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark .gold {
  stroke: var(--gold);
}

.brand-copy {
  display: grid;
  gap: 1px;
  text-transform: uppercase;
}

.brand-copy span:first-child {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1;
  text-transform: none;
}

.brand-copy span:last-child {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3.2vw, 44px);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
}

.primary-nav a::after {
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.header-cta {
  padding: 0 20px;
  background: var(--graphite);
  color: var(--paper);
  box-shadow: 0 16px 26px rgba(20, 20, 20, 0.12);
}

.header-cta svg,
.button svg {
  width: 18px;
  height: 18px;
}

.header-cta path,
.button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

body.nav-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

body.nav-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(610px, 78svh, 720px);
  padding: 118px 0 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.95) 0%, rgba(255, 253, 248, 0.91) 37%, rgba(255, 253, 248, 0.18) 74%),
    linear-gradient(180deg, rgba(247, 243, 234, 0.2), rgba(247, 243, 234, 0.92));
}

.hero::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(32, 35, 41, 0.1);
  content: "";
}

.hero-media {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(62vw, 920px);
  height: min(58vw, 600px);
  background-image: url("assets/shepherd-hero.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.92) contrast(1.02);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ivory-2) 0%, rgba(255, 253, 248, 0) 32%),
    linear-gradient(180deg, rgba(255, 253, 248, 0) 62%, var(--ivory) 100%);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin-left: max(24px, calc((100vw - var(--max)) / 2));
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 780;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 42px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  max-width: 940px;
  font-size: clamp(4rem, 6.2vw, 5.9rem);
}

.hero-lede {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--taupe);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: 1.05;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: #383b3a;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-width: 228px;
  padding: 0 22px;
}

.button-dark {
  background: var(--graphite);
  color: var(--paper);
  box-shadow: 0 18px 38px rgba(20, 20, 20, 0.13);
}

.button-dark:hover,
.button-dark:focus-visible {
  background: #050505;
}

.button-light {
  border: 1px solid rgba(32, 35, 41, 0.18);
  background: rgba(255, 253, 248, 0.7);
  color: var(--ink);
}

.button-light:hover,
.button-light:focus-visible {
  border-color: rgba(201, 164, 106, 0.58);
  color: #111;
}

.credibility-strip {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 86px;
  align-items: center;
}

.credibility-grid span {
  display: grid;
  min-height: 86px;
  align-items: center;
  border-left: 1px solid var(--line);
  padding: 0 18px;
  color: #6a665e;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  line-height: 1.45;
  text-transform: uppercase;
}

.credibility-grid span:last-child {
  border-right: 1px solid var(--line);
}

.section {
  padding: clamp(76px, 9vw, 126px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.52fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 62px);
}

.section-heading.compact {
  display: block;
  margin-bottom: 0;
}

.section-heading h2,
.section-dark h2,
.about-panel h2,
.contact-layout h2 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
}

.section-heading p:not(.eyebrow),
.contact-layout > div > p,
.about-copy p,
.expertise-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.section-clients {
  background: rgba(255, 253, 248, 0.52);
}

.clients-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.client-card {
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 24px;
  background: rgba(255, 253, 248, 0.78);
}

.client-card span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.client-card h3 {
  font-size: 1.55rem;
  line-height: 1.12;
}

.client-card p {
  margin: 18px 0 0;
  color: #575955;
  font-size: 0.95rem;
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 286px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 24px 26px;
  background: rgba(255, 253, 248, 0.62);
  box-shadow: 0 18px 50px rgba(32, 35, 41, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover {
  border-color: rgba(201, 164, 106, 0.44);
  background: rgba(255, 253, 248, 0.9);
  transform: translateY(-4px);
}

.service-card-wide {
  grid-column: span 2;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 30px;
  border: 1px solid rgba(201, 164, 106, 0.5);
  border-radius: 50%;
  color: var(--gold);
}

.card-icon svg {
  width: 29px;
  height: 29px;
}

.card-icon path,
.card-icon circle,
.card-icon rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.process-list h3 {
  font-size: 1.45rem;
  line-height: 1.18;
}

.service-card p {
  margin: 18px 0 0;
  color: #575955;
  font-size: 0.95rem;
  line-height: 1.65;
}

.section-dark {
  background:
    linear-gradient(135deg, rgba(201, 164, 106, 0.08), rgba(83, 98, 104, 0.08)),
    var(--graphite);
  color: var(--paper);
}

.section-dark h2,
.section-dark .eyebrow,
.section-dark p {
  color: var(--paper);
}

.section-dark .eyebrow {
  color: var(--gold);
}

.expertise-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.68fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}

.expertise-copy {
  display: grid;
  gap: 28px;
}

.expertise-copy p {
  color: rgba(255, 253, 248, 0.74);
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-list span {
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 999px;
  padding: 8px 13px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.72rem;
  font-weight: 730;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.approach-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.64fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
}

.process-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.process-list article {
  display: grid;
  grid-template-columns: 72px minmax(160px, 0.35fr) minmax(220px, 1fr);
  gap: 22px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
}

.process-list span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-engagements {
  background:
    linear-gradient(180deg, rgba(83, 98, 104, 0.08), rgba(255, 253, 248, 0)),
    rgba(255, 253, 248, 0.54);
}

.engagement-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.engagement-list a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.46fr) minmax(280px, 1fr);
  gap: 30px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 24px 52px 24px 0;
}

.engagement-list a::after {
  position: absolute;
  right: 4px;
  top: 50%;
  color: var(--gold);
  content: ">";
  font-size: 1.4rem;
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.engagement-list a:hover::after {
  transform: translate(5px, -50%);
}

.engagement-list span {
  font-family: var(--serif);
  font-size: 1.38rem;
  line-height: 1.25;
}

.engagement-list small {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.section-about {
  padding-top: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(320px, 0.62fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}

.about-panel {
  min-height: 460px;
  padding: clamp(38px, 5vw, 58px);
  border-radius: 6px;
  background:
    linear-gradient(rgba(28, 28, 28, 0.74), rgba(28, 28, 28, 0.54)),
    url("assets/shepherd-hero.png");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.about-panel h2 {
  color: var(--paper);
}

.about-copy {
  display: grid;
  gap: 24px;
}

.contact-section {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 0.6fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: start;
}

.contact-layout > div > p {
  max-width: 560px;
  margin-top: 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
  background: rgba(247, 243, 234, 0.46);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: #4e514d;
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(32, 35, 41, 0.16);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input,
.contact-form select {
  height: 48px;
  padding: 0 13px;
}

.contact-form textarea {
  min-height: 138px;
  resize: vertical;
  padding: 12px 13px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(201, 164, 106, 0.78);
  box-shadow: 0 0 0 4px rgba(201, 164, 106, 0.12);
}

.contact-form .button {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--cool);
  font-size: 0.9rem;
}

.site-footer {
  padding: 34px 0;
  background: var(--graphite);
  color: var(--paper);
}

.footer-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.brand-footer .brand-mark {
  border-color: rgba(201, 164, 106, 0.48);
  background: rgba(255, 253, 248, 0.04);
}

.brand-footer .brand-logo-img {
  width: clamp(170px, 14vw, 210px);
  border-radius: 2px;
}

.brand-footer .brand-mark path {
  stroke: var(--paper);
}

.brand-footer .brand-mark .gold {
  stroke: var(--gold);
}

.brand-footer .brand-copy span:first-child {
  color: var(--paper);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 253, 248, 0.7);
  font-size: 0.94rem;
}

.site-footer a:last-child {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .primary-nav {
    position: fixed;
    inset: 84px 18px auto;
    display: none;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  body.nav-open .primary-nav {
    display: flex;
  }

  .primary-nav a {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

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

  .header-cta {
    justify-self: end;
  }

  .menu-toggle {
    display: block;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .expertise-layout,
  .approach-layout,
  .about-layout,
  .contact-layout,
  .clients-layout {
    grid-template-columns: 1fr;
  }

  .client-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-list article {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .process-list p {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, var(--max));
  }

  .site-header {
    min-height: 74px;
    padding: 12px 16px;
    gap: 12px;
  }

  .brand-copy span:first-child {
    font-size: 1rem;
  }

  .brand-copy span:last-child {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .brand-logo-img {
    width: 132px;
  }

  .header-cta {
    display: none;
  }

  .primary-nav {
    inset: 76px 12px auto;
  }

  .hero {
    min-height: 700px;
    padding: 94px 0 46px;
    align-items: start;
  }

  .hero-media {
    right: -44%;
    bottom: 0;
    width: 128vw;
    height: 42vh;
    opacity: 0.96;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, var(--ivory-2) 0%, rgba(255, 253, 248, 0.58) 24%, rgba(255, 253, 248, 0) 54%),
      linear-gradient(90deg, var(--ivory-2) 0%, rgba(255, 253, 248, 0) 38%),
      linear-gradient(180deg, rgba(255, 253, 248, 0) 68%, var(--ivory) 100%);
  }

  .hero-inner {
    margin-left: auto;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.7rem);
  }

  .hero-lede {
    margin-top: 18px;
    font-size: clamp(1.7rem, 8vw, 2.7rem);
  }

  .hero-copy {
    max-width: 92%;
    margin-top: 18px;
    font-size: 0.98rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 360px);
    margin-top: 26px;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .credibility-grid {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .credibility-grid span {
    min-height: auto;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 13px 0;
  }

  .credibility-grid span:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .section-dark h2,
  .about-panel h2,
  .contact-layout h2 {
    font-size: clamp(2.1rem, 10vw, 3.4rem);
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .client-grid {
    grid-template-columns: 1fr;
  }

  .client-card {
    min-height: 230px;
  }

  .client-card span {
    margin-bottom: 30px;
  }

  .service-card,
  .service-card-wide {
    grid-column: auto;
    min-height: 248px;
  }

  .process-list article,
  .engagement-list a {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-list p {
    grid-column: auto;
  }

  .engagement-list a {
    padding-right: 34px;
  }

  .about-panel {
    min-height: 380px;
    padding: 30px;
  }

  .contact-form {
    padding: 20px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
