:root {
  color-scheme: light;
  --ink: #182a24;
  --forest: #142d25;
  --paper: #f6f4ed;
  --white: #fffdf8;
  --muted: #4d5b51;
  --line: #d0d7cb;
  --accent: #ddefae;
  --edge: clamp(1.125rem, 4vw, 3.5rem);
  --display: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 system-ui, sans-serif;
}
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #526d32;
  outline-offset: 4px;
}
.site-header, main, .site-footer {
  width: min(100% - 2 * var(--edge), 81rem);
  margin-inline: auto;
}
.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.site-header { min-height: 5.25rem; }
.brand, .site-header nav a { text-decoration: none; }
.brand { font-size: .92rem; letter-spacing: .08em; white-space: nowrap; }
.brand strong { font-weight: 800; }
.brand span { color: #526d32; }
.site-header nav { display: flex; gap: clamp(.35rem, 2vw, 1.5rem); }
.site-header nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: .35rem;
  font-size: .92rem;
}
.site-header nav a:hover { text-decoration: underline; }
.hero {
  display: flex;
  align-items: center;
  min-height: clamp(25rem, 39vw, 34rem);
  background: var(--forest);
  color: var(--white);
}
.hero-copy {
  width: 100%;
  padding: clamp(2.4rem, 5.4vw, 5rem);
}
.hero h1 { max-width: 18ch; }
.hero small {
  display: block;
  color: var(--accent);
  font-size: .86rem;
  line-height: 1.4;
  letter-spacing: .075em;
  font-weight: 650;
}
h1, h2 { margin: 0; font: 400 1em/1.05 var(--display); letter-spacing: -.035em; }
h1 { font-size: clamp(2.6rem, 5.1vw, 5.3rem); text-wrap: balance; }
.hero h1 { margin-top: 1.35rem; }
.hero p {
  max-width: 37rem;
  margin: 1.4rem 0 1.8rem;
  color: #e0e8de;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: .35rem;
  background: var(--accent);
  color: #152a20;
  font-weight: 750;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.button:hover {
  background: #eff7d2;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px #0003;
}
.button:active { transform: translateY(1px); }
.hero .button:focus-visible { outline-color: var(--white); }
.content-block {
  width: min(100%, 69rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 7vw, 6rem);
}
h2 { font-size: clamp(2.15rem, 4vw, 3.85rem); }
.lead {
  max-width: 49rem;
  margin: 1.2rem 0 2rem;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.grid > div {
  padding: 1.5rem clamp(1rem, 2.7vw, 2rem);
  border-top: 2px solid #758d61;
  background: var(--white);
}
.grid strong { font-size: 1.18rem; }
.grid p { margin-bottom: .5rem; }
.grid a { font-weight: 650; }
.implementation { margin: 1.35rem 0 0; color: var(--muted); }
#contact, #services { scroll-margin-top: 1rem; }
.contact {
  padding: clamp(1.25rem, 5vw, 4rem);
  background: #e9eee1;
  border-top: 2px solid #819471;
}
.contact h2 { text-align: center; margin-bottom: 1.25rem; }
.form-shell { max-width: 40rem; margin: 0 auto; }
.contact:target h2 { animation: contact-highlight .4s ease both; }
.card {
  display: grid;
  gap: .5rem;
  max-width: 52rem;
  margin-top: 1.65rem;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid #758d61;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.card strong { font: 400 clamp(1.5rem, 3vw, 2.35rem)/1.16 var(--display); }
.card span { color: var(--muted); }
.card:hover { background: #e9eee1; border-color: #758d61; }
.case-article { max-width: 54rem; }
.case-article h1 { margin: 1.25rem 0 2rem; font-size: clamp(2.55rem, 5vw, 4.75rem); }
.case-article p { font-size: 1.13rem; margin: 1.35em 0; max-width: 65ch; }
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 5vw, 4rem);
  min-height: 5rem;
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .08em;
}
@keyframes contact-highlight {
  from { transform: translateY(.25rem); opacity: .75; }
  to { transform: none; opacity: 1; }
}
@media (max-width: 760px) {
  .site-header { min-height: 4.2rem; }
  .hero { min-height: 0; }
  .hero-copy { padding: clamp(1.25rem, 6vw, 3rem); }
  .grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 380px) {
  .site-header nav { gap: .15rem; }
  .brand { font-size: .83rem; }
  .site-header nav a { font-size: .85rem; }
  .hero h1 { font-size: 2.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .card, .contact:target h2 { transition: none; animation: none; }
  .button:hover, .button:active { transform: none; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.5rem;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.5rem;
}
.service-cards .card { margin: 0; }
.service-cards .card strong { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.card-compact { padding: 1rem 1.2rem; }
.card-compact strong { font-size: 1.4rem; }
.more-services { margin-top: 1.25rem; }
.more-services summary {
  width: fit-content;
  min-height: 44px;
  align-content: center;
  cursor: pointer;
  font-weight: 650;
}
.more-services summary:focus-visible { outline: 3px solid #526d32; }
.featured-cases { padding-top: 0; }
.contact-intro, .form-status {
  max-width: 40rem;
  margin: .75rem auto 1rem;
}
.contact-intro { text-align: center; }
.form-status { color: var(--muted); }
.case-cta {
  margin-top: .5rem;
  background: var(--forest);
  color: var(--white);
}
.case-cta:hover { background: var(--ink); }
@media (max-width: 760px) {
  .service-cards { grid-template-columns: 1fr; }
}

.founder {
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) minmax(0, 40rem);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.founder-portrait {
  display: block;
  width: 100%;
  height: auto;
}
.founder-copy p { margin: 1rem 0 0; }
.founder-copy .founder-role {
  margin-top: .55rem;
  color: var(--muted);
}
@media (max-width: 600px) {
  .featured-cases { padding-bottom: 1.5rem; }
  .founder {
    grid-template-columns: clamp(4.75rem, 24vw, 6.25rem) minmax(0, 1fr);
    gap: .9rem 1rem;
    padding-block: 1.5rem;
  }
  .founder-copy { display: contents; }
  .founder-portrait {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 24%;
  }
  .founder-identity h2 { font-size: clamp(1.55rem, 6.7vw, 2rem); }
  .founder-copy .founder-role { margin-top: .35rem; }
  .founder-bio {
    grid-column: 1 / -1;
    line-height: 1.55;
  }
  .founder-bio p { margin-top: .8rem; }
  .founder-bio p:first-child { margin-top: 0; }
}
