:root {
  --brand: #008b46;
  --blue: #00713b;
  --blue-dark: #005a30;
  --navy: #0b1d2b;
  --ink: #132b33;
  --muted: #4b606c;
  --line: #d9e4df;
  --light: #f0f5f2;
  --paper: #fbfcf9;
  --mint: #91e9bb;
  --radius: 6px;
  --focus: #21a75f;
}

body.site-page {
  background: var(--paper);
}

:is(a, button, input, textarea, select):focus-visible {
  outline-color: var(--focus);
}

.site-header {
  background: #fffffff8;
  box-shadow: 0 2px 10px #0b1d2b07;
}

.topbar {
  background: #eaf1ed;
  color: #405b52;
}

.nav-link.active,
.nav-link:hover,
.topbar a:hover {
  color: var(--blue);
}

.nav-link.active::after {
  background: var(--brand);
}

.language .selected {
  color: var(--blue-dark);
  background: #e3f3e8;
}

.dropdown {
  border-top: 2px solid var(--brand);
  box-shadow: 0 18px 44px #0b1d2b21;
}

.btn {
  font-weight: 650;
  box-shadow: none;
}

.btn:hover {
  box-shadow: 0 8px 20px #0b1d2b1a;
}

.btn.outline:hover,
.btn.white:hover {
  background: #e8f5ed;
}

.btn.ghost {
  border-color: #a4b9bc;
}

.eyebrow {
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .105em;
}

.eyebrow.white {
  color: var(--mint);
}

main > .page-heading {
  margin-bottom: clamp(16px, 2vw, 26px);
  padding-left: clamp(18px, 3vw, 40px);
  border-left: 3px solid var(--brand);
  background: linear-gradient(100deg, #e9f2ea 0%, #f4f8f3 57%, var(--paper) 100%);
  padding-block: clamp(30px, 5vw, 64px);
}

main > .page-heading h1 {
  max-width: min(900px, 100%);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

main > .page-heading > p {
  max-width: min(760px, 95%);
}

.breadcrumb a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consult-banner {
  border-color: #c7e1d2;
  background: #e4f2e7;
}

.site-footer {
  background: #0b2029;
  border-top: 4px solid var(--brand);
}

.site-footer .footer-col a,
.site-footer .footer-contact p,
.site-footer .footer-brand p {
  color: #acc3c2;
}

.site-footer .footer-col a:hover,
.site-footer .footer-contact a:first-of-type {
  color: var(--mint);
}

.site-footer .footer-bottom {
  color: #9ab2b0;
}

.footer-bottom a:hover {
  color: var(--mint);
}

.contact-dialog {
  border-top: 4px solid var(--brand);
}

.filter-btn.active,
.consent input {
  accent-color: var(--brand);
}

.home-masthead {
  overflow: hidden;
  color: white;
  background: var(--navy);
  background-image: radial-gradient(ellipse at 0 100%, #103b33 0%, transparent 55%);
}

.home-masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(24rem, 33vw, 39rem);
  isolation: isolate;
}

.home-masthead-grid[hidden] {
  display: none;
}

.home-masthead-copy {
  grid-area: 1 / 1;
  align-self: center;
  position: relative;
  z-index: 1;
  padding-block: clamp(40px, 5vw, 76px);
}

.home-masthead-copy > * {
  max-width: 54%;
}

.home-masthead-copy .eyebrow {
  color: var(--mint);
  margin-bottom: 24px;
}

.home-masthead-copy .eyebrow::before {
  content: '';
  display: inline-block;
  background: var(--brand);
  width: 18px;
  height: 3px;
  margin-right: 10px;
  vertical-align: .22em;
}

.home-masthead-copy :is(h1, h2) {
  font-size: clamp(38px, 4.1vw, 62px);
  line-height: 1.03;
  letter-spacing: -.055em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.home-masthead-copy em {
  display: block;
  color: var(--mint);
  font-style: normal;
}

.home-masthead-copy p {
  margin-top: 26px;
  color: #c0d2d2;
  max-width: min(44ch, 54%);
}

.home-masthead-copy .button-row {
  margin-top: 32px;
}

.home-masthead-figure {
  grid-area: 1 / 1;
  position: relative;
  max-height: 56.25vw;
  margin: 0;
  overflow: hidden;
  background: #486256;
}

.home-masthead-photo {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
}

.home-masthead-figure::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  background: linear-gradient(90deg, #061c19f2 0%, #071d18d9 36%, #09201caa 54%, transparent 81%);
}

.home-masthead-figure figcaption {
  position: absolute;
  bottom: 0;
  right: 0;
  max-width: 35%;
  padding: 20px 25px;
  color: white;
  text-shadow: 0 1px 4px #000;
  font-size: 13px;
  z-index: 1;
}

.home-carousel-stage {
  position: relative;
}

.home-slide-controls {
  position: absolute;
  /* On narrow screens the copy follows the 16:9 photo. */
  top: min(100%, 56.25vw);
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 2;
  display: flex;
  width: max-content;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 2px;
}

.home-masthead:has([data-home-slide]) .home-masthead-grid {
  touch-action: pan-y pinch-zoom;
}

.home-slide-controls [data-home-slide] {
  display: grid;
  place-items: center;
  width: 32px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.home-slide-controls [data-home-slide]::before {
  content: '';
  box-sizing: border-box;
  width: 9px;
  height: 9px;
  border: 1px solid white;
  border-radius: 50%;
  background: #10232166;
  box-shadow: 0 0 2px #102321;
}

.home-slide-controls [data-home-slide][aria-pressed="true"]::before {
  background: var(--mint);
  border-color: var(--mint);
}

.home-portfolio-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid #ffffff24;
}

.home-portfolio-links a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 22px clamp(12px, 2vw, 25px);
  min-height: 72px;
  color: #e9f5ef;
  font-weight: 580;
  font-size: 15px;
  line-height: 1.3;
  transition: background-color .22s;
}

.home-portfolio-links a + a {
  border-left: 1px solid #ffffff24;
}

.home-portfolio-links a:hover {
  background-color: #17523d;
}

.home-portfolio-links svg {
  width: 21px;
  height: 21px;
  color: var(--mint);
}

.page-index .home-solutions {
  background: #fff;
}

.page-index .home-primary-grid {
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  gap: 18px;
}

.page-index .home-primary-grid .product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  transition: border-color .18s, box-shadow .22s, transform .22s;
}

.page-index .home-primary-grid .product-card:first-child {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.page-index .home-primary-grid .product-card:last-child {
  grid-column: auto;
}

.page-index .home-primary-grid .product-card:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 24px #0b1d2b0e;
  transform: translateY(-2px);
}

.page-index .home-primary-grid .product-photo {
  height: 100%;
  min-height: 225px;
  background: #e8eeeb;
}

.page-index .home-primary-grid .product-card:first-child .product-photo {
  flex: 1 0 auto;
  height: clamp(245px, 31vw, 365px);
  background: #dce9f6;
}

.page-index .home-primary-grid .product-card:first-child .product-photo img {
  object-fit: contain;
}

.page-index .home-primary-grid .product-card.contain .product-photo img {
  height: 100%;
  padding: 22px 12px;
  background: transparent;
}

.page-index .home-primary-grid .product-body {
  padding: clamp(16px, 2vw, 25px);
}

.page-index .home-primary-grid .product-body :is(.eyebrow, h3, p) {
  min-height: 0;
  overflow-wrap: anywhere;
}

.page-index .home-primary-grid .product-body h3 {
  font-size: clamp(19px, 1.9vw, 28px);
}

.page-index .home-primary-grid .product-body p {
  padding-bottom: 14px;
  margin-top: 10px;
}

.page-index .secondary-card {
  min-height: 90px;
  transition: border-color .2s, background-color .2s;
}

.page-index .secondary-card:hover {
  border-color: var(--brand);
  background: #f4faf4;
}

.page-index .system-section {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 100% 100%, #123b33, transparent 60%);
}

.page-index .system-visual {
  margin: 0;
}

.page-index .system-visual img {
  object-position: 77% center;
  height: clamp(310px, 42vw, 560px);
}

.page-index .system-item svg,
.page-index .image-caption svg {
  color: var(--mint);
}

.page-index .image-caption {
  background: #0b2523df;
}

.page-index .home-industries {
  background: #f3f7f3;
}

.page-index .industry-layout {
  gap: clamp(20px, 4vw, 52px);
}

.page-index .industry-tab {
  background: #fff;
  border-left: 3px solid transparent;
}

.page-index .industry-tab[aria-selected=true] {
  background: #dff0e4;
  border-left-color: var(--brand);
}

.page-index .industry-panel {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px #0b1d2b0a;
}

.page-index .process-card {
  border-top-color: var(--brand);
}

.page-index .home-faq-section {
  background: #fff;
}

.page-index .home-closing {
  background: var(--blue-dark);
  color: white;
  border-color: #ffffff22;
}

.page-index .home-closing p {
  color: #d4eddd;
}

@media (max-width: 1060px) {
  .home-masthead-grid {
    min-height: 0;
  }

  .home-masthead-copy {
    grid-area: 2 / 1;
    padding-block: 32px;
  }

  .home-masthead-copy > * {
    max-width: 100%;
  }

  .home-masthead-copy :is(h1, h2) {
    font-size: clamp(36px, 4.75vw, 54px);
    max-width: 21ch;
    text-wrap: pretty;
  }

  .home-masthead-copy p {
    max-width: 52ch;
  }

  .home-masthead-figure {
    aspect-ratio: 16 / 9;
  }

  .home-masthead-figure::after {
    background: linear-gradient(0deg, #071c1580, transparent 32%);
  }

  .home-masthead-figure figcaption {
    max-width: 100%;
  }

  .home-carousel-stage:has([data-home-slide]) figcaption {
    bottom: 44px;
  }
}

@media (max-width: 800px) {
  .home-portfolio-links a {
    padding: 18px 9px;
    font-size: 13px;
    gap: 8px;
  }

  .page-index .home-primary-grid {
    grid-template-columns: 1fr;
  }

  .page-index .home-primary-grid .product-card:first-child {
    grid-row: auto;
  }

  .page-index .home-primary-grid .product-photo,
  .page-index .home-primary-grid .product-card:last-child .product-photo {
    height: 100%;
    min-height: 180px;
  }
}

@media (max-width: 520px) {
  main > .page-heading {
    margin-bottom: 12px;
    padding-right: 10px;
  }

  .home-masthead-copy :is(h1, h2) {
    font-size: clamp(30px, 9.4vw, 46px);
  }

  .home-masthead-copy p {
    font-size: 16px;
    margin-top: 20px;
  }

  .home-masthead-copy .button-row {
    margin-top: 24px;
    gap: 8px;
  }

  .home-masthead-copy .btn {
    padding-inline: 12px;
    min-height: 46px;
    font-size: 13px;
  }

  .home-masthead-figure figcaption {
    font-size: 12px;
    padding: 10px 14px;
  }

  .home-portfolio-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-portfolio-links a {
    padding: 12px 5px;
    min-height: 44px;
  }

  .home-portfolio-links a + a {
    border-left: 0;
    border-top: 1px solid #ffffff24;
  }

  .page-index .home-primary-grid .product-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-index .home-primary-grid .product-photo,
  .page-index .home-primary-grid .product-card:last-child .product-photo {
    height: 170px;
    min-height: 170px;
  }

  .page-index .home-primary-grid .product-card:first-child .product-photo {
    height: 220px;
  }

  .page-index .home-primary-grid .product-body h3 {
    font-size: 24px;
  }
}
