:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #5c6862;
  --surface: #fbfcf9;
  --panel: #ffffff;
  --green: #23483c;
  --teal: #3f7c78;
  --blue: #426b85;
  --line: #dfe6e1;
  --shadow: 0 18px 48px rgba(23, 33, 29, 0.12);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(238, 242, 239, 0.72), rgba(251, 252, 249, 0) 260px),
    var(--surface);
  color: var(--ink);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(198, 141, 49, 0.55);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-150%);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  padding: 0.625rem 0.875rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(223, 230, 225, 0.9);
  background: rgba(251, 252, 249, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand,
.site-nav,
.actions,
.footer-inner {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(35, 72, 60, 0.22);
  border-radius: var(--radius);
  background: #e8f1ed;
  color: var(--green);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.site-nav {
  gap: 1rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.site-nav a {
  border-radius: 999px;
  padding: 0.45rem 0.2rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--green);
}

.section {
  padding: 72px 0;
}

section[id] {
  scroll-margin-top: 86px;
}

.work-intro {
  padding-top: 58px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.08;
}

h1 {
  max-width: 28ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.55rem);
  letter-spacing: 0;
}

h2 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.55rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.06rem;
  letter-spacing: 0;
}

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

.nowrap {
  white-space: nowrap;
}

.actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.78rem 1.05rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--green);
  color: #fff;
}

.button-primary:hover {
  background: #1c3a31;
}

.button-secondary {
  border-color: rgba(35, 72, 60, 0.22);
  background: #fff;
  color: var(--green);
}

.button-secondary:hover {
  border-color: rgba(63, 124, 120, 0.5);
}

.poolkit {
  border-block: 1px solid var(--line);
  background: #ffffff;
}

.poolkit .split {
  align-items: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.section-copy {
  max-width: 630px;
}

.section-copy p,
.section-heading p {
  font-size: 1.04rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--green);
  font-weight: 760;
  text-decoration-color: rgba(35, 72, 60, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover {
  color: var(--teal);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  max-width: 23ch;
}

#work .section-heading {
  max-width: 920px;
  margin-bottom: 0;
}

#work .section-heading h1 {
  max-width: 28ch;
}

.work-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(158px, auto);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: 2rem;
}

.work-actions {
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 0;
}

.work-actions .button {
  width: 100%;
}

.split h2 {
  max-width: 16ch;
}

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

.service-card {
  grid-column: span 3;
  min-height: 144px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.15rem;
}

.service-card h3 {
  max-width: 22rem;
}

.service-card p {
  margin-bottom: 0;
}

.service-card-wide {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 1.32fr);
  gap: 0.9rem clamp(1rem, 3vw, 2rem);
  align-items: start;
  border-color: rgba(198, 141, 49, 0.38);
  background: #fffaf1;
}

.service-card-wide-copy {
  display: contents;
}

.service-detail-list {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem 1rem;
  margin: 0;
  padding: 0;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.32;
  list-style: none;
}

.service-detail-list li {
  position: relative;
  padding-top: 0.7rem;
}

.service-detail-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background: rgba(198, 141, 49, 0.52);
  content: "";
}

@media (min-width: 1040px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-card {
    grid-column: auto;
  }

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

.contact {
  background: var(--green);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.contact .eyebrow,
.contact h2,
.contact p {
  color: #fff;
}

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

.contact p {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.78);
}

.contact .button-primary {
  border-color: rgba(255, 255, 255, 0.28);
  background: #fff;
  color: var(--green);
}

.contact .button-primary:hover {
  background: #f4f7f5;
}

.contact-button {
  min-width: 158px;
}

.site-footer {
  background: #13201b;
  color: rgba(255, 255, 255, 0.72);
  padding: 26px 0;
}

.footer-inner {
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.36);
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .split,
  .work-header,
  .contact-panel,
  .service-card-wide {
    grid-template-columns: 1fr;
  }

  .work-intro {
    padding-top: 40px;
  }

  .work-actions {
    align-items: stretch;
    flex-direction: row;
    justify-content: flex-start;
  }

  .work-actions .button {
    width: auto;
  }

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

  .service-card,
  .service-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 2.1rem;
    height: 2.1rem;
  }

  .site-nav {
    gap: 0.75rem;
    font-size: 0.88rem;
  }

  .section {
    padding: 54px 0;
  }

  .work-intro {
    padding-top: 24px;
  }

  h1 {
    max-width: none;
    font-size: 1.85rem;
  }

  h2 {
    max-width: 15ch;
  }

  .actions {
    align-items: stretch;
    margin-top: 1.25rem;
  }

  .work-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
    width: 100%;
  }

  .work-actions .button {
    min-width: 0;
    padding-inline: 0.7rem;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .poolkit {
    padding-top: 30px;
  }

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

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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