.home-main {
  overflow: hidden;
}

.home-hero,
.home-section,
.home-foundation,
.home-process,
.home-proof,
.home-portal {
  padding-inline: max(24px, calc((100vw - var(--max)) / 2));
}

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 700px;
  padding-block: 82px 92px;
  overflow: hidden;
  background: #f8faf9;
}

.home-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #f8faf9 0%, #f8faf9 43%, rgba(248, 250, 249, .98) 50%, rgba(248, 250, 249, .86) 57%, rgba(248, 250, 249, .48) 65%, rgba(248, 250, 249, .1) 76%, transparent 86%);
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  width: min(49%, 640px);
}

.home-hero h1 {
  max-width: 640px;
  font-size: clamp(3rem, 4.7vw, 4.55rem);
}

.home-hero .lead {
  max-width: 680px;
  color: #344052;
  font-size: clamp(1.08rem, 1.35vw, 1.24rem);
}

.home-hero-visual {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  display: block;
  width: min(62vw, 990px);
  margin: 0;
}

.home-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(160px, .32fr) minmax(300px, .82fr) minmax(300px, 1fr);
  gap: 50px;
  align-items: start;
  padding: 64px max(24px, calc((100vw - var(--max)) / 2));
  color: #dce4ef;
  background: #111c2d;
}

.home-intro .eyebrow {
  margin-top: 10px;
  color: #86cbc8;
}

.home-intro h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.home-intro > p:last-child {
  margin: 4px 0 0;
  color: #c6cede;
  font-size: 1.05rem;
}

.home-section {
  padding-block: 104px;
  background: #fff;
}

.home-section-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.home-section-heading h2 {
  margin-bottom: 0;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.home-service-grid article {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 30px;
  background: #fff;
}

.home-service-grid article > span,
.home-foundation-label,
.home-process li > span,
.home-proof-chain span,
.home-proof-chain small {
  color: var(--petrol-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-service-grid h3 {
  min-height: 2.35em;
  margin-top: 28px;
}

.home-service-grid p {
  flex-grow: 1;
  color: #465264;
}

.home-service-grid .home-service-accent {
  background: #eef5f4;
}

.home-foundation {
  padding-block: 104px;
  color: #c6cede;
  background: #172236;
}

.home-section-heading-light h2,
.home-foundation h3 {
  color: #fff;
}

.home-section-heading-light .eyebrow,
.home-foundation-label {
  color: #86cbc8;
}

.home-section-heading-light > p:last-child {
  max-width: 720px;
}

.home-foundation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .16);
}

.home-foundation-grid article {
  min-height: 280px;
  padding: 38px;
  background: #111c2d;
}

.home-foundation-grid h3 {
  margin: 16px 0;
  font-size: 1.8rem;
}

.home-foundation-grid p:not(.home-foundation-label) {
  max-width: 58ch;
}

.home-process {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 90px;
  padding-block: 104px;
  background: #eef1f4;
}

.home-process-copy {
  align-self: start;
}

.home-process ol,
.home-proof-chain {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-process li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid #cbd2da;
}

.home-process li:last-child {
  border-bottom: 1px solid #cbd2da;
}

.home-process li b {
  color: var(--navy);
  font-size: 1.15rem;
}

.home-process li p {
  margin: 4px 0 0;
  color: #465264;
}

.home-proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .76fr);
  gap: 84px;
  align-items: center;
  padding-block: 104px;
  background: #f4f0e8;
}

.home-proof-copy > p:not(.eyebrow) {
  max-width: 68ch;
  font-size: 1.08rem;
}

.home-proof-chain {
  padding: 18px 32px;
  color: #fff;
  background: #111c2d;
}

.home-proof-chain li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.home-proof-chain li:first-child {
  border-top: 0;
}

.home-proof-chain span,
.home-proof-chain small {
  color: #86cbc8;
}

.home-portal {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 100px;
  padding-block: 88px;
  background: #fff;
}

.home-portal p {
  font-size: 1.08rem;
}

footer img {
  width: 180px;
  height: auto;
}

@media (max-width: 1050px) {
  .home-hero {
    display: block;
    min-height: auto;
    padding-top: 72px;
  }

  .home-hero::after {
    display: none;
  }

  .home-hero-copy {
    width: auto;
    max-width: 800px;
  }

  .home-hero-visual {
    display: none;
  }

  .home-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-service-grid article {
    min-height: 280px;
  }
}

@media (max-width: 850px) {
  .home-intro,
  .home-process,
  .home-proof,
  .home-portal {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .home-intro {
    grid-template-columns: 1fr;
  }

  .home-intro .eyebrow {
    margin: 0;
  }

  .home-foundation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .home-hero,
  .home-section,
  .home-foundation,
  .home-process,
  .home-proof,
  .home-portal {
    padding-inline: 20px;
  }

  .home-hero {
    gap: 44px;
    padding-block: 56px 64px;
  }

  .home-hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.35rem);
  }

  .home-intro {
    padding-block: 52px;
  }

  .home-section,
  .home-foundation,
  .home-process,
  .home-proof,
  .home-portal {
    padding-block: 72px;
  }

  .home-service-grid {
    grid-template-columns: 1fr;
  }

  .home-service-grid article,
  .home-foundation-grid article {
    min-height: 0;
    padding: 28px 24px;
  }

  .home-service-grid h3 {
    min-height: 0;
  }

  .home-proof-chain {
    padding: 16px 22px;
  }

  .home-proof-chain li {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .home-proof-chain small {
    grid-column: 2;
  }

}
