@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Zilla+Slab:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap");

:root {
  --paper: #f5f2ec;
  --paper-deep: #ece7dd;
  --ink: #2c302e;
  --heading: #1f2322;
  --muted: #666b67;
  --accent: #365f56;
  --accent-dark: #2e5a50;
  --accent-hover: #2e6a60;
  --bronze: #8a7254;
  --services-bg: #394842;
  --line: #d3cec3;
  --white: #fffdf9;
  --shell: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --display: "Atkinson Hyperlegible Next", "Segoe UI", Arial, sans-serif;
  --body: "Zilla Slab", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: .65rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(211, 206, 195, .88);
  background: rgba(245, 242, 236, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

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

.wordmark {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.wordmark span {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.wordmark small {
  margin-top: .35rem;
  color: var(--muted);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.8rem, 1.8vw, 1.75rem);
}

nav a {
  font-size: .82rem;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent-dark);
}

.nav-contact {
  border-bottom: 1px solid currentColor;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(12rem, .65fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 7rem);
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.eyebrow,
.section-number,
.service-label {
  margin: 0;
  color: var(--bronze);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow-block {
  padding-top: .8rem;
}

.hero-location {
  max-width: 12rem;
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin-bottom: 2rem;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  letter-spacing: -.035em;
}

.lede {
  max-width: 45rem;
  margin-bottom: 2.3rem;
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.25rem, 1.8vw, 1.375rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .88rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--accent-dark);
  color: var(--white);
  font-size: .88rem;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.button-light {
  border-color: var(--white);
  background: var(--white);
  color: var(--accent-dark);
}

.button-light:hover {
  border-color: var(--white);
  background: transparent;
  color: var(--white);
}

.text-link {
  font-size: .88rem;
  text-underline-offset: .3rem;
}

.section {
  padding-block: clamp(5rem, 9vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 8vw, 8rem);
}

h2 {
  max-width: 15ch;
  margin: 1.1rem 0 0;
  font-size: clamp(2.35rem, 4.5vw, 4.35rem);
  letter-spacing: -.028em;
}

.prose {
  max-width: 42rem;
  font-family: var(--body);
  font-size: 1.375rem;
  line-height: 1.62;
}

.prose p {
  margin-bottom: 1.45rem;
}

.prose p:first-child {
  font-family: var(--body);
  font-size: 1.375rem;
  line-height: 1.48;
}

.proof-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-grid > div {
  min-height: 9rem;
  padding: 2rem 2rem 2rem 0;
  border-right: 1px solid var(--line);
}

.proof-grid > div:not(:first-child) {
  padding-left: 2rem;
}

.proof-grid > div:last-child {
  border-right: 0;
}

.proof-grid strong {
  display: block;
  margin-bottom: .5rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 400;
  line-height: 1.2;
}

.proof-grid span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.services {
  background: var(--services-bg);
  color: var(--white);
}

.services .section-number,
.services .service-label {
  color: #a8c7c1;
}

.section-heading {
  display: grid;
  grid-template-columns: .6fr 1.3fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 4rem;
}

.section-heading h2 {
  margin: 0;
}

.section-heading > p:last-child {
  max-width: 28rem;
  margin: 0;
  color: #c2c9c5;
}

.section-heading-light > p:last-child {
  color: var(--muted);
}

.service {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1.2fr) minmax(16rem, .8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: 3rem;
  border-top: 1px solid #55605c;
}

.service-primary {
  padding-block: 3.75rem;
  border-bottom: 1px solid #55605c;
}

.service-index {
  color: #93a09a;
  font-family: var(--display);
  font-style: italic;
}

.service h3 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  letter-spacing: -.02em;
}

.service p {
  max-width: 40rem;
  color: #d0d5d2;
}

.service-label {
  margin-bottom: .7rem;
}

.service ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service li {
  padding: .58rem 0;
  border-bottom: 1px solid #48524e;
  color: #e0e4e1;
  font-size: .9rem;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 3vw, 2.75rem);
  border: 1px solid #56615d;
  background: rgba(255, 255, 255, .035);
}

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

.service-card .service-body {
  flex: 1 1 auto;
}

.service-card ul {
  margin-top: 1rem;
}

.service-card li:last-child {
  border-bottom: 0;
}

.engagements {
  background: var(--paper);
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.engagement-grid article {
  padding: 2.5rem;
  border-right: 1px solid var(--line);
}

.engagement-grid article:first-child {
  padding-left: 0;
}

.engagement-grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.engagement-grid span {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--bronze);
  font-size: .72rem;
  letter-spacing: .1em;
}

.engagement-grid h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
}

.engagement-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.engagement-note {
  max-width: 48rem;
  margin: 2.5rem 0 0 auto;
  font-family: var(--body);
  font-size: 1.375rem;
  line-height: 1.5;
}

.values {
  background: var(--paper-deep);
}

.values-intro {
  max-width: 42rem;
  font-family: var(--body);
  font-size: 1.375rem;
  line-height: 1.45;
}

.principles {
  max-width: 42rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: point;
}

.principles li {
  position: relative;
  padding: 1.5rem 0 1.5rem 3.5rem;
  border-top: 1px solid var(--line);
  counter-increment: point;
}

.principles li::before {
  content: "0" counter(point);
  position: absolute;
  top: 1.65rem;
  left: 0;
  color: var(--bronze);
  font-size: .75rem;
}

.principles span {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
}

.principles p {
  margin: .4rem 0 0;
  color: var(--muted);
}

.contact {
  padding-block: clamp(5rem, 9vw, 8rem);
  background: var(--accent-dark);
  color: var(--white);
}

.contact .section-number {
  color: #b7d2cd;
}

.contact h2 {
  max-width: 14ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(3rem, 8vw, 8rem);
}

.contact-copy {
  max-width: 42rem;
}

.contact-copy > p {
  max-width: 40rem;
  font-family: var(--body);
  font-size: 1.375rem;
  line-height: 1.5;
  color: #e1ece9;
}

.contact-details {
  margin-top: 3rem;
}

.email-link {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 2rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  line-height: 1.2;
  text-underline-offset: .42rem;
  overflow-wrap: anywhere;
}

.contact-meta {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #6b8883;
  color: #d3e2df;
  font-size: .85rem;
}

.site-footer {
  padding-block: 2rem;
  background: #181c1a;
  color: #aeb5b0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  font-size: .75rem;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  text-underline-offset: .25rem;
}


.service p,
.engagement-grid p,
.principles p,
.contact-copy > p {
  font-family: var(--body);
}

nav,
.wordmark,
.wordmark small,
.eyebrow,
.section-number,
.service-label,
.hero-location,
.hero-actions,
.button,
.text-link,
.proof-grid span,
.service-index,
.service li,
.engagement-grid span,
.principles li::before,
.contact-meta,
.footer-grid {
  font-family: var(--sans);
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 8.5rem;
  }

  .nav-wrap {
    display: block;
    padding-block: 1rem;
  }

  nav {
    margin-top: .85rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: .5rem 1.1rem;
  }

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

  .proof-grid > div:nth-child(2) {
    border-right: 0;
  }

  .proof-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .proof-grid > div:nth-child(3) {
    padding-left: 0;
  }

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

  .engagement-grid article {
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .engagement-grid article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: auto;
    align-items: flex-start;
  }

  .wordmark small {
    display: none;
  }

  nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: .55rem 1rem;
  }

  nav a {
    font-size: .78rem;
  }

  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 2rem;
    padding-block: 4.5rem 5rem;
  }

  .eyebrow-block {
    padding: 0;
  }

  .hero-location {
    max-width: none;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.75rem);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-heading h2 {
    margin-top: 0;
  }

  .service-primary {
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
  }

  .service-primary ul {
    grid-column: 2;
  }

  .service-card {
    padding: 2rem;
  }

  .contact-meta {
    flex-direction: column;
    gap: .8rem;
  }

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

  .footer-grid p:nth-child(2) {
    display: none;
  }
}

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

  .proof-grid > div,
  .proof-grid > div:not(:first-child),
  .proof-grid > div:nth-child(3) {
    min-height: auto;
    padding: 1.5rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-grid > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 430px) {
  nav {
    margin-top: 1rem;
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 3.8rem);
  }

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

  .service-primary ul {
    grid-column: 1;
  }

  .service-primary .service-index {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  :root {
    --paper: #fff;
    --ink: #000;
    --line: #aaa;
  }

  body {
    font-size: 10pt;
  }

  .site-header nav,
  .hero-actions,
  .site-footer a {
    display: none;
  }

  .site-header,
  .section,
  .hero,
  .proof-strip {
    border-color: #aaa;
  }

  .site-header {
    position: static;
    background: #fff;
  }

  .hero-grid,
  .section,
  .contact {
    padding-block: 2rem;
  }

  .services,
  .contact {
    background: #fff;
    color: #000;
  }

  .services p,
  .service p,
  .service li,
  .contact-copy > p,
  .contact-meta {
    color: #222;
  }

  .service,
  .service li,
  .service-card,
  .contact-meta,
  .engagement-grid,
  .engagement-grid article {
    border-color: #aaa;
  }

  .service-card {
    background: #fff;
  }

  .section,
  .service,
  .engagement-grid article {
    break-inside: avoid;
  }

  a {
    text-decoration: none;
  }
}


/* --- Areas of practice: unified card treatment --- */
.service-primary {
  margin-bottom: 2rem;
  padding: clamp(2.5rem, 4vw, 3.75rem);
  border: 1px solid #56615d;
  background: rgba(255, 255, 255, .045);
}

.service-pair {
  padding-top: 0;
}

.service-primary.service-card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1.2fr) minmax(16rem, .8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.service-primary .service-body {
  flex: initial;
}

@media (max-width: 760px) {
  .service-primary.service-card {
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
  }

  .service-primary.service-card ul {
    grid-column: 2;
  }
}

@media (max-width: 430px) {
  .service-primary.service-card {
    grid-template-columns: 1fr;
  }

  .service-primary.service-card ul {
    grid-column: 1;
  }

  .service-primary.service-card .service-index {
    display: none;
  }
}
