:root {
  --ink: #1D1516;
  --muted: #1D1516;
  --line: #dde5df;
  --paper: #f7f8f4;
  --white: #ffffff;
  --green: #48b17b;
  --green-dark: #214d45;
  --lime: #c8d96d;
  --blue: #1f2447;
  --shadow: 0 12px 30px rgba(24, 33, 29, .14);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.section-pad {
  padding: 88px 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  width: min(1200px, calc(100% - 32px));
  min-height: 66px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 36px rgba(24, 33, 29, .12);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-logo {
  width: 168px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.menu-toggle {
  display: none;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: #edf3ed;
}

.mobile-nav-cta {
  display: none;
}

.header-cta,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 7px;
  font-weight: 500;
}

.header-cta,
.primary-btn {
  color: var(--white);
  background: var(--green);
}

.secondary-btn {
  color: var(--blue);
  background: rgba(255, 255, 255, .9);
}

.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 130px 0 70px;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
}

.hero-overlay {
  background: rgba(255, 255, 255, .68);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  color: var(--white);
  text-align: center;
}

.hero-content h1 {
  margin: 0;
}

.hero-content h1 img {
  margin: 0 auto;
  width: min(620px, 92vw);
  height: auto;
}

.hero-content p:not(.eyebrow) {
  max-width: 610px;
  margin: 0 auto;
  font-size: clamp(18px, 2.2vw, 25px);
  color: var(--blue);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--lime);
}

h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(34px, 5vw, 42px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  line-height: 1.12;
}

.intro {
  background: var(--white);
}

.future-grid,
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-grid {
  grid-template-columns: 1fr;
  gap: 32px;
}

.intro-grid > p,
.contact-grid > div > p {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
}

.intro-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}

.intro-grid div, .intro-grid p {
  width: 50%;
}

.contact-grid div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 16px;
}

.stats {
  padding-top: 0;
  background: var(--white);
}

.stat-grid {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  padding: 3rem 0 6rem;
}

.stat-grid article {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 98px;
  padding: 0;
}

.stat-grid article:nth-child(2) {
  justify-content: center;
}

.stat-grid article:last-child {
  justify-content: end;
}

.stat-grid article img {
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  padding: 8px;
  border-radius: 8px;
  background-color: #f1f4f1;
}

.stat-grid strong {
  display: block;
  color: var(--blue);
  font-family: inherit;
  font-size: 52px;
  font-weight: 600;
  line-height: .92;
}

.stat-grid span {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
}

.partner-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 68px;
  padding: 62px 0;
}

.partner-panel div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.partner-panel h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.partner-panel img {
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 8px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 34px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.work-grid article {
  padding: 24px;
  border-right: 1px solid var(--line);
}

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

.work-grid span {
  color: var(--blue);
  font-weight: 900;
}

.work-grid article > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 18px;
  border-radius: 7px;
  object-fit: cover;
}

.work-grid h3 {
  margin-top: 38px;
  font-size: 20px;
  text-align: center;
}

.references {
  background: #edf2ec;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.reference-card {
  appearance: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.reference-card:hover,
.reference-card:focus-visible {
  transform: translateY(-3px);
  background: #fff;
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.reference-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 22px;
  border-radius: 7px;
  background: #f9fbf8;
  object-fit: contain;
}

.reference-card:hover > img {
  background: #fff;
}

.reference-card h3 {
  margin-top: 18px;
  font-size: 18px;
}

.reference-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 34px auto 0;
  padding: 0 22px;
  border: 0;
  border-radius: 7px;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
  cursor: pointer;
}

.load-more[hidden] {
  display: none;
}

.future {
  color: var(--white);
  background: var(--blue);
}

.future .eyebrow {
  color: var(--green);
}

#future-title {
  color: var(--white);
}

.future-list {
  display: grid;
  gap: 14px;
}

.future-list article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.future-card-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.future-card-head img {
  flex: 0 0 92px;
  width: 92px;
  height: 76px;
  padding: 12px;
  border-radius: 7px;
  background: var(--white);
  object-fit: contain;
}

.future-list span {
  color: var(--green);
  font-weight: 600;
}

.future-list h3 {
  margin-top: 6px;
  font-size: 24px;
}

.future-list p {
  color: rgba(255, 255, 255, .78);
}

.software {
  background: var(--white);
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.software-grid > span {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  font-weight: 600;
}

.software-logos {
  flex: 0 0 92px;
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.software-grid img {
  flex: 0 0 92px;
  width: 126px;
  max-width: 92px;
  max-height: 48px;
  object-fit: contain;
}

.software-logos img {
  flex: 0 1 auto;
  max-height: 28px;
}

.contact {
  background: #dfe9e2;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
}

.contact-cards article {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 18px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(24, 33, 29, .08);
}

.contact-cards article > img {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  object-fit: cover;
  object-position: top center;
}

.contact-cards h3 {
  font-size: 25px;
}

.contact-cards p {
  margin: 8px 0 12px;
  color: var(--muted);
}

.contact-cards a {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 600;
}

.footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, .78);
  background: var(--blue);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-logo {
  width: 168px;
  height: auto;
}

.footer a {
  color: var(--white);
  font-weight: 900;
}

.project-modal {
  width: min(1040px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.project-modal::backdrop {
  background: rgba(12, 18, 15, .66);
  backdrop-filter: blur(4px);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 580px;
}

.modal-copy {
  padding: 40px;
}

.modal-copy h2 {
  font-size: clamp(30px, 4vw, 38px);
}

.modal-copy p:not(.eyebrow) {
  color: var(--ink);
  font-size: 17px;
}

.modal-copy dl {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
}

.modal-copy dl div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.modal-copy dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-copy dd {
  margin: 4px 0 0;
  font-weight: 500;
}

.modal-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: center;
  gap: 24px 18px;
  min-height: 580px;
  max-height: 72vh;
  padding: 52px 34px 52px 0;
  overflow: auto;
  background: var(--white);
}

.modal-images img {
  width: 100%;
  aspect-ratio: 16 / 13;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  background: #eef2ee;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    flex-wrap: nowrap;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 34px rgba(24, 33, 29, .14);
    backdrop-filter: blur(18px);
  }

  .site-header.is-menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 13px 14px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    border: 0;
    border-radius: 7px;
    background: #edf3ed;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
  }

  .header-cta {
    display: none;
  }

  .mobile-nav-cta {
    display: block;
    color: var(--white)!important;
    background: var(--green);
    font-weight: 800;
    text-align: center;
  }

  .intro-grid,
  .future-grid,
  .contact-grid,
  .partner-panel,
  .modal-body {
    grid-template-columns: 1fr;
  }

  .work-grid,
  .reference-grid,
  .software-grid,
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-images {
    min-height: 360px;
    max-height: none;
    padding: 28px;
  }
}

@media (max-width: 680px) {
  .section-pad {
    padding: 62px 0;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 142px;
  }

  .header-cta {
    width: auto;
  }

  .hero {
    min-height: 760px;
    padding-top: 210px;
  }

  .hero-overlay {
    background: rgba(255, 255, 255, .72);
  }

  .intro-grid {
    display: flex;
    flex-direction: column;
  }
  .intro-grid div,
  .intro-grid p {
    width: 100%;
  }

  .stat-grid,
  .work-grid,
  .software-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    gap: 24px;
  }

  .contact-cards article{
    align-items: center;
    text-align: center;
  }

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

  .stat-grid {
    flex-direction: column;
    gap: 1.75rem;
  }

  .stat-grid article {
    justify-content: start!important;
  }

  .work-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .work-grid article {
    min-height: 210px;
  }

  .work-grid h3 {
    margin-top: 32px;
  }

  .section-head,
  .footer-inner {
    display: block;
  }

  .footer-inner span,
  .footer-inner a {
    display: block;
    margin-top: 8px;
  }

  .modal-copy {
    padding: 28px;
  }

  .modal-images {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
}
