﻿:root {
  --green: #00702d;
  --green-dark: #005522;
  --ink: #161616;
  --muted: #5e5e5c;
  --paper: #f8f8f8;
  --white: #fff;
  --sage: #dde9e2;
  --line: #cbd8d0;
  --section-space: 100px;
  --page-gutter: clamp(32px, 2.6vw, 50px);
  --content-space: 68px;
  --layout-gap: 32px;
  --text-sm: clamp(.875rem, .84rem + .16vw, 1rem);
  --text-base: clamp(1rem, .94rem + .24vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.04rem + .34vw, 1.375rem);
  --heading-1: clamp(2.4rem, 1.85rem + 2.45vw, 4.75rem);
  --heading-2: clamp(2rem, 1.7rem + 1.35vw, 3.25rem);
  --heading-3: clamp(1.25rem, 1.15rem + .45vw, 1.625rem);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.55;
}

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

img {
  max-width: 100%;
}

video,
iframe,
svg {
  max-width: 100%;
}

.wp-site-blocks,
.wp-site-blocks > *,
main {
  min-width: 0;
  max-width: 100%;
}

.hero > *,
.services > *,
.site-footer > *,
.page-hero > *,
.section-intro > *,
.detail-layout > *,
.detail-aside dl div > * {
  min-width: 0;
}

button, input, textarea {
  font: inherit;
}

h1, h2, h3, p, a, li, th, td, label, dt, dd {
  overflow-wrap: break-word;
}

h1, h2, h3 {
  hyphens: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 99px;
  background: var(--ink);
  color: white;
  transition: top .2s;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-gutter);
  background: var(--paper);
  position: relative;
  z-index: 10;
}

.brand img {
  display: block;
  width: 229px;
  height: 28px;
}

.main-nav {
  display: flex;
  gap: clamp(22px, 2.5vw, 48px);
  align-items: center;
  font-size: clamp(15px, .85vw, 18px);
}

.main-nav > a:not(.nav-contact) {
  transition: color .2s ease;
}

.main-nav > a:not(.nav-contact):hover {
  color: var(--green);
}

.main-nav > a[aria-current="page"]:not(.nav-contact) {
  color: var(--green);
  font-weight: 600;
}

.nav-contact, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.nav-contact {
  padding: 9px 12px 9px 14px;
  background: var(--green);
  color: white;
}

.nav-contact img {
  width: 24px;
  height: 24px;
}

.nav-contact:hover, .button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px #00702d33;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px;
  transition: .2s;
}

.hero {
  min-height: 850px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-left: var(--page-gutter);
}

.hero-copy {
  align-self: center;
  max-width: 774px;
  padding-right: 36px;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: -.04em;
}

h1 {
  font-size: var(--heading-1);
  line-height: 1.08;
}

.hero-copy h1 {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-copy > p {
  max-width: 752px;
  font-size: var(--text-base);
  line-height: 1.5;
  margin: 22px 0 20px;
}

.button-row {
  display: flex;
  gap: 14px;
}

.button {
  min-height: 40px;
  padding: 9px 16px;
  font-size: clamp(.95rem, .92rem + .12vw, 1.05rem);
  line-height: 1.25;
  text-align: center;
}

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

.button-outline {
  color: var(--green);
  border: 2px solid var(--green);
}

.button-outline:hover {
  background: #e5f1e9;
}

.button-light {
  color: var(--green);
  background: white;
}

.button-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px #003f1b33;
}

.hero-image {
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 850px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.services {
  min-height: 658px;
  background: var(--sage);
  padding: var(--section-space) var(--page-gutter);
  display: grid;
  grid-template-columns: minmax(350px, 1fr) minmax(570px, 1.14fr);
  gap: 50px;
}

h2 {
  font-size: var(--heading-2);
  line-height: 1.12;
}

.services-copy {
  max-width: 887px;
}

.services-copy > p {
  color: #5e5e5c;
  font-size: var(--text-base);
  line-height: 1.55;
  margin: 31px 0 0;
}

.services-copy > p + p {
  margin-top: 23px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-content: start;
}

.service-card {
  min-height: 219px;
  background: white;
  border-radius: 12px;
  padding: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px #164d2b19;
}

.service-icon {
  position: relative;
  overflow: hidden;
  width: 69px;
  height: 69px;
  margin-bottom: 9px;
}

.service-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: #00a64370;
  clip-path: polygon(39% 2%, 61% 2%, 92% 25%, 100% 56%, 82% 94%, 18% 94%, 0 56%, 8% 25%);
}

.service-icon img {
  position: absolute;
  z-index: 1;
  inset: 18px;
  width: 33px;
  height: 33px;
  object-fit: contain;
}

.service-card h3 {
  font-size: clamp(1.125rem, 1.04rem + .3vw, 1.35rem);
  line-height: 1.18;
  letter-spacing: -.03em;
}

.service-card p {
  font-size: clamp(.9375rem, .9rem + .14vw, 1.05rem);
  line-height: 1.45;
  margin: 13px 0 0;
}

.projects {
  padding: var(--section-space) var(--page-gutter) 64px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.more-link {
  border: 2px solid var(--green);
  color: var(--green);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: var(--text-sm);
  line-height: 1.3;
  text-align: center;
  transition: .2s;
}

.more-link:hover {
  color: white;
  background: var(--green);
}

.project-grid {
  width: 100%;
  max-width: 100%;
  margin-top: 68px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  overflow-x: clip;
}

.project {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  border: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 3px 4px #0004;
  background: #ddd;
}

.project img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease, filter .4s ease;
}

.project:hover img {
  transform: scale(1.06);
  filter: brightness(.84);
}

.site-footer {
  min-height: 627px;
  padding: 75px var(--page-gutter) 62px;
  color: #f8f8f8;
  background: var(--green);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 40px;
}

.footer-info {
  align-self: start;
}

.footer-logo {
  width: 204px;
  height: 23px;
  display: block;
  margin-bottom: 21px;
}

.footer-info > p {
  margin: 0 0 44px;
  font-size: var(--text-base);
  line-height: 1.5;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-base);
  line-height: 1.4;
  margin: 20px 0;
  width: max-content;
  max-width: 100%;
}

.contact-line img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.contact-line:first-of-type img {
  object-position: 0;
  filter: none;
}

.map-wrap {
  grid-column: 2;
  width: 100%;
  max-width: 574px;
  height: 310px;
  justify-self: end;
  overflow: hidden;
}

.map-wrap, .map-large {
  position: relative;
}

.map-wrap iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

.external-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: var(--ink);
  background: var(--sage);
}

.external-placeholder strong {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: var(--heading-3);
  line-height: 1.2;
}

.external-placeholder span {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.external-placeholder button {
  margin-top: 8px;
  border: 2px solid var(--green);
  border-radius: 99px;
  padding: 7px 13px;
  color: var(--green);
  background: transparent;
  cursor: pointer;
}

.external-placeholder button:hover {
  color: white;
  background: var(--green);
}

.footer-legal {
  grid-column: 1/-1;
  grid-row: 3;
  align-self: end;
  border-top: 2px solid #f8f8f8;
  border-bottom: 2px solid #f8f8f8;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 21px;
  padding: 11px;
  font-size: var(--text-sm);
  line-height: 1.4;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.lightbox {
  padding: 0;
  width: min(950px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: visible;
  background: transparent;
  border: 0;
  color: white;
}

.lightbox::backdrop {
  background: #000c;
}

.lightbox figure {
  margin: 0;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-height: calc(100dvh - 32px);
}

.lightbox figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 32px);
  object-fit: contain;
}

.lightbox figcaption {
  display: none;
}

.lightbox figcaption:empty {
  display: none;
}

.lightbox-close {
  position: absolute;
  z-index: 3;
  right: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #fff8;
  border-radius: 50%;
  background: #0009;
  color: white;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--green);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid #fff8;
  border-radius: 50%;
  color: white;
  background: #0007;
  font-size: 24px;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-nav:hover {
  background: var(--green);
}

.lightbox-source {
  cursor: zoom-in;
}

.page-main {
  overflow: hidden;
}

.page-hero {
  min-height: 530px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.page-hero-copy {
  align-self: center;
  padding: 80px clamp(32px, 5vw, 96px) 80px clamp(32px, 2.6vw, 50px);
}

.eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: var(--text-sm);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 760px;
  font-size: var(--heading-1);
  line-height: 1.04;
}

.page-hero p {
  max-width: 650px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.55;
}

.page-hero .button-row {
  margin-top: 30px;
}

.page-hero-media {
  min-height: 530px;
  overflow: hidden;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.page-hero-media.position-left img {
  object-position: left center;
}

.content-section {
  padding: var(--section-space) clamp(32px, 5vw, 96px);
}

.content-section.sage {
  background: var(--sage);
}

.content-section.green {
  color: white;
  background: var(--green);
}

.content-section.narrow {
  padding-left: max(clamp(32px, 5vw, 96px), calc((100vw - 1040px)/2));
  padding-right: max(clamp(32px, 5vw, 96px), calc((100vw - 1040px)/2));
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(360px, 1fr);
  gap: clamp(40px, 8vw, 130px);
  margin-bottom: 64px;
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

.green .section-intro p {
  color: #e2f0e7;
}

.prose {
  max-width: 820px;
}

.prose h2 {
  margin: 52px 0 18px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 32px 0 12px;
  font-size: var(--heading-3);
  line-height: 1.2;
}

.prose p, .prose li {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.7;
}

.prose ul {
  padding-left: 20px;
}

.prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #aebfb5;
  border-bottom: 1px solid #aebfb5;
}

.metric {
  padding: 32px 24px;
  border-right: 1px solid #aebfb5;
}

.metric:first-child {
  padding-left: 0;
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--green);
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(2.5rem, 2.15rem + 1.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.metric span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.value-grid, .process-grid, .news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card, .process-card {
  min-height: 240px;
  padding: 28px;
  border-radius: 12px;
  background: white;
}

.value-card .number, .process-card .number {
  display: block;
  margin-bottom: 38px;
  color: var(--green);
  font-size: var(--text-sm);
  font-weight: 700;
}

.value-card h3, .process-card h3 {
  font-size: var(--heading-3);
  line-height: 1.2;
}

.value-card p, .process-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.55;
}

.process-grid {
  counter-reset: steps;
}

.process-card {
  border: 1px solid var(--line);
  background: transparent;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 55px clamp(32px, 5vw, 96px);
  color: white;
  background: var(--green);
}

.cta-band h2 {
  max-width: 720px;
  font-size: var(--heading-2);
  line-height: 1.08;
}

.cta-band p {
  max-width: 560px;
  margin: 12px 0 0;
  color: #e2f0e7;
  font-size: var(--text-base);
  line-height: 1.55;
}

.cta-band .button {
  flex: none;
}

.career-list {
  display: grid;
  gap: 16px;
}

.career-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid #aebfb5;
}

.career-item:last-child {
  border-bottom: 1px solid #aebfb5;
}

.career-item h3 {
  font-size: var(--heading-3);
  line-height: 1.2;
}

.career-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.5;
}

.career-tag {
  color: var(--green);
  font-size: var(--text-sm);
  font-weight: 700;
}

.portfolio-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: end;
  gap: 60px;
  padding: 90px clamp(32px, 5vw, 96px) 74px;
  background: var(--sage);
}

.portfolio-hero h1 {
  max-width: 900px;
  font-size: clamp(4.25rem, 3rem + 5.8vw, 9rem);
  line-height: .9;
  letter-spacing: -.055em;
}

.portfolio-intro {
  max-width: 520px;
  padding-bottom: 10px;
}

.portfolio-intro p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.portfolio-intro a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--green);
  padding-bottom: 6px;
  color: var(--green);
  font-weight: 600;
}

.portfolio-intro a span {
  font-size: 22px;
  transition: transform .2s;
}

.portfolio-intro a:hover span {
  transform: translateY(4px);
}

.gallery-section {
  padding: 70px clamp(20px, 2.6vw, 50px) var(--section-space);
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 0 0 42px;
}

.gallery-heading h2 {
  font-size: var(--heading-2);
  line-height: 1.1;
}

.gallery-heading p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.5;
}

.image-gallery {
  columns: 4 260px;
  column-gap: clamp(12px, 1.4vw, 24px);
}

.gallery-item {
  width: 100%;
  margin: 0 0 clamp(12px, 1.4vw, 24px);
  border: 0;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  cursor: zoom-in;
  background: #dde2df;
  box-shadow: 0 3px 8px #0002;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease, filter .4s ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
  filter: brightness(.88);
}

.news-card {
  overflow: hidden;
  border-radius: 12px;
  background: white;
}

.news-card-media {
  height: 250px;
  overflow: hidden;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s;
}

.news-card:hover .news-card-media img {
  transform: scale(1.04);
}

.news-card-copy {
  padding: 24px;
}

.news-card .eyebrow {
  margin-bottom: 12px;
  font-size: var(--text-sm);
}

.news-card h3 {
  font-size: var(--heading-3);
  line-height: 1.18;
}

.news-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.55;
}

.feature-story {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.feature-story img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.feature-copy {
  align-self: center;
  padding: clamp(32px, 5vw, 72px);
}

.feature-copy h2 {
  font-size: var(--heading-2);
  line-height: 1.1;
}

.feature-copy p {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.65;
}

.contact-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(50px, 9vw, 140px);
}

.contact-details h2 {
  margin-bottom: 30px;
}

.contact-details p {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.65;
}

.contact-details a {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 18px 0;
  color: var(--green);
  font-size: var(--text-lg);
  line-height: 1.4;
  font-weight: 600;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1/-1;
}

.field label {
  font-size: var(--text-sm);
  line-height: 1.35;
  font-weight: 600;
}

.field input, .field textarea {
  width: 100%;
  border: 1px solid #aebfb5;
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: white;
  outline: none;
}

.field input:focus, .field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #00702d1a;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-note {
  grid-column: 1/-1;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.contact-form .button {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.map-large {
  height: 480px;
}

.map-large iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.legal-hero {
  padding: 90px max(clamp(32px, 5vw, 96px), calc((100vw - 1040px)/2)) 55px;
  background: var(--sage);
}

.legal-hero h1 {
  font-size: var(--heading-1);
  line-height: 1.05;
}

.legal-hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.55;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: var(--text-base);
  line-height: 1.55;
}

.data-table th {
  width: 36%;
  padding-right: 24px;
  color: var(--muted);
  font-weight: 500;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.cookie-option:last-of-type {
  border-bottom: 1px solid var(--line);
}

.cookie-option h3 {
  font-size: var(--heading-3);
  line-height: 1.2;
}

.cookie-option p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.55;
}

.switch {
  position: relative;
  flex: none;
  width: 50px;
  height: 28px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #9da8a1;
  cursor: pointer;
  transition: .2s;
}

.switch span::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  transition: .2s;
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::after {
  transform: translateX(22px);
}

.switch input:disabled + span {
  cursor: not-allowed;
  opacity: .7;
}

.save-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.save-row .button {
  border: 0;
  cursor: pointer;
}

.save-row [role="status"] {
  color: var(--green);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.simple-page {
  padding: 0 var(--page-gutter) 64px;
}

.simple-heading {
  position: relative;
  display: flex;
  align-items: end;
  padding-top: var(--section-space);
}

.simple-heading h1 {
  position: relative;
  max-width: 100%;
  padding-left: 20px;
  font-size: var(--heading-1);
  line-height: 1.08;
}

.simple-heading h1::before {
  content: "";
  position: absolute;
  top: .08em;
  bottom: .08em;
  left: 0;
  width: 8px;
  border-radius: 99px;
  background: var(--green);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 0;
  margin-top: var(--content-space);
}

.plain-image-button {
  min-height: 560px;
  border: 0;
  border-radius: 10px 0 0 10px;
  padding: 0;
  overflow: hidden;
  background: #d8ded9;
}

.plain-image-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
}

.plain-image-button:hover img {
  transform: scale(1.025);
  filter: brightness(.9);
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--page-gutter);
  border-radius: 0 10px 10px 0;
  background: var(--sage);
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.about-copy .about-lead {
  margin-bottom: 23px;
  color: var(--ink);
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(1.6rem, 1.28rem + 1.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.035em;
}

.fact-list {
  margin: 31px 0 0;
  border-top: 1px solid #aebfb5;
}

.fact-list div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #aebfb5;
}

.fact-list dt,
.fact-list dd {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.45;
}

.fact-list dt {
  color: var(--muted);
}

.fact-list dd {
  font-weight: 600;
}

.vacancy-list,
.news-list {
  margin-top: var(--content-space);
  border-bottom: 1px solid var(--line);
}

.vacancy-row,
.news-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(340px, .7fr);
  gap: var(--layout-gap);
  align-items: center;
  min-height: 150px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.vacancy-row:first-child,
.news-row:first-child {
  border-top: 0;
}

.vacancy-row h2,
.news-row h2 {
  font-size: clamp(1.55rem, 1.35rem + .8vw, 2.3rem);
  line-height: 1.15;
}

.vacancy-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.news-row {
  grid-template-columns: minmax(180px, .42fr) 1fr;
}

.news-row time {
  color: var(--muted);
  font-size: var(--text-sm);
}

.bare-gallery {
  width: 100%;
  max-width: 100%;
  columns: 3;
  column-gap: var(--layout-gap);
  margin-top: var(--content-space);
  overflow-x: clip;
}

.bare-gallery .gallery-item {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 var(--layout-gap);
  aspect-ratio: auto;
  border-radius: 8px;
  box-shadow: none;
  break-inside: avoid;
}

.bare-gallery .gallery-item img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.simple-content {
  margin-top: var(--content-space);
}

.simple-content.contact-layout {
  gap: 50px;
}

.vacancy-row h2 a,
.news-row h2 a {
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.vacancy-row h2 a:hover,
.vacancy-row h2 a:focus-visible,
.news-row h2 a:hover,
.news-row h2 a:focus-visible {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--green);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
  gap: 50px;
  margin-top: var(--content-space);
}

.detail-aside dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.detail-aside dl div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.detail-aside dt,
.detail-aside dd {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.45;
}

.detail-aside dt {
  color: var(--muted);
}

.detail-aside dd {
  font-weight: 600;
}

.job-detail-aside {
  align-self: start;
  padding: 0;
  background: transparent;
}

.detail-article {
  max-width: 880px;
}

.detail-article .detail-lead {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.detail-article section {
  margin-top: var(--content-space);
}

.job-detail-layout .detail-article > section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-article h2 {
  font-size: var(--heading-3);
  line-height: 1.2;
}

.detail-article p,
.detail-article li {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.65;
}

.detail-article section p,
.detail-article ul {
  margin-top: 20px;
  margin-bottom: 0;
}

.detail-article ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.detail-article a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-article .kmg-application .button-primary,
.detail-article .kmg-application .button-primary:hover,
.detail-article .kmg-application .button-primary:focus-visible,
.detail-article .kmg-application .button-primary:visited {
  margin-top: 0;
  color: var(--white);
  text-decoration: none;
}

.detail-article > h2 {
  margin-top: var(--content-space);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.job-detail-layout .detail-article > h2 {
  margin-top: 40px;
  padding-top: 24px;
}

.news-article {
  width: 100%;
  max-width: 1000px;
  margin: var(--content-space) auto 0;
}

.news-article-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.news-article-meta div {
  display: grid;
  gap: 8px;
}

.news-article-meta dt,
.news-article-meta dd {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.45;
}

.news-article-meta dt {
  color: var(--muted);
}

.news-article-meta dd {
  font-weight: 600;
}

.news-article-image {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  display: block;
  margin: var(--layout-gap) auto 0;
  border-radius: 8px;
  object-fit: cover;
}

.news-article-copy {
  max-width: 720px;
  margin: var(--layout-gap) auto 0;
}

.news-article-copy .detail-lead {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.news-article-copy p:not(.detail-lead) {
  margin: 23px 0 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.65;
}

@media (max-width:1250px) {
  :root {
    --section-space: 80px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-image img {
    height: 680px;
  }

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

  .services-copy {
    max-width: 760px;
  }

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

  .project-grid {
    gap: 20px;
  }

  .site-footer {
    min-height: 560px;
  }

  .map-wrap {
    height: 280px;
  }
}

@media (max-width:1080px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-header {
    height: 72px;
  }

  .brand img {
    width: 176px;
    height: auto;
  }

  .menu-toggle {
    display: block;
    z-index: 3;
    cursor: pointer;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 24px clamp(20px, 4vw, 42px) 30px;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    font-size: var(--text-base);
    line-height: 1.35;
    box-shadow: 0 10px 18px #0001;
  }

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

  .nav-contact {
    align-self: stretch;
  }
}

@media (max-width:800px) {
  :root {
    --section-space: 60px;
    --content-space: 42px;
    --layout-gap: 18px;
  }

  .hero {
    padding: 0;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-copy {
    order: 2;
    min-width: 0;
    max-width: none;
    padding: var(--section-space) 32px;
  }

  .hero-copy h1 {
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  .hero-image {
    order: 1;
    height: 52vw;
    min-height: 280px;
  }

  .hero-image img {
    height: 100%;
  }

  .hero-copy h1 {
    font-size: var(--heading-1);
    line-height: 1.06;
  }

  .hero-copy > p, .services-copy > p {
    font-size: var(--text-base);
    line-height: 1.55;
  }

  .services {
    gap: 40px;
    padding: var(--section-space) 32px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .service-card {
    height: auto;
    min-height: 210px;
  }

  .service-card h3 {
    font-size: clamp(1.125rem, 1.04rem + .3vw, 1.35rem);
    line-height: 1.2;
  }

  .service-card p {
    font-size: clamp(.9375rem, .9rem + .14vw, 1.05rem);
    line-height: 1.5;
  }

  .projects {
    padding: var(--section-space) 32px;
  }

  .section-title {
    align-items: flex-start;
    gap: 18px;
  }

  .section-title h2 {
    font-size: var(--heading-2);
  }

  .project-grid {
    margin-top: 42px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .site-footer {
    display: flex;
    flex-direction: column;
    gap: 44px;
    padding: 60px 32px 34px;
  }

  .map-wrap {
    order: 2;
    width: 100%;
    max-width: none;
    height: 280px;
  }

  .footer-legal {
    font-size: var(--text-sm);
  }

  .page-hero {
    grid-template-columns: 1fr;
  }

  .page-hero-copy {
    order: 2;
    padding: 60px 32px;
  }

  .page-hero-media {
    min-height: 340px;
    height: 52vw;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 42px;
  }

  .metrics, .value-grid, .process-grid, .news-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid #aebfb5;
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-story, .contact-layout {
    grid-template-columns: 1fr;
  }

  .feature-story img {
    min-height: 360px;
  }

  .map-large {
    height: 360px;
  }

  .image-gallery {
    columns: 2;
  }

  .portfolio-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 42px;
    padding: 70px 32px 60px;
  }

  .portfolio-intro {
    padding: 0;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 56px);
  }

  .lightbox-next {
    right: calc(50% - 56px);
  }

  .simple-page {
    padding-left: 32px;
    padding-right: 32px;
  }

  .simple-heading {
    padding-top: var(--section-space);
  }

  .simple-heading h1 {
    max-width: 100%;
  }

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

  .plain-image-button {
    min-height: 340px;
    height: 58vw;
    border-radius: 8px 8px 0 0;
  }

  .about-copy {
    border-radius: 0 0 8px 8px;
  }

  .vacancy-row,
  .news-row {
    grid-template-columns: 1fr;
    gap: var(--layout-gap);
    min-height: 0;
    padding: 32px 0;
  }

  .vacancy-meta {
    max-width: 520px;
  }

  .bare-gallery {
    columns: 2;
  }

  .simple-content.contact-layout {
    gap: 40px;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--content-space);
  }

  .detail-aside {
    width: 100%;
    max-width: 520px;
  }

  .detail-article {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .detail-aside dl div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .news-article-meta {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .news-article-meta div {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .news-article-meta div:last-child {
    border-bottom: 0;
  }

}

@media (max-width:470px) {
  :root {
    --page-gutter: 20px;
  }

  .site-header {
    padding: 0 20px;
  }

  .hero-copy, .services, .projects {
    padding-left: 20px;
    padding-right: 20px;
  }

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

  .service-card {
    min-height: 190px;
  }

  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .button-row {
    flex-wrap: wrap;
  }

  .page-hero-copy, .content-section, .cta-band, .legal-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-hero-media {
    min-height: 270px;
  }

  .career-item {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .data-table th, .data-table td {
    display: block;
    width: 100%;
  }

  .data-table th {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .data-table td {
    padding-top: 2px;
  }

  .cookie-option {
    gap: 18px;
  }

  .save-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-info > p, .contact-line {
    font-size: var(--text-base);
  }

  .portfolio-hero {
    padding: 58px 20px 48px;
  }

  .portfolio-hero h1 {
    font-size: clamp(3.4rem, 17vw, 4.5rem);
    line-height: .92;
  }

  .portfolio-intro p {
    font-size: var(--text-lg);
  }

  .gallery-section {
    padding: 48px 12px 60px;
  }

  .gallery-heading {
    padding: 0 8px;
  }

  .image-gallery {
    columns: 1;
  }

  .lightbox figure img {
    max-width: 100%;
    max-height: calc(100dvh - 32px);
  }

  .page-hero h1 {
    font-size: var(--heading-1);
    line-height: 1.06;
  }

  .button, .nav-contact {
    min-height: 44px;
  }

  .simple-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .simple-heading h1 {
    padding-left: 16px;
    font-size: var(--heading-1);
  }

  .plain-image-button {
    min-height: 260px;
  }

  .about-copy {
    padding: var(--page-gutter);
  }

  .fact-list div,
  .vacancy-meta,
  .detail-aside dl div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .news-article-meta div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bare-gallery {
    columns: 1;
  }
}
