/* A shared palette and grid for the two homepage showcases. */
.page-home {
  --home-dark: #030405;
  --home-paper: #e8e7e2;
  --home-silver: #d4d5ce;
  --home-ink: #1c2023;
  --home-muted-dark: #a9b2b8;
  --home-muted-light: #536067;
  --home-gutter: clamp(24px, 5.6vw, 96px);
  --home-section-space: clamp(88px, 8vw, 144px);
}

.page-home .home-inset {
  padding-inline: max(var(--home-gutter), calc((100% - 1680px) / 2));
}

.page-home .home-intro,
.page-home .home-autonomy,
.page-home .home-close,
.page-home #footer {
  background: var(--home-dark);
  color: var(--home-silver);
}

.page-home .home-intro {
  padding-top: clamp(72px, 7vw, 120px);
  padding-bottom: clamp(88px, 8vw, 144px);
}

.page-home .home-intro-lead[data-type] {
  max-width: 35ch;
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -.025em;
}

.page-home .home-intro-detail[data-type] {
  max-width: 51ch;
  margin-top: 32px;
  margin-left: auto;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.45;
  color: var(--home-muted-dark);
  letter-spacing: -.015em;
}

.page-home .home-software,
.page-home .home-autonomy {
  padding-block: var(--home-section-space);
  overflow-x: clip;
}

.page-home .home-software {
  background: var(--home-paper);
  color: var(--home-ink);
}

.page-home .home-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr);
  gap: clamp(48px, 6vw, 100px);
  align-items: end;
  margin-bottom: 0;
}

.page-home .home-heading[data-type] {
  min-width: 0;
  margin: 0;
  font-size: clamp(64px, 6.6vw, 104px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.page-home .home-summary[data-type] {
  min-width: 0;
  max-width: 30ch;
  margin: 0;
  padding-bottom: 5px;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -.012em;
  color: var(--home-muted-light);
}

.page-home .home-autonomy .home-summary {
  color: var(--home-muted-dark);
}

.page-home [data-home-heading] .motion-line-mask {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow: clip;
  padding-bottom: .12em;
  margin-bottom: -.12em;
}

.page-home [data-home-heading] .motion-line { display: block; }
.page-home [data-heading-state] br { display: none; }
.page-home [data-heading-state="waiting"] .motion-line {
  transform: translateY(110%);
}

.page-home .home-section-end {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

.page-home .home-link,
.page-home .home-link[data-type] {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  max-width: 100%;
  min-height: 48px;
  padding-block: 8px;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -.01em;
}

.page-home .home-link > span:first-child {
  min-width: 0;
}

.page-home .home-link .arrow {
  flex: none;
  font-size: 27px;
}

.page-home .home-close {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  padding-top: 32px;
  padding-bottom: clamp(96px, 10vw, 160px);
}

.page-home .home-close-title[data-type] {
  font-size: clamp(72px, 7vw, 104px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.045em;
}

.page-home #footer .gutter {
  padding-inline: max(var(--home-gutter), calc((100% - 1680px) / 2));
}

/* The footer carries the same capability names across every page. */
#footer .footer-main {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding-block: 72px 88px;
}

#footer .footer-main > div > a[data-type] {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.4;
  padding-block: 10px;
}

#footer .footer-main .footer-capabilities > a[data-type] {
  font-size: clamp(24px, 2vw, 32px);
  letter-spacing: -.02em;
}

#footer .footer-legal p { flex: 1; }
#footer .footer-privacy { font-size: 16px; }

@media (max-width: 1100px) {
  .page-home .home-section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-home .home-summary[data-type] {
    max-width: 36ch;
  }
}

@media (max-width: 760px) {
  .page-home {
    --home-gutter: 24px;
    --home-section-space: 64px;
  }

  .page-home .home-intro {
    padding-block: 56px 72px;
  }

  .page-home .home-intro-lead[data-type] {
    font-size: clamp(28px, 5.2vw, 36px);
    line-height: 1.25;
  }

  .page-home .home-intro-detail[data-type] {
    margin-top: 28px;
    font-size: 22px;
  }

  .page-home .home-heading[data-type] {
    font-size: clamp(38px, 8vw, 58px);
    line-height: 1.04;
    letter-spacing: -.035em;
  }

  .page-home .home-section-head {
    margin-bottom: 0;
    gap: 24px;
  }

  .page-home .home-summary[data-type] {
    font-size: 22px;
    line-height: 1.45;
  }

  .page-home .home-section-end {
    margin-top: 24px;
  }

  .page-home .home-close {
    display: block;
    padding-top: 20px;
    padding-bottom: 80px;
  }

  .page-home .home-close-title[data-type] {
    font-size: clamp(48px, 10vw, 72px);
    line-height: 1.04;
    letter-spacing: -.035em;
  }

  .page-home .home-close .home-link {
    margin-top: 32px;
  }
}

@media (max-width: 760px) {
  #footer .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 48px;
  }
  #footer .footer-main > .brand { grid-column: auto; }
  #footer .footer-main > div > a[data-type] { font-size: 20px; }
  #footer .footer-main .footer-capabilities > a[data-type] { font-size: 26px; }
  #footer .footer-legal { flex-wrap: wrap; gap: 12px 24px; }
  #footer .footer-legal p { flex-basis: 100%; }
  #footer .footer-legal > a:last-child { margin-left: auto; }
}
