.web-page {
  --web-content-width: 90rem;
  overflow-wrap: break-word;
}

.web-container {
  width: min(100%, var(--web-content-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.web-page a {
  color: var(--color-ink);
}

.web-page a:hover {
  color: var(--color-accent);
}

.web-page a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: .375rem;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 1rem;
  left: var(--gutter);
  max-width: calc(100% - 2 * var(--gutter));
  padding: .75rem 1rem;
  background: var(--color-paper);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.line-icon {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.web-top {
  position: relative;
  isolation: isolate;
  overflow: clip;
  width: min(100%, 120rem);
  margin-inline: auto;
}

.web-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-top: 1.5rem;
}

.web-header .brand__tagline {
  color: #46546a;
}

.brand__link {
  display: block;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  color: #46546a;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
}

.back-link span {
  font-size: 1.25rem;
}

.web-intro {
  padding-top: 1.5rem;
}

.web-eyebrow {
  margin-bottom: 1rem;
  color: #46546a;
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.web-title {
  font-size: clamp(1.75rem, 7.8vw + .25rem, 3.875rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.04em;
}

.web-title > span,
.web-title__last {
  display: block;
  color: var(--color-accent);
}

.web-description {
  position: relative;
  isolation: isolate;
  max-width: 35rem;
  margin-top: 1.375rem;
  color: #46546a;
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -.025em;
}

.web-description::before {
  display: none;
  position: absolute;
  z-index: -1;
  inset: -.75rem -.875rem;
  background: linear-gradient(90deg, #ffffffb3, #fffffff2 65%);
  filter: blur(.625rem);
  content: "";
}

.web-categories {
  display: none;
}

.web-mobile-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1.25;
  margin-top: .5rem;
}

.web-mobile-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.web-mobile-scene::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff, #fff0 18%, #fff0 80%, #fff);
  content: "";
}

.web-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  height: 35rem;
  overflow: hidden;
  pointer-events: none;
}

.web-backdrop img {
  display: block;
  width: 100%;
  height: 200%;
  object-fit: cover;
  object-position: center top;
}

.web-backdrop::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #fffffff2, #ffffffc9 55%, #ffffff8c),
    linear-gradient(180deg, #fff0 20%, #ffffff80 50%, #fff 85%);
  content: "";
}

.web-content {
  padding-top: 1.5rem;
}

.web-section {
  padding-block: 1.5rem 2rem;
}

.web-section + .web-section {
  border-top: 1px solid var(--color-rule);
}

.web-section__title {
  margin-bottom: 1.75rem;
  font-size: clamp(1.5rem, 5.8vw, 2.625rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.directions__grid {
  display: grid;
  gap: 1.5rem;
}

.direction {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 1rem;
  align-content: start;
  min-width: 0;
}

.direction + .direction {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-rule);
}

.direction__icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin-top: .125rem;
}

.direction:not(.direction--company) .direction__icon {
  display: none;
}

.direction:not(.direction--company) .direction__number {
  grid-column: 1;
  grid-row: 1;
  color: #a8c7fa;
  font-size: 2.5rem;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.06em;
  white-space: nowrap;
}

.direction:not(.direction--company) .direction__copy {
  grid-row: 1;
}

.direction__number {
  grid-column: 2;
  color: #657b9e;
  font-size: .8125rem;
  font-weight: 550;
  line-height: 1.5;
}

.direction__copy {
  grid-column: 2;
  min-width: 0;
}

.direction__copy h3 {
  margin: .25rem 0 .5rem;
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.direction__copy p {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -.02em;
}

.direction__features {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .625rem;
  margin: .625rem 0 0;
  padding: 0;
  color: var(--color-accent);
  font-size: .8125rem;
  line-height: 1.6;
  list-style: none;
}

.direction__features li:not(:last-child)::after {
  margin-left: .625rem;
  content: "·";
}

.company-demo {
  display: none;
}

.scope__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(8rem, 50%)), 1fr));
  gap: 1.5rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope__grid li {
  min-width: 0;
  padding-right: 1rem;
}

.scope__grid li:nth-child(even) {
  padding-left: 1rem;
  padding-right: 0;
  border-left: 1px solid var(--color-rule);
}

.scope__grid .line-icon {
  margin-bottom: .75rem;
}

.scope__grid h3 {
  margin: 0 0 .25rem;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.scope__grid p,
.scope__note {
  color: var(--color-muted);
  font-size: .8125rem;
  line-height: 1.5;
}

.scope__note {
  margin-top: 1.5rem;
}

.process__list {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.process__step > span {
  position: relative;
  z-index: 1;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #a2b7d8;
  border-radius: 50%;
  color: #46546a;
  background: var(--color-paper);
  font-size: .8125rem;
  font-weight: 500;
}

.process__step p {
  min-width: 0;
}

.process__step:not(:last-child)::after {
  position: absolute;
  top: 2.25rem;
  bottom: -1.25rem;
  left: 1.125rem;
  width: 1px;
  background: var(--color-rule);
  content: "";
}

.web-contact {
  margin-top: 1rem;
  padding-block: 2rem;
  background: linear-gradient(110deg, #edf6ff, #f8fbff);
}

.web-contact__layout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.web-contact__copy {
  min-width: 0;
}

.web-contact h2 {
  max-width: 28em;
  margin-bottom: .625rem;
  font-size: clamp(1.5rem, 5.8vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.web-contact p {
  max-width: 38em;
  color: #46546a;
  font-size: 1rem;
  line-height: 1.5;
}

.web-page .web-contact__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 2.75rem;
  max-width: 100%;
  padding: .5625rem 1.5rem;
  border: 1px solid var(--color-accent);
  border-radius: .375rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-paper);
  background: var(--color-accent);
  text-align: center;
  text-decoration: none;
}

.web-page .web-contact__link:hover {
  color: var(--color-paper);
  background: #0649d4;
  border-color: #0649d4;
}

.web-footer.footer {
  margin-top: 0;
  padding-block: 2rem;
}

@media (min-width: 40rem) {
  .web-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .back-link {
    padding: .375rem .75rem;
    background: #ffffffeb;
    border-radius: .25rem;
  }

  .web-intro {
    padding-top: 3rem;
  }

  .web-description {
    font-size: 1.25rem;
  }

  .web-section {
    padding-block: 2rem 2.5rem;
  }

  .direction {
    grid-template-columns: 3rem minmax(0, 1fr);
    column-gap: 1.5rem;
  }

  .direction__copy h3 {
    font-size: 1.5rem;
  }

  .direction__copy p {
    font-size: 1.125rem;
  }

  .direction__features {
    font-size: .9375rem;
  }

  .scope__grid li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }

  .scope__grid h3 {
    font-size: 1.0625rem;
  }

  .scope__grid p,
  .scope__note {
    font-size: .9375rem;
  }
}

@media (min-width: 64rem) {
  .web-header {
    padding-top: 2rem;
  }

  .web-intro {
    min-height: 32rem;
    padding-top: 4rem;
    padding-bottom: 5rem;
  }

  .web-eyebrow {
    font-size: .8125rem;
  }

  .web-title {
    max-width: 58%;
    font-size: clamp(2.75rem, 4.25vw, 4.25rem);
  }

  .web-title__last {
    display: inline;
  }

  .web-description {
    max-width: 49%;
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  }

  .web-categories {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    max-width: 55%;
    margin: 2rem 0 0;
    padding: 0;
    color: #46546a;
    font-size: .8125rem;
    line-height: 1.5;
    list-style: none;
  }

  .web-categories li:not(:last-child)::after {
    margin-left: 1rem;
    content: "·";
  }

  .web-mobile-scene {
    display: none;
  }

  .web-backdrop img {
    height: 100%;
    /* Keep the entire laptop visible when the hero is wider than the photo. */
    object-fit: contain;
    object-position: right bottom;
  }

  .web-backdrop {
    height: 100%;
  }

  .web-backdrop::after {
    background:
      linear-gradient(90deg, #fffffff2, #ffffffed 29%, #ffffffd9 43%, #ffffff99 54%, #fff0 67%),
      linear-gradient(180deg, #fff0 80%, #fff 100%);
  }

  .web-content {
    padding-top: 0;
  }

  .web-section {
    padding-block: 2rem 2.5rem;
  }

  .web-section__title {
    margin-bottom: 2rem;
    font-size: clamp(2rem, 2.8vw, 2.625rem);
  }

  .directions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4rem;
    row-gap: 2rem;
  }

  .direction {
    position: relative;
    grid-template-rows: auto 1fr;
    grid-template-columns: 3.75rem minmax(0, 1fr);
    column-gap: 1rem;
  }

  .direction + .direction {
    padding-top: 0;
    border-top: 0;
  }

  .direction:nth-child(2)::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -2rem;
    width: 1px;
    background: var(--color-rule);
    content: "";
  }

  .direction__icon {
    display: none;
  }

  .direction__number {
    grid-column: 1;
    grid-row: 1;
    color: #c3d5f3;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.04em;
  }

  .direction:not(.direction--company) .direction__number {
    font-size: 3.5rem;
    color: #a8c7fa;
  }

  .direction__copy {
    grid-row: 1;
  }

  .direction__copy h3 {
    margin-top: 0;
    font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  }

  .direction__features {
    margin-top: .75rem;
    color: var(--color-muted);
    font-size: .8125rem;
  }

  .direction--company {
    grid-column: 1 / -1;
    grid-template-columns: 3.75rem minmax(0, 1fr) minmax(16rem, 38%);
    align-items: center;
    padding-top: 2rem !important;
    border-top: 1px solid var(--color-rule) !important;
  }

  .company-demo {
    display: block;
    grid-column: 3;
    grid-row: 1;
    overflow: hidden;
    min-height: 7.5rem;
    border: 1px solid #e2e8f1;
    border-radius: .375rem;
  }

  .company-demo__nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: .875rem 1rem;
    background: #f3f6fa;
  }

  .company-demo__nav span {
    width: 1.5rem;
    height: .25rem;
    margin-right: auto;
    background: #64748b;
  }

  .company-demo__nav i {
    width: 2rem;
    height: .125rem;
    background: #bbc8db;
  }

  .company-demo__body {
    position: relative;
    padding: 1rem;
    background: #f6faff;
    font-size: .8125rem;
  }

  .company-demo__building {
    position: absolute;
    inset: 0 0 0 50%;
    background: repeating-linear-gradient(90deg, #7692a7 0 1px, #b9cddd 1px 1.25rem);
    clip-path: polygon(0 100%, 65% 0, 100% 30%, 100% 100%);
  }

  .scope__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .scope__grid li,
  .scope__grid li:nth-child(even) {
    display: block;
    padding-inline: 2rem;
    border-left: 1px solid var(--color-rule);
  }

  .scope__grid li:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .scope__grid li:last-child { padding-right: 0; }

  .process__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }

  .process__step {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }

  .process__step:not(:last-child)::after {
    top: 1.125rem;
    bottom: auto;
    left: 3rem;
    width: calc(100% - 1rem);
    height: 1px;
  }

  .web-contact {
    margin-top: 1.5rem;
    padding-block: 2.5rem;
  }

  .web-contact__layout {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
  }

  .web-page .web-contact__link {
    justify-self: end;
    min-height: 3.25rem;
    padding-block: .875rem;
  }

  .web-footer.footer { padding-block: 2.25rem; }
}

@media (forced-colors: active) {
  .web-backdrop { visibility: hidden; }
  .web-mobile-scene { display: none; }
  .web-title > span,
  .web-title__last { color: CanvasText; }
  .web-description::before { display: none; }
}
