/* The home page uses the existing palette with a quieter editorial layout. */
.p1-home-page .p1-header {
  box-shadow: 0 1px 12px rgba(23, 45, 56, .035);
}

.p1-home-page .p1-header-inner {
  min-height: 82px;
}

.p1-home-page .p1-desktop-nav a {
  position: relative;
  font-weight: 500;
}

.p1-home-page .p1-desktop-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -28px;
  left: 0;
  height: 2px;
  background: var(--p1-brand);
  content: "";
}

.p1-home-page .p1-main {
  padding-bottom: 0;
}

.p1-home-page .p1-home-hero {
  min-height: calc(100svh - 82px);
  max-height: 960px;
  padding-top: clamp(72px, 9vw, 128px);
  padding-bottom: clamp(72px, 9vw, 128px);
}

.p1-home-page .p1-home-hero .p1-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-size: 13px;
  letter-spacing: .14em;
}

.p1-home-page .p1-home-hero .p1-eyebrow::before {
  width: 28px;
  height: 1px;
  flex: none;
  background: var(--p1-brand);
  content: "";
}

.p1-home-page .p1-hero.p1-home-hero h1 {
  max-width: 690px;
  margin-bottom: 28px;
  font-size: clamp(37px, 4.4vw, 54px);
  line-height: 1.31;
  letter-spacing: -.035em;
  font-weight: 650;
}

.p1-home-page .p1-home-hero .p1-lead {
  max-width: 590px;
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.82;
}

.p1-home-page .p1-home-hero .p1-lead + .p1-lead {
  margin-top: 10px;
}

.p1-home-page .p1-home-hero .p1-actions {
  margin-top: 36px;
  gap: 12px;
}

.p1-home-page .p1-home-hero .p1-button {
  min-height: 48px;
  padding: 11px 23px;
}

.p1-home-page .p1-section {
  position: relative;
  padding: clamp(76px, 8.5vw, 112px) 8px;
  border-bottom: 0;
  isolation: isolate;
}

.p1-home-page .p1-section:not(.p1-comparison) + .p1-section:not(.p1-comparison) {
  border-top: 1px solid var(--p1-line);
}

.p1-home-page .p1-home-why::before,
.p1-home-page .p1-home-capabilities::before,
.p1-home-page .p1-home-process::before,
.p1-home-page .p1-comparison::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  right: calc(50% - 50vw);
  left: calc(50% - 50vw);
  background: var(--p1-white);
  content: "";
}

.p1-home-page .p1-comparison::before {
  background: #e9f0f0;
}

.p1-home-page .p1-section-head {
  display: block;
  max-width: none;
  margin-bottom: 46px;
}

.p1-home-page .p1-section-head .p1-eyebrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: none;
  margin: 0 0 25px;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .06em;
}

.p1-home-page .p1-section-head .p1-eyebrow::before {
  width: 30px;
  height: 1px;
  background: var(--p1-brand);
  content: "";
}

.p1-home-page .p1-section h2 {
  max-width: 1024px;
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.42;
  letter-spacing: -.025em;
  font-weight: 620;
}

.p1-home-page .p1-home-why h2 {
  font-size: clamp(26px, 2.65vw, 34px);
  line-height: 1.56;
}

.p1-home-page .p1-grid {
  gap: 28px;
}

.p1-home-page .p1-card {
  min-height: 220px;
  padding: 27px 12px 8px 0;
  border: 0;
  border-top: 1px solid var(--p1-line);
  border-radius: 0;
  background: transparent;
}

.p1-home-page .p1-card h3 {
  margin-bottom: 15px;
  font-size: 21px;
  line-height: 1.42;
  font-weight: 650;
}

.p1-home-page .p1-card p {
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.88;
}

.p1-home-page .p1-card .text-link {
  align-self: flex-start;
  font-size: 14px;
  text-decoration-color: var(--p1-line);
  text-underline-offset: 5px;
}

.p1-home-page .p1-card .text-link:hover {
  text-decoration-color: currentColor;
}

.p1-home-page .p1-home-difference .p1-grid,
.p1-home-page .p1-home-why .p1-grid,
.p1-home-page .p1-home-works .p1-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.p1-home-page .p1-home-difference .p1-card:last-child {
  margin-top: -1px;
  padding: 27px 24px 24px;
  border-top: 2px solid var(--p1-brand);
  background: #e9f0f0;
}

.p1-home-page .p1-home-method .p1-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 60px;
  row-gap: 24px;
}

.p1-home-page .p1-home-method .p1-card {
  min-height: 180px;
}

.p1-home-page .p1-home-experience .p1-grid,
.p1-home-page .p1-home-capabilities .p1-grid,
.p1-home-page .p1-home-process .p1-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.p1-home-page .p1-home-capabilities .p1-card {
  min-height: 270px;
  padding: 27px 22px 23px;
  border: 1px solid var(--p1-line);
  border-top: 2px solid var(--p1-brand);
  background: var(--p1-bg);
}

.p1-home-page .p1-home-works .p1-card {
  min-height: 260px;
  padding-right: 26px;
}

.p1-home-page .p1-home-process .p1-card {
  position: relative;
  min-height: 190px;
  padding-top: 32px;
}

.p1-home-page .p1-home-process .p1-card::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--p1-brand);
  content: "";
}

.p1-home-page .p1-comparison .p1-section-head {
  max-width: none;
  margin-bottom: 44px;
}

.p1-home-page .p1-comparison-intro {
  max-width: 1024px;
  margin: 22px 0 12px;
}

.p1-home-page .p1-comparison-source {
  margin: 0;
}

.p1-home-page .p1-comparison-question,
.p1-home-page .p1-comparison-answer {
  border-radius: 4px;
}

.p1-home-page .p1-comparison-question[open] {
  box-shadow: none;
}

.p1-home-page .p1-comparison-question summary {
  padding: 27px 30px;
}

.p1-home-page .p1-cta {
  position: relative;
  margin: 0;
  padding: 68px 8px 76px;
  border-radius: 0;
  isolation: isolate;
}

.p1-home-page .p1-cta::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  right: calc(50% - 50vw);
  left: calc(50% - 50vw);
  background: var(--p1-brand);
  content: "";
}

.p1-home-page .p1-cta h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.4;
}

.p1-home-page .p1-cta p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.85;
}

.p1-home-page .p1-cta .p1-button {
  flex: none;
  min-height: 49px;
  padding-inline: 28px;
}

@media (max-width: 1000px) {
  .p1-home-page .p1-header-inner {
    min-height: 76px;
  }

  .p1-home-page .p1-home-hero {
    min-height: calc(100svh - 76px);
  }

  .p1-home-page .p1-home-difference .p1-grid,
  .p1-home-page .p1-home-why .p1-grid,
  .p1-home-page .p1-home-works .p1-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p1-home-page .p1-home-difference .p1-card:last-child,
  .p1-home-page .p1-home-why .p1-card:last-child,
  .p1-home-page .p1-home-works .p1-card:last-child {
    grid-column: 1 / -1;
  }

  .p1-home-page .p1-home-experience .p1-grid,
  .p1-home-page .p1-home-capabilities .p1-grid,
  .p1-home-page .p1-home-process .p1-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .p1-home-page .p1-home-hero {
    max-height: none;
    padding-top: 68px;
    padding-bottom: 70px;
  }

  .p1-home-page .p1-hero.p1-home-hero h1 {
    max-width: 590px;
    font-size: clamp(34px, 5.8vw, 43px);
  }

  .p1-home-page .p1-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .p1-home-page .p1-section-head {
    display: block;
    margin-bottom: 36px;
  }

  .p1-home-page .p1-section-head .p1-eyebrow {
    max-width: none;
    margin: 0 0 24px;
    gap: 12px;
  }

  .p1-home-page .p1-section h2 {
    font-size: clamp(27px, 4.4vw, 34px);
  }

  .p1-home-page .p1-home-why h2 {
    font-size: clamp(25px, 4vw, 31px);
  }

  .p1-home-page .p1-comparison-intro {
    margin: 22px 0 12px;
  }

  .p1-home-page .p1-comparison-source {
    margin: 0;
  }

  .p1-home-page .p1-home-difference .p1-grid,
  .p1-home-page .p1-home-why .p1-grid,
  .p1-home-page .p1-home-works .p1-grid {
    grid-template-columns: 1fr;
  }

  .p1-home-page .p1-card,
  .p1-home-page .p1-home-works .p1-card,
  .p1-home-page .p1-home-capabilities .p1-card {
    min-height: 0;
  }

  .p1-home-page .p1-home-difference .p1-card:last-child {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .p1-home-page .p1-header-inner {
    min-height: 64px;
  }

  .p1-home-page .p1-main {
    padding-bottom: 0;
  }

  .p1-home-page .p1-home-hero {
    min-height: calc(100svh - 64px);
    padding: 56px 23px 62px;
  }

  .p1-home-page .p1-home-hero .p1-eyebrow {
    gap: 10px;
    font-size: 11px;
  }

  .p1-home-page .p1-home-hero .p1-eyebrow::before {
    width: 18px;
  }

  .p1-home-page .p1-hero.p1-home-hero h1 {
    font-size: clamp(31px, 8vw, 38px);
    line-height: 1.34;
  }

  .p1-home-page .p1-home-hero .p1-lead {
    font-size: 15px;
    line-height: 1.82;
  }

  .p1-home-page .p1-home-hero .p1-actions {
    margin-top: 26px;
  }

  .p1-home-page .p1-section {
    padding: 62px 2px;
  }

  .p1-home-page .p1-section-head {
    margin-bottom: 31px;
  }

  .p1-home-page .p1-section h2 {
    font-size: 28px;
  }

  .p1-home-page .p1-home-why h2 {
    font-size: 25px;
  }

  .p1-home-page .p1-grid {
    gap: 22px;
  }

  .p1-home-page .p1-home-method .p1-grid,
  .p1-home-page .p1-home-experience .p1-grid,
  .p1-home-page .p1-home-capabilities .p1-grid,
  .p1-home-page .p1-home-process .p1-grid {
    grid-template-columns: 1fr;
  }

  .p1-home-page .p1-card {
    padding: 23px 0 3px;
  }

  .p1-home-page .p1-card h3 {
    font-size: 19px;
  }

  .p1-home-page .p1-home-method .p1-card,
  .p1-home-page .p1-home-process .p1-card {
    min-height: 0;
  }

  .p1-home-page .p1-home-capabilities .p1-card {
    padding: 23px;
  }

  .p1-home-page .p1-comparison-question summary {
    padding: 20px 16px;
  }

  .p1-home-page .p1-cta {
    padding: 60px 2px 66px;
  }
}
