:root {
  --white: #fff;
  --black: #222;
  --blue: #30657b;
  --red: #a32911;
  --gray-light: #8c8c8c;
}

:root {
  --theme-bg: var(--white);
  --theme-fg: var(--black);
  --theme-primary: var(--red);
  /* --theme-bg: var(--black);
  --theme-fg: var(--white);
  --theme-primary: var(--red); */

  --theme-primary-90: color-mix(in lab, var(--theme-primary) 90%, var(--theme-fg));
  --theme-primary-35: color-mix(in lab, var(--theme-primary) 35%, var(--theme-fg));
  --theme-fg-20: color-mix(in lab, var(--theme-fg) 20%, var(--theme-bg));
}

@media (prefers-color-scheme: dark) {
  :root {
  }
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  font-size: 62.5%;
}

html,
body {
  min-height: 100%;
  padding: 0;
  margin: 0;
  overscroll-behavior: contain;
}

body {
  position: relative;
  background-color: var(--theme-bg);
  color: var(--theme-fg);
  font-family: sans-serif;
  font-size: 1.8rem;
  line-height: 1.2;
}

h1,
h2,
h3 {
  padding: 0;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
  user-select: none;
}

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

/**/

.wrapper {
  max-width: 120rem;
  padding: 3rem;
  margin: auto;
}

/**/

.top {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-items: start;
  justify-content: space-between;
  padding: 3rem 3rem 0;
}

.top .cta {
  /* display: inline-block;
  padding: 0.5em 1em;
  border-radius: 0.4rem;
  background-color: var(--theme-fg-20);
  font-size: 0.8em; */
  color: var(--theme-fg-20);
}

/**/

.hero {
  padding: 2rem 0 calc(8vw + 2rem);
  text-align: center;
}

h1 {
  margin-bottom: 0.1em;
  color: var(--theme-primary-35);
  /* color: #30657b; */
  font-size: calc(4vw + 1rem);
  font-weight: bold;
}

.hero .description {
  max-width: 55rem;
  margin: 0 auto 4rem;
  margin-bottom: 4rem;
  line-height: 1.5;
}

.hero .cta {
  display: inline-block;
  padding: 0.5em 1em;
  border: solid 2px var(--theme-primary);
  border-radius: 0.4rem;
  background-color: var(--theme-primary);
  box-shadow: 0.03125em 0.0625em 0 0 #b32d1233;
  color: var(--theme-bg);
  font-size: 2.25rem;
  font-weight: bold;
}

/**/

h2 {
  margin-bottom: 0.5em;
  color: var(--theme-primary-35);
  /* color: #505354; */
  font-size: 3rem;
  font-weight: bold;
}

h3 {
  color: #608089;
  font-size: 2rem;
  font-weight: bold;
}

.subsection {
  margin-bottom: 3rem;
}

.featureGrid {
  display: grid;
  align-items: center;
  justify-content: center;
  grid-gap: 2rem;
  grid-template-areas:
    'AB'
    'AA'
    'BA'
    'BB'
    'CC';
  line-height: 1.45;
}

.group {
  white-space: nowrap;
}
.image1 {
  position: relative;
  height: 40vw;
  background: url('./pipeline.jpg') right top / cover no-repeat;
  grid-area: AB;
}
.image2 {
  position: relative;
  height: 40vw;
  background: url('./ast.jpg') right top / cover no-repeat;
  grid-area: BA;
}

.text1 {
  align-self: start;
  padding: 1em;
  padding-right: 5rem;
  grid-area: AA;
}
.text2 {
  padding: 1em;
  grid-area: BB;
}
.text3 {
  max-width: 80rem;
  padding: 1em 1em 2rem;
  margin: auto;
  grid-area: CC;
}

ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

li {
  margin-bottom: 0.25em;
  font-size: 1.15em;
}

li:before {
  display: inline-block;
  width: 1em;
  height: 1em;
  padding-left: 0.5em;
  background-image: url('check.svg');
  background-repeat: no-repeat;
  background-size: contain;
  content: '';
}

.leftTriangle {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
}

.rightTriangle {
  position: absolute;
  top: 0;
  right: 0;
  width: 2rem;
  transform: rotate(180deg);
}

.image {
  height: 100%;
}

@media (min-width: 800px) {
  h1 {
    font-size: 4.5rem;
  }

  .hero {
    padding: 2rem 0 10rem;
  }

  .top .cta {
    display: inline-block;
  }

  .featureGrid {
    align-items: center;
    justify-content: center;
    grid-template-areas:
      'AA AA AB AB'
      'BA BA BB BB'
      'CC CC CC CC';
    grid-template-columns: repeat(4, 1fr);
  }

  .text2 {
    padding-left: 5rem;
  }

  .text3 {
    padding: 5rem 5rem 2rem;
  }

  .image1 {
    height: 30rem;
  }

  .image2 {
    height: 30rem;
  }

  .leftTriangle,
  .rightTriangle {
    width: 5rem;
  }
}

.footer-wrapper {
  padding: 2rem 0 8rem 0;
  text-align: center;
}

.footer-wrapper .cta {
  display: inline-block;
  padding: 0.5em 1em;
  border-radius: 0.4rem;
  color: var(--theme-fg);
  font-size: 1.15em;
}
.footer-wrapper .cta:hover {
  color: var(--theme-primary);
}

.hidden {display: none;}

.contact-icon {
  display: inline-block;
  margin-right: 1ch;
  vertical-align: middle;
}