:root {
  --coal: #241f21;
  --green: #00ad4d;
  --sky: #0087e8;
  --white: #ffffff;
  --paper: #f6f7f6;
  --ink: #241f21;
  --muted: #4a4446;
  --line: rgba(36, 31, 33, 0.12);
  --header: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset, var(--header));
  scroll-padding-bottom: var(--scroll-offset, var(--header));
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  font-family: Montserrat, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

a {
  color: var(--sky);
  transition: color 180ms ease, filter 180ms ease;
}

a:hover {
  text-decoration: none;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--white);
  color: var(--coal);
  padding: 0.5rem 0.75rem;
  z-index: 20;
}

.skip:focus {
  top: 0.5rem;
}

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--coal);
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-height: var(--header);
  padding: 0.7rem 0;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  align-items: center;
  line-height: 0;
}

.wordmark img {
  height: 2.35rem;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--green);
}

.nav a.btn-green,
.nav a.btn-green:hover,
.nav a.btn-green:focus,
.nav a.btn-green:focus-visible,
.nav a.btn-green:active,
.nav a.btn-green:visited {
  color: var(--coal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn:focus-visible,
.wordmark:focus-visible,
.nav a:focus-visible,
.more-link a:focus-visible,
.social a:focus-visible,
.hero-nav:focus-visible,
.hero-dot:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.btn-green {
  background: var(--green);
  color: var(--coal);
}

.btn-green:hover,
.btn-green:focus-visible {
  color: var(--coal);
  filter: brightness(1.06);
}

.btn-lg {
  min-height: 3.1rem;
  padding-inline: 1.4rem;
  font-size: 1rem;
}

.hero,
.services,
.product,
.more,
.demos,
.contact {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  min-height: 100dvh;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--white);
  background: var(--coal);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/hero.webp") center / cover no-repeat;
  transform: scale(1);
  animation: hero-photo 18s ease-out forwards;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(36, 31, 33, 0.78) 0%, rgba(36, 31, 33, 0.86) 55%, rgba(36, 31, 33, 0.94) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 5rem;
  max-width: 46rem;
}

.hero .eyebrow,
.hero h1,
.hero .lede,
.hero .btn {
  animation: rise 500ms ease both;
}

.hero h1 {
  animation-delay: 90ms;
}

.hero .lede {
  animation-delay: 180ms;
}

.hero .btn {
  animation-delay: 270ms;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--sky);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: Montserrat, "Segoe UI", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1,
.hero-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  max-width: 14ch;
}

h2,
h3 {
  font-weight: 600;
}

.lede,
.section-lead {
  font-size: 1.05rem;
  max-width: 40rem;
}

.lede {
  margin: 1.25rem 0 1.75rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-slides {
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition: opacity 180ms ease, visibility 0s linear 0s;
}

.hero-carousel .lede {
  margin-bottom: 1.15rem;
}

.hero-carousel.is-settled .eyebrow,
.hero-carousel.is-settled .hero-title,
.hero-carousel.is-settled .lede {
  animation: none;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
}

.hero-nav,
.hero-dot {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.hero-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 180ms ease, border-color 180ms ease;
}

.hero-nav:hover,
.hero-nav:focus-visible {
  color: var(--green);
  border-color: var(--green);
}

.hero-nav svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.hero-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.75rem;
  border-radius: 999px;
}

.hero-dot::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.hero-dot[aria-current="true"]::before {
  background: var(--green);
}

.services {
  display: grid;
  align-content: safe center;
  background: var(--paper);
  padding: 4.5rem 0 5rem;
}

.services h2,
.demos h2,
.product h2,
.contact h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 18ch;
}

.section-lead {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 14px;
  padding: 1.35rem 1.3rem 1.45rem;
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.card:hover,
a.card:focus-visible {
  color: inherit;
}

.card-photo {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  margin: 0 0 0.95rem;
}

.card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 180ms ease;
}

.card:hover img {
  transform: scale(1.03);
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.product {
  display: grid;
  align-content: safe center;
  background: #ffffff;
  color: #111827;
  border-top: 4px solid #166534;
  border-bottom: 1px solid #e5e7eb;
  padding: 4.5rem 0;
  font-family: Montserrat, "Segoe UI", sans-serif;
  text-align: left;
}

.product-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 40rem;
}

.product-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.9rem;
}

.product-brand img {
  width: 3.25rem;
  height: auto;
}

.product-word {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.product-name {
  color: #166534;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.product-beta {
  color: #166534;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid #166534;
  border-radius: 6px;
  padding: 0.22rem 0.4rem;
}

.product .eyebrow {
  margin: 1.35rem 0 0.75rem;
  color: #166534;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
}

.product h2 {
  color: #111827;
  font-weight: 700;
  max-width: 40rem;
}

.product-copy {
  margin: 1rem 0 0;
  color: #6b7280;
  font-size: 1.05rem;
  font-weight: 400;
  max-width: 40rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: 6px;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.product-btn-primary {
  background: #166534;
  color: #ffffff;
}

.product-btn-primary:hover,
.product-btn-primary:focus-visible {
  background: #14532d;
  color: #ffffff;
}

.product-btn-secondary {
  background: #ffffff;
  color: #166534;
  border-color: #e5e7eb;
}

.product-btn-secondary:hover,
.product-btn-secondary:focus-visible {
  color: #166534;
  background: #ffffff;
}

.product a:focus-visible {
  outline: 3px solid #166534;
  outline-offset: 3px;
}

.more {
  display: grid;
  align-content: safe center;
  background: var(--white);
  padding: 4.5rem 0 5rem;
}

.demos {
  display: grid;
  align-content: safe center;
  background: var(--paper);
  padding: 4.5rem 0 5rem;
}

.demos .cards {
  align-items: start;
}

.demos .card {
  height: auto;
}

.more-grid {
  display: grid;
  gap: 2.5rem;
}

.more-block h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 16ch;
}

.more-block p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

.more-link {
  font-weight: 700;
}

.more-link a {
  color: var(--sky);
}

.post-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  align-items: start;
}

.post-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 14px;
  padding: 0;
  height: auto;
  overflow: hidden;
}

.post-card {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 0 0 1.2rem;
}

.post-card:hover,
.post-card:focus-visible {
  color: inherit;
}

.post-photo {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 0 0 0.95rem;
  background: var(--line);
}

.post-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.post-card h3 {
  margin: 0;
  padding: 0 1.15rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.post-card:hover h3,
.post-card:focus-visible h3 {
  color: var(--sky);
}

.post-card p {
  margin: 0.45rem 0 0;
  padding: 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.more .more-link {
  margin-top: 1.25rem;
}

@media (min-width: 720px) {
  .post-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .post-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 1.1rem;
  }
}

.contact {
  display: grid;
  align-content: safe center;
  min-height: 100dvh;
  padding: 4.5rem 0;
  background: var(--paper);
}

.contact-inner {
  width: min(34rem, 100%);
  margin-inline: auto;
  text-align: center;
}

.contact h2 {
  margin-inline: auto;
}

.contact p {
  margin: 0.9rem auto 1.5rem;
  color: var(--muted);
  max-width: 34rem;
}

.contact .contact-mail {
  margin: 1.35rem 0 0;
  font-weight: 600;
  color: var(--coal);
}

.inquiry-form {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.25rem;
  text-align: left;
}

.inquiry-form label {
  margin-top: 0.7rem;
  font-weight: 600;
  color: var(--coal);
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--white);
  color: var(--coal);
  font: inherit;
}

.inquiry-form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.inquiry-form input:focus-visible,
.inquiry-form textarea:focus-visible,
.inquiry-form button:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.inquiry-form button {
  justify-self: center;
  margin-top: 0.85rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.inquiry-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.contact .inquiry-status {
  min-height: 1.4em;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.inquiry-status.is-error {
  color: var(--coal);
}

#inquiry-turnstile {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
}

.site-footer {
  background: var(--coal);
  color: rgba(255, 255, 255, 0.78);
  padding: 1.4rem 0;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.social {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.social a:hover,
.social a:focus-visible {
  color: #fff;
}

.social svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  fill: currentColor;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .wordmark img {
    height: 2.7rem;
  }


}

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .nav .btn {
    margin-left: auto;
  }

  .hero-inner,
  .services,
  .product,
  .more,
  .demos {
    padding-top: 3.25rem;
    padding-bottom: 3.5rem;
  }

  .contact {
    padding-top: 3.25rem;
    padding-bottom: 3.5rem;
  }
}

@keyframes hero-photo {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.04);
  }
}

.services .card {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.services .card.is-inview {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .hero::before,
  .hero .eyebrow,
  .hero h1,
  .hero .hero-title,
  .hero .lede,
  .hero .btn {
    animation: none;
  }

  .services .card,
  .services .card.is-inview {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-slide,
  .hero-nav {
    transition: none;
  }

  .card img,
  .card:hover img {
    transform: none;
    transition: none;
  }

  a {
    transition: none;
  }
}

@media (min-width: 1100px) {
  .services {
    height: calc(100dvh - var(--scroll-offset, var(--header)));
    max-height: calc(100dvh - var(--scroll-offset, var(--header)));
    min-height: 0;
    overflow: hidden;
    align-content: start;
    padding-top: 1.15rem;
    padding-bottom: 1rem;
  }

  .services .wrap {
    width: min(1120px, calc(100% - 2rem));
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto auto auto;
    align-content: start;
  }

  .services .cards {
    grid-template-columns: repeat(2, minmax(0, 26rem));
    justify-content: center;
    align-items: start;
    gap: 0.85rem 1rem;
    min-height: 0;
    height: auto;
    margin-top: 0.85rem;
  }

  .services .card {
    min-width: 0;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .services .card h3 {
    overflow-wrap: anywhere;
  }

  .services .card-photo {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
    margin-bottom: 0.55rem;
  }

  .services .card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

}
