/* Final visual refinement layer for the approved homepage.
 * Keeps the approved information architecture and depth treatment while
 * correcting desktop scale, lower-page readability, timeline iconography,
 * research-card balance, principal-panel wrapping, and footer legibility.
 */

/* Give the site more authority on large desktop displays without changing
 * the compact composition on normal laptop and tablet widths. */
@media (min-width: 1180px) {
  body.home-v2 .wrap {
    width: min(1100px, calc(100% - 56px));
  }

  .home-v2 .header-v2__inner {
    grid-template-columns: 258px 1fr 184px;
    gap: 24px;
  }

  .home-v2 .nav-v2 {
    gap: 38px;
  }

  .home-v2-hero__grid {
    grid-template-columns: 540px 1fr;
    gap: 34px;
  }

  .home-v2-hero h1 {
    max-width: 550px;
    font-size: 50px;
  }

  .home-v2-hero__visual img {
    width: 468px;
  }
}

/* Improve baseline readability. Tiny type was making the lower half feel
 * like a compressed wireframe rather than a premium professional site. */
.home-v2-services h3,
.home-v2-research h3 {
  letter-spacing: .005em;
}

.home-v2-service-card {
  min-height: 166px;
  padding: 20px 15px 16px;
}

.home-v2-service-card h3 {
  font-size: 11.5px;
}

.home-v2-service-card p {
  max-width: 27ch;
  font-size: 10.5px;
  line-height: 1.5;
}

.home-v2-research__head {
  margin-bottom: 11px;
}

.home-v2-research__all {
  font-size: 9.5px;
  letter-spacing: .015em;
}

.home-v2-research-card {
  min-height: 158px;
  padding: 16px 14px 14px;
  grid-template-columns: 48px 1fr auto;
  column-gap: 11px;
}

.home-v2-research-card__mark {
  width: 42px;
  height: 48px;
}

.home-v2-research-card h3 {
  font-size: 10.8px;
  line-height: 1.2;
}

.home-v2-research-card__year {
  font-size: 9.5px;
}

.home-v2-research-card p {
  margin: 11px 0 8px;
  font-size: 10.5px;
  line-height: 1.48;
}

.home-v2-research-card a {
  font-size: 9.5px;
  letter-spacing: .01em;
}

/* Timeline milestones use the site's existing SVGs as masks instead of
 * background images. The source SVGs are white-stroked assets intended for
 * masks, so rendering them directly on a white tile made them invisible. */
.home-v2-timeline {
  padding-top: 16px;
  padding-bottom: 13px;
}

.home-v2-timeline__line {
  padding-top: 21px;
}

.home-v2-timeline__item {
  grid-template-columns: 48px 1fr;
  gap: 12px;
  min-height: 100px;
  padding-right: 20px;
}

.home-v2-timeline__icon {
  position: relative;
  width: 42px;
  height: 42px;
  font-size: 16px;
  border-color: rgba(24, 28, 26, .16);
}

.home-v2-timeline__copy strong {
  font-size: 10px;
  line-height: 1.2;
}

.home-v2-timeline__copy p {
  margin-top: 5px;
  font-size: 9.8px;
  line-height: 1.42;
}

.home-v2-timeline__item:nth-child(n+3) .home-v2-timeline__icon {
  font-size: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f4f5f2 100%);
}

.home-v2-timeline__item:nth-child(n+3) .home-v2-timeline__icon::before {
  content: "";
  position: absolute;
  inset: 9px;
  background: #151817;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.home-v2-timeline__item:nth-child(3) .home-v2-timeline__icon::before {
  mask-image: url("../img/icon-code.svg");
  -webkit-mask-image: url("../img/icon-code.svg");
}

.home-v2-timeline__item:nth-child(4) .home-v2-timeline__icon::before {
  mask-image: url("../img/icon-target.svg");
  -webkit-mask-image: url("../img/icon-target.svg");
}

.home-v2-timeline__item:nth-child(5) .home-v2-timeline__icon::before {
  mask-image: url("../img/icon-chip.svg");
  -webkit-mask-image: url("../img/icon-chip.svg");
}

/* Principal panel: stop credential wrapping and give the biography enough
 * breathing room while retaining the approved three-column composition. */
.home-v2-principal__panel {
  grid-template-columns: 194px minmax(0, 1fr) 320px;
  min-height: 164px;
}

.home-v2-principal__portrait {
  height: 164px;
}

.home-v2-principal__bio {
  padding: 15px 28px 13px 34px;
}

.home-v2-principal__bio h2 {
  font-size: 23px;
  line-height: 1.04;
}

.home-v2-principal__bio > p:not(.home-v2-principal__eyebrow) {
  max-width: 62ch;
  font-size: 9.7px;
  line-height: 1.48;
}

.home-v2-principal__credentials {
  flex-wrap: nowrap;
  margin-top: 12px;
  white-space: nowrap;
}

.home-v2-principal__credentials span {
  flex: 0 0 auto;
  padding-inline: 13px;
  font-size: 8.5px;
  letter-spacing: .01em;
  white-space: nowrap;
}

.home-v2-principal__proof {
  gap: 9px;
  padding-left: 21px;
  padding-right: 16px;
}

.home-v2-principal__proof-item {
  grid-template-columns: 29px 1fr;
  gap: 9px;
}

.home-v2-principal__proof-item .icon-mask {
  width: 23px;
  height: 23px;
}

.home-v2-principal__proof-item strong {
  font-size: 8.5px;
}

.home-v2-principal__proof-item p {
  font-size: 8.5px;
  line-height: 1.35;
}

/* The commitment strip and footer were visually disappearing because the
 * type was too small. Keep them quiet, but make them intentionally readable. */
.home-v2-commitment {
  min-height: 68px;
  align-items: center;
}

.home-v2-commitment h3 {
  font-size: 9.3px;
}

.home-v2-commitment p {
  margin-top: 4px;
  font-size: 9.3px;
  line-height: 1.4;
}

.home-v2 .footer-v2 {
  font-size: 9.5px;
}

.home-v2 .footer-v2__inner {
  min-height: 54px;
}

.home-v2 .footer-v2 nav {
  gap: 18px;
}

/* Preserve the compact layout below desktop sizes. */
@media (max-width: 1179px) {
  .home-v2-principal__panel {
    grid-template-columns: 194px minmax(0, 1fr) 300px;
  }

  .home-v2-principal__credentials span {
    padding-inline: 10px;
    font-size: 8px;
  }
}

@media (max-width: 900px) {
  .home-v2-principal__credentials {
    flex-wrap: wrap;
    row-gap: 5px;
    white-space: normal;
  }
}
