@font-face {
  font-family: "STIX Two Text";
  src: url("fonts/stix-two-text-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --type: "STIX Two Text", Georgia, "Times New Roman", serif;
  --utility-type: system-ui, sans-serif;
  --ink: #202420;
  --body: #374039;
  --accent: #b7cd4f;
  --accent-dark: #78942e;
  --rule: #d1d8cd;
  --gutter: clamp(1.3rem, 3.52vw, 4rem);
  --section-space: clamp(3.75rem, 6.3vw, 6.75rem);
  font-family: var(--type);
  color: var(--ink);
  background: white;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 1.25rem;
}

body {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.48;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.19em;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #365e7d;
  outline-offset: 4px;
}

::selection {
  color: #162115;
  background: #d8e69c;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 650;
}

h2 {
  font-size: clamp(2.65rem, 4.12vw, 4.45rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h3 {
  font-size: clamp(1.6rem, 2.1vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.frame {
  width: 100%;
  max-width: 100rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-space {
  padding-block: var(--section-space);
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: var(--gutter);
  z-index: 5;
  padding: 0.75rem 1.15rem;
  transform: translateY(-160%);
  background: white;
  border: 1px solid var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid #e8eeec;
  background: #fff;
}

.header-layout {
  min-height: clamp(5rem, 6.28vw, 6.3rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 3.5rem);
}

.wordmark {
  justify-self: start;
  color: #1d211f;
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  line-height: 1;
  font-weight: 660;
  letter-spacing: -0.046em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark::after {
  content: "";
  display: block;
  width: 2.2em;
  height: 0.1em;
  margin-top: 0.12em;
  background: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.55rem, 4.4vw, 4.25rem);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #202520;
  font-size: clamp(1.2rem, 1.84vw, 1.82rem);
  line-height: 1.1;
  text-decoration: none;
}

.main-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.36em;
  color: #1c2510;
  font-family: var(--type);
  font-weight: 620;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-quote {
  justify-self: end;
  padding: 0.57em 1.15em;
  background: #d2df82;
  font-size: clamp(1.15rem, 1.8vw, 1.8rem);
  white-space: nowrap;
}

.button-primary {
  padding: 0.68em 1.23em;
  background: var(--accent);
  font-size: clamp(1.3rem, 1.92vw, 1.97rem);
}

.button:hover {
  background: #a7bf3e;
}

.button:disabled {
  opacity: 0.66;
  cursor: wait;
}

.hero {
  overflow: hidden;
  background: #d5e9f5;
}

.hero-stage {
  position: relative;
  isolation: isolate;
  max-width: 115rem;
  margin-inline: auto;
  background:
    radial-gradient(ellipse at 9% 59%, #fff 8%, #fdfefe 24%, transparent 64%),
    linear-gradient(115deg, #e6f2f9 0%, #d8ebf6 45%, #b9d7ea 100%);
}

.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 54%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  mask-image: linear-gradient(to right, transparent, black 11%);
  pointer-events: none;
}

.hero-layout {
  display: flex;
  align-items: center;
  min-height: clamp(31rem, 39.4vw, 42.5rem);
  padding-block: clamp(3rem, 5.2vw, 5.55rem);
}

.hero-copy {
  width: 54%;
}

.hero h1 {
  color: #1e221f;
  font-size: clamp(3rem, 6.54vw, 6.85rem);
  line-height: 0.94;
  letter-spacing: -0.052em;
}

.hero h1 span {
  display: block;
}

.hero-copy p {
  max-width: 46ch;
  margin-top: clamp(1.15rem, 1.85vw, 1.85rem);
  color: #252e2a;
  font-size: clamp(1.4rem, 2.04vw, 2.08rem);
  line-height: 1.22;
  letter-spacing: -0.017em;
}

.hero .button {
  margin-top: clamp(1.45rem, 2.5vw, 2.65rem);
}

.services {
  padding-block: clamp(2.6rem, 3.45vw, 3.7rem) clamp(3.4rem, 4.7vw, 5.15rem);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(1.75rem, 2vw, 2.15rem);
}

.service {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: clamp(0.8rem, 1.5vw, 1.55rem);
  padding-inline: clamp(1.05rem, 2.2vw, 2.35rem);
}

.service + .service {
  border-left: 1px solid var(--rule);
}

.service:first-child {
  padding-left: 0;
}

.service:last-child {
  padding-right: 0;
}

.service h3 {
  margin-bottom: 0.35em;
}

.service p,
.product-copy p:not(.product-meta),
.process-steps p,
.about-example,
.contact-intro p {
  color: var(--body);
  font-size: clamp(1.15rem, 1.42vw, 1.45rem);
  line-height: 1.39;
}

.service-icon {
  position: relative;
  display: block;
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.04em;
  color: #8da638;
  font-size: clamp(2.2rem, 3.45vw, 3.6rem);
}

.icon-automation::before,
.icon-automation::after,
.icon-automation i,
.icon-automation i::before,
.icon-automation i::after {
  position: absolute;
  content: "";
  display: block;
}

.icon-automation i {
  inset: 33% 7% 7%;
  border: 0.065em solid;
  border-radius: 0.17em;
}

.icon-automation i::before {
  left: 24%;
  top: 39%;
  width: 0.1em;
  height: 0.1em;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0.32em 0 currentColor;
}

.icon-automation i::after {
  inset: 26% -12% 24%;
  border-inline: 0.055em solid;
}

.icon-automation::before {
  left: 47.5%;
  top: 15%;
  height: 19%;
  border-left: 0.055em solid;
}

.icon-automation::after {
  left: 39%;
  top: 1%;
  width: 21%;
  height: 21%;
  background: white;
  border: 0.055em solid;
  border-radius: 50%;
}

.icon-layers i {
  position: absolute;
  left: 17%;
  width: 65%;
  height: 65%;
  border: 0.07em solid;
  border-radius: 0.06em;
  background: white;
  transform: scaleY(0.53) rotate(45deg);
}

.icon-layers i:nth-child(1) { top: 40%; }
.icon-layers i:nth-child(2) { top: 23%; }
.icon-layers i:nth-child(3) { top: 6%; }

.icon-code {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Consolas, "Liberation Mono", monospace;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.13em;
}

.products {
  border-block: 1px solid #e0e6df;
  background: #f5f7f3;
}

.products-intro {
  max-width: 68ch;
  margin-top: 0.9em;
  color: var(--body);
  font-size: clamp(1.25rem, 1.55vw, 1.6rem);
  line-height: 1.4;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.35rem, 2.55vw, 2.75rem);
  margin-top: clamp(1.8rem, 2.95vw, 3.2rem);
}

.product {
  overflow: hidden;
  border: 1px solid #d8dfd6;
  border-radius: 0.9rem;
  background: #fff;
}

.product-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: clamp(1rem, 2.05vw, 2.2rem);
}

.product-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.product-copy {
  padding: clamp(1.45rem, 2.5vw, 2.7rem);
}

.product h3 {
  font-size: clamp(2.1rem, 3.12vw, 3.25rem);
  margin-bottom: 0.28em;
}

.product-copy p {
  max-width: 47ch;
}

.product-meta {
  margin-bottom: 0.55em;
  color: #58645a;
  font-family: var(--utility-type);
  font-size: clamp(0.82rem, 1vw, 0.98rem);
  font-weight: 620;
  line-height: 1.35;
}

.product .text-link {
  margin-top: 1.05em;
}

.text-link {
  display: inline-block;
  width: fit-content;
  font-weight: 570;
  text-decoration-color: var(--accent-dark);
  text-decoration-thickness: 2px;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.product-roy {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.22fr);
  align-items: center;
  background: #e8f1f5;
  border-color: #d1dfe2;
}

.product-roy .product-media {
  grid-row: 1;
  grid-column: 2;
  aspect-ratio: 1.8;
}

.product-roy .product-copy {
  grid-row: 1;
  grid-column: 1;
  padding: clamp(1.65rem, 3.5vw, 3.8rem);
}

.product-roy .product-meta {
  font-size: clamp(0.88rem, 1.06vw, 1.05rem);
}

.product-roy h3 {
  font-size: clamp(2.7rem, 4.3vw, 4.5rem);
}

.product-screenshot {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(2.5rem, 7.25vw, 8rem);
}

.process-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-steps li {
  padding-block: clamp(1.35rem, 2vw, 2.15rem);
  border-bottom: 1px solid var(--rule);
}

.process-steps li:first-child {
  padding-top: 0;
}

.process-steps h3 {
  margin-bottom: 0.38em;
}

.process-steps p {
  max-width: 60ch;
}

.about {
  background: #eaf3f7;
  border-block: 1px solid #dae6e9;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.85fr);
  align-items: start;
  column-gap: clamp(2.5rem, 7vw, 7rem);
  row-gap: 1.35rem;
}

.about-layout h2 {
  grid-column: 1 / -1;
  margin-bottom: 0.16em;
}

.about-intro {
  color: #253630;
  font-size: clamp(1.55rem, 2.13vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.about-example {
  padding-left: clamp(1.2rem, 2vw, 2rem);
  border-left: 2px solid #a4bcaa;
}

.contact-intro p {
  max-width: 35ch;
  margin-top: 1em;
}

.project-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.35rem 1.25rem;
}

.form-field {
  display: grid;
  gap: 0.42rem;
}

.full-field,
.form-status,
.project-form noscript {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 1.2rem;
  font-weight: 580;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 3.05rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #859187;
  border-radius: 0.32rem;
  color: var(--ink);
  background: #fcfdfb;
  font-family: var(--utility-type);
  font-size: 1.02rem;
  line-height: 1.45;
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.website-field,
[hidden] {
  display: none !important;
}

.form-field [aria-invalid="true"] {
  border-color: #a53a33;
}

.field-error,
.form-status {
  font: 0.97rem/1.45 var(--utility-type);
}

.field-error,
.form-status[data-state="error"] {
  color: #932e28;
}

.form-status[data-state="success"] {
  color: #385622;
}

.form-status:empty {
  position: absolute;
}

.project-form .button {
  grid-column: 1 / -1;
  min-height: 3.08rem;
  font-size: 1.36rem;
}

.site-footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}

.footer-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  font-size: 1.02rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.25rem;
}

@media (max-width: 68rem) {
  .services-list { column-gap: 1.5rem; }
  .service {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding-inline: 1.5rem 0;
  }
}

@media (min-width: 48.01rem) and (max-width: 68rem) {
  .header-layout {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(0.75rem, 1.8vw, 1.25rem);
  }

  .wordmark { font-size: clamp(1.7rem, 3.1vw, 2.35rem); }
  .main-nav { justify-content: center; gap: clamp(0.8rem, 2vw, 1.35rem); }
  .main-nav a { font-size: clamp(1.05rem, 1.55vw, 1.3rem); }
  .button-quote { padding-inline: 0.9em; font-size: clamp(1rem, 1.5vw, 1.35rem); }

  .hero-layout {
    min-height: clamp(23.5rem, 42vw, 29rem);
    padding-block: 3rem;
  }

  .hero-copy { width: 52%; }
  .hero-copy p { font-size: clamp(1.2rem, 2.12vw, 1.48rem); }

  .hero-art {
    width: 49%;
    height: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    object-fit: contain;
    mask-image:
      linear-gradient(to right, transparent, black 13%),
      linear-gradient(to bottom, transparent, black 9%, black 91%, transparent);
    mask-composite: intersect;
  }
}

@media (max-width: 48rem) {
  .header-layout {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem 0.6rem;
    padding-top: 0.75rem;
  }

  .wordmark { font-size: clamp(1.3rem, 6.85vw, 2.08rem); }

  .button-quote {
    grid-column: 2;
    grid-row: 1;
    padding-inline: 0.84em;
    font-size: clamp(1rem, 3.8vw, 1.18rem);
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 1.2rem;
  }

  .main-nav { gap: clamp(0.55rem, 2.2vw, 0.85rem); }
  .main-nav a { font-size: clamp(0.94rem, 3.9vw, 1.13rem); }

  .hero-stage {
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #f9fcfe 6%, #e9f4fa 58%, #cbe2f0);
  }

  .hero-layout {
    order: 1;
    min-height: 0;
    padding-block: clamp(2.25rem, 7vw, 3.4rem) 0;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2rem, 12.05vw, 4.65rem);
  }

  .hero-copy p {
    max-width: 39ch;
    font-size: clamp(1.28rem, 3.55vw, 1.5rem);
  }

  .hero-art {
    position: relative;
    inset: auto;
    z-index: 0;
    order: 2;
    width: min(100%, 34rem);
    height: auto;
    margin: 0.55rem 0 0 auto;
    mask-image: linear-gradient(to bottom, transparent, black 17%);
  }

  .services-list {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 1.5rem;
  }

  .service,
  .service:first-child,
  .service:last-child {
    grid-template-columns: 3.1rem minmax(0, 1fr);
    gap: 1.1rem;
    padding: 1.2rem 0;
  }

  .service + .service {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .service:first-child { padding-top: 0; }
  .service:last-child { padding-bottom: 0; }
  .service-icon { font-size: 2.45rem; }

  .product-grid { grid-template-columns: 1fr; }

  .product-screenshot {
    aspect-ratio: auto;
  }

  .product-roy {
    display: block;
    grid-column: auto;
  }

  .product-roy .product-copy {
    padding: 0 1.45rem 1.6rem;
  }

  .split-layout,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }

  .about-layout h2 { margin: 0; }
  .about-example { border: 0; padding: 0; }
  .contact-intro p { max-width: 53ch; }
}

@media (max-width: 32rem) {
  .project-form { grid-template-columns: 1fr; }
}
