.trace-hero {
  min-height: clamp(540px, 50vw, 680px);
  display: grid;
  place-items: center;
  padding: clamp(74px, 8vw, 118px) 20px;
  color: var(--white);
  text-align: center;
  background-color: #0c2e70;
  background-image: linear-gradient(rgba(8, 37, 86, 0.05), rgba(8, 37, 86, 0.05)), url("../images/trace/trace_heading new.png");
  background-repeat: no-repeat;
  background-size: calc(100% + 96px) auto;
  background-position: center;
}

.trace-hero-content {
  width: min(920px, 100%);
}

.trace-hero .product-mark {
  margin: 0 0 38px;
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(48px, 5.9vw, 74px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.trace-subtitle {
  margin: 0;
  color: var(--white);
  font-family: "Questrial", Arial, sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trace-hero p:last-child {
  width: min(900px, 100%);
  margin: 40px auto 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 30px !important;
  line-height: 1.06 !important;
}

.trace-overview {
  padding: clamp(96px, 11vw, 150px) 0 clamp(88px, 10vw, 134px);
  background: var(--paper);
}

.trace-wrap {
  width: min(1030px, calc(100% - 36px));
  margin: 0 auto;
}

.overview-copy {
  width: min(880px, 100%);
}

.overview-copy h2 {
  margin: 0;
  color: #1157a0;
  font-family: "Questrial", Arial, sans-serif;
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0;
}

.overview-copy p {
  width: min(830px, 100%);
  margin: 36px 0 0;
  color: var(--ink);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.48;
}

.trace-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(950px, 100%);
  margin: 44px auto 62px;
}

.trace-card {
  min-height: 278px;
  padding: 28px 22px 24px;
  color: var(--white);
  background-color: var(--blue);
  background-image: url("../images/trace-v4/trace_1_bg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  border-radius: 6px;
  box-shadow: 0 18px 38px rgba(5, 47, 110, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.trace-card:nth-child(2) {
  background-image: url("../images/trace-v4/trace_2_bg.png");
}

.trace-card:nth-child(3) {
  background-image: url("../images/trace-v4/trace_3_bg.png");
}

.trace-card:hover,
.trace-card:focus-within {
  transform: translateY(-7px);
  box-shadow: 0 25px 54px rgba(5, 47, 110, 0.25);
}

.trace-card img {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  box-shadow: none;
}

.trace-card h3 {
  min-height: 58px;
  margin: 0 0 14px;
  color: var(--white);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 700;
  line-height: 1.2;
}

.trace-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: 15px;
  line-height: 1.45;
}

.trace-cta {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.trace-cta p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(16px, 1.35vw, 20px);
}

.trace-cta .button {
  min-width: 166px;
}

@media (max-width: 920px) {
  .trace-overview {
    padding-top: 82px;
  }

  .trace-card-grid {
    grid-template-columns: 1fr;
    width: min(420px, 100%);
  }

  .trace-card {
    min-height: 0;
  }

  .trace-card h3 {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .trace-hero {
    min-height: 500px;
    background-size: cover;
    background-position: center;
  }

}

/* Match homepage V4 typography scale. */
.trace-hero .product-mark {
  font-size: var(--hero-heading-size);
}

.trace-subtitle {
  font-size: var(--section-heading-size);
}

.overview-copy h2 {
  font-size: var(--section-heading-size);
}

.trace-card h3 {
  font-size: var(--card-heading-size);
}

.overview-copy p,
.trace-card p,
.trace-cta p {
  font-size: var(--body-copy-size);
}

/* Fixed V4 site-wide type scale. */
main h1 {
  font-size: 43px !important;
}

main h2 {
  font-size: 40px !important;
}

main p:not(.product-mark) {
  font-size: 19.4px !important;
}

.trace-hero .product-mark {
  font-size: 58px !important;
}

.trace-hero p:last-child {
  font-size: 36px !important;
  line-height: 1.06 !important;
}

@media (max-width: 640px) {
  .trace-hero .product-mark {
    font-size: clamp(43px, 12vw, 58px) !important;
  }

  .trace-hero p:last-child {
    font-size: clamp(22px, 6vw, 36px) !important;
  }
}
