/* Homepage Emotional Lab — selected asymmetric lead-image composition. */
html.is-home-page .page > section#emotion-lab.journal-list--editorial {
  position: relative;
  display: block;
  padding: clamp(28px, 2.8vw, 42px) var(--section-x) clamp(54px, 5vw, 78px);
}

html.is-home-page .page > section#emotion-lab > .section-head {
  position: absolute;
  z-index: 2;
  top: clamp(28px, 2.8vw, 42px);
  right: var(--section-x);
  left: 59.5%;
  display: block;
  margin: 0;
}

html.is-home-page .page > section#emotion-lab > .section-head .eyebrow {
  margin-bottom: 14px;
}

html.is-home-page .page > section#emotion-lab > .section-head h2 {
  max-width: none;
  font-size: clamp(44px, 3.5vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  white-space: nowrap;
}

html.is-home-page .page > section#emotion-lab > .section-head .text-link {
  justify-self: start;
  margin-top: clamp(22px, 2.1vw, 32px);
}

.home-page .emotion-triptych {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(0, 0.5fr));
  gap: clamp(16px, 1.7vw, 26px);
  align-items: start;
}

.home-page .emotion-triptych-card {
  display: block;
  min-width: 0;
  color: var(--ink);
}

.home-page .emotion-triptych-card:nth-child(n + 2) {
  /* Derived from the 1.55fr/0.5fr column ratio and both media ratios so
     the three image bottoms and caption rules share one exact baseline. */
  padding-top: 80.53%;
}

.home-page .emotion-triptych-media {
  position: relative;
  aspect-ratio: 0.69 / 1;
  margin: 0;
  overflow: hidden;
  background: var(--stone);
}

.home-page .emotion-triptych-card:first-child .emotion-triptych-media {
  aspect-ratio: 1.375 / 1;
}

.home-page .emotion-triptych-media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(85, 87, 84, 0.12);
  content: "";
  pointer-events: none;
}

.home-page .emotion-triptych-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 700ms ease;
}

.home-page .emotion-triptych-label {
  position: absolute;
  z-index: 2;
  top: clamp(18px, 1.65vw, 26px);
  left: clamp(18px, 1.65vw, 26px);
  display: grid;
  width: max-content;
  max-width: calc(100% - clamp(36px, 3.3vw, 52px));
  gap: clamp(9px, 0.75vw, 12px);
  margin: 0;
  color: rgba(73, 75, 72, 0.96);
  font-family: var(--font-latin);
  font-size: clamp(11px, 0.88vw, 14px);
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
  text-wrap: balance;
  pointer-events: none;
}

.home-page .emotion-triptych-label::after {
  width: clamp(34px, 3.2vw, 50px);
  height: 1px;
  background: rgba(142, 145, 141, 0.92);
  content: "";
}

.home-page .emotion-triptych-card:nth-child(2) .emotion-triptych-label {
  max-width: 130px;
}

.home-page .emotion-triptych-card:first-child .emotion-triptych-media img,
.home-page .emotion-triptych-card:last-child .emotion-triptych-media img {
  object-position: center center;
}

.home-page .emotion-triptych-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line-strong);
}

.home-page .emotion-triptych-caption h3 {
  max-width: none;
  font-family: var(--font-editorial-cn);
  font-size: clamp(25px, 2vw, 31px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  white-space: nowrap;
}

.home-page .emotion-triptych-card:first-child .emotion-triptych-caption h3 {
  font-size: clamp(28px, 2.25vw, 34px);
}

@media (hover: hover) and (pointer: fine) {
  .home-page .emotion-triptych-card:hover .emotion-triptych-media img {
    transform: scale(1.018);
    filter: contrast(1.015);
  }
}

@media (max-width: 980px) {
  html.is-home-page .page > section#emotion-lab.journal-list--editorial {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  html.is-home-page .page > section#emotion-lab > .section-head {
    position: static;
    margin-bottom: 38px;
  }

  .home-page .emotion-triptych {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2.4vw, 24px);
  }

  .home-page .emotion-triptych-card:nth-child(n + 2) {
    padding-top: 0;
  }

  .home-page .emotion-triptych-media,
  .home-page .emotion-triptych-card:first-child .emotion-triptych-media {
    aspect-ratio: 1122 / 1402;
  }

  .home-page .emotion-triptych-caption h3,
  .home-page .emotion-triptych-card:first-child .emotion-triptych-caption h3 {
    font-size: clamp(23px, 3.4vw, 30px);
  }
}

@media (max-width: 760px) {
  html.is-home-page .page > section#emotion-lab > .section-head h2 {
    font-size: clamp(30px, 7.2vw, 36px);
    letter-spacing: -0.04em;
    line-height: 1.16;
  }

  .home-page .emotion-triptych {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .home-page .emotion-triptych-caption {
    margin-top: 14px;
    padding-top: 12px;
  }

  .home-page .emotion-triptych-label {
    top: 17px;
    left: 17px;
    max-width: calc(100% - 34px);
    gap: 9px;
    font-size: 11px;
    letter-spacing: 0.13em;
  }

  .home-page .emotion-triptych-label::after {
    width: 38px;
  }

  .home-page .emotion-triptych-card:nth-child(2) .emotion-triptych-label {
    max-width: 145px;
  }

  .home-page .emotion-triptych-caption h3,
  .home-page .emotion-triptych-card:first-child .emotion-triptych-caption h3 {
    font-size: clamp(25px, 7.4vw, 30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .emotion-triptych-media img {
    transition: none;
  }
}
