:root {
  --services-base: #e1bfbc;
  --services-ink: #785d5d;
  --services-copy: #ffdad8;
  --about-base: #665151;
  --about-copy: #ffd2ce;
}

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

html {
  background: var(--about-base);
  color-scheme: light;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--about-base);
  font-family: Calibri, "Trebuchet MS", Arial, sans-serif;
}

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

.site-shell {
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero,
.services,
.about {
  position: relative;
  isolation: isolate;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.hero {
  aspect-ratio: 1920 / 758;
  background-color: var(--services-base);
  background-image: url("images/hero-background.png");
}

.hero__title {
  position: absolute;
  top: 43.0079%;
  left: 12.1354%;
  width: 75.625%;
  height: auto;
}

.services {
  aspect-ratio: 1920 / 925;
  background-color: var(--services-base);
  background-image: url("images/services-background.png");
  color: var(--services-ink);
}

.section-heading {
  position: absolute;
  width: 24.0625%;
  aspect-ratio: 462 / 94;
}

.section-heading__symbol,
.section-heading__title,
.section-heading__divider {
  position: absolute;
  height: auto;
}

.section-heading__divider {
  left: 0;
  top: 65.9574%;
  width: 100%;
}

.section-heading--services {
  top: 10.8108%;
  left: 37.9167%;
}

.section-heading--services .section-heading__symbol {
  top: 2.1277%;
  left: -1.0823%;
  width: 14.2857%;
}

.section-heading--services .section-heading__title {
  top: 0;
  left: 18.8312%;
  width: 76.8398%;
}

.services__list {
  position: absolute;
  inset: 0;
}

.service {
  position: absolute;
  top: 34.0541%;
  width: 21.4583%;
  aspect-ratio: 1;
  contain: layout paint;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service--software {
  left: 16.7188%;
}

.service--mobile {
  left: 39.3229%;
}

.service--trade {
  left: 61.9271%;
}

.service__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.service__icon {
  position: absolute;
  height: auto;
}

.service--software .service__icon {
  top: 25%;
  left: 32.0388%;
  width: 35.6796%;
}

.service--mobile .service__icon {
  top: 20.8738%;
  left: 37.6214%;
  width: 25.9709%;
}

.service--trade .service__icon {
  top: 20.8738%;
  left: 31.068%;
  width: 37.1359%;
}

.service__name {
  position: absolute;
  top: 62.6214%;
  left: 0;
  width: 100%;
  margin: 0;
  color: var(--services-copy);
  font-size: calc(35.5 / 1920 * min(100vw, 1920px));
  font-weight: 400;
  line-height: calc(36 / 1920 * min(100vw, 1920px));
  text-align: center;
}

.service--software .service__name {
  transform: translateX(-1.58%);
}

.about {
  aspect-ratio: 1920 / 717;
  background-color: var(--about-base);
  background-image: url("images/about-background.png");
  background-size: 100% auto;
  color: var(--about-copy);
}

.section-heading--about {
  top: 14.0865%;
  left: 37.9167%;
}

.section-heading--about .section-heading__symbol {
  top: 0;
  left: 8.658%;
  width: 14.2857%;
}

.section-heading--about .section-heading__title {
  top: 1.0638%;
  left: 30.5195%;
  width: 56.9264%;
}

.about__copy {
  position: absolute;
  inset: 0;
  color: var(--about-copy);
  text-align: center;
}

.about__copy p {
  position: absolute;
  left: 4%;
  width: 92%;
  margin: 0;
  font-size: calc(29.5 / 1920 * min(100vw, 1920px));
  font-weight: 400;
}

.about__intro {
  top: 42.8173%;
  line-height: calc(47 / 1920 * min(100vw, 1920px));
}

.about__scope {
  top: 64.0167%;
  line-height: calc(48 / 1920 * min(100vw, 1920px));
}

@media (hover: hover) and (pointer: fine) {
  .service:hover {
    transform: translateY(-1.25%) scale(1.012);
  }
}

@media (max-width: 768px) {
  .hero,
  .services,
  .about {
    aspect-ratio: auto;
    background-size: cover;
  }

  .hero {
    min-height: 310px;
    background-position: 52% center;
  }

  .hero__title {
    top: 50%;
    left: 6%;
    width: 88%;
    transform: translateY(-50%);
  }

  .services {
    min-height: 0;
    padding: 70px 20px 82px;
    background-image: none;
  }

  .section-heading {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 462px);
    margin-inline: auto;
  }

  .services__list {
    position: relative;
    display: grid;
    gap: 26px;
    margin-top: 76px;
  }

  .service {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 412px);
    margin-inline: auto;
  }

  .service__name {
    font-size: clamp(27px, 8.5vw, 35px);
    line-height: 1.05;
  }

  .about {
    min-height: 650px;
    padding: 78px 24px 94px;
    background-position: center bottom;
  }

  .about__copy {
    position: relative;
    margin-top: 94px;
  }

  .about__copy p {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    font-size: 20px;
    line-height: 1.55;
  }

  .about__copy br {
    display: none;
  }

  .about__scope {
    margin-top: 48px !important;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 245px;
  }

  .services {
    padding-inline: 14px;
  }

  .services__list {
    gap: 18px;
  }

  .about {
    min-height: 690px;
    padding-inline: 20px;
  }

  .about__copy p {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service {
    transition: none;
  }

  .service:hover {
    transform: none;
  }
}
