.ed-psychology .psy-hero {
  --psy-accent: #62243b;
  --psy-muted: #5e5351;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-areas: "copy portrait" "actions portrait";
  align-content: center;
  align-items: center;
  max-width: 88rem;
  min-height: min(46rem, calc(100svh - 6rem));
  margin-inline: auto;
  gap: clamp(.75rem, 2.5svh, 1.75rem) clamp(2rem, 7vw, 7rem);
  padding: clamp(1.25rem, 4svh, 3rem) clamp(1.25rem, 5vw, 5rem);
  color: var(--psy-accent);
}

.psy-hero__copy {
  grid-area: copy;
  align-self: end;
}

.ed-psychology .psy-hero__eyebrow {
  margin: 0 0 clamp(.75rem, 3svh, 1.75rem);
  color: var(--psy-accent);
}

.psy-hero__eyebrow span {
  padding-inline: .35em;
  color: var(--psy-muted);
}

.ed-psychology .psy-hero h1 {
  margin: 0 0 clamp(.65rem, 2.5svh, 1.5rem);
  color: inherit;
  font-size: clamp(2.55rem, min(5.2vw, 9.3svh), 5.7rem);
  line-height: .99;
  letter-spacing: -.05em;
}

.psy-hero h1 em {
  display: block;
}

.ed-psychology .psy-hero__intro,
.ed-psychology .psy-hero__duration {
  max-width: 47ch;
  margin: 0;
  color: var(--psy-muted);
  line-height: 1.5;
}

.psy-hero__portrait {
  grid-area: portrait;
  width: min(100%, 47svh);
  justify-self: end;
  margin: 0;
}

.psy-hero__portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
}

.psy-hero__portrait figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .15rem .65rem;
  margin-top: .65rem;
  padding-top: .55rem;
  border-top: 1px solid #62243b38;
  color: var(--psy-muted);
  font-size: .75rem;
  line-height: 1.4;
}

.psy-hero__portrait strong {
  color: var(--psy-accent);
  font-weight: 600;
}

.psy-hero__actions {
  grid-area: actions;
  display: grid;
  justify-items: start;
  align-self: start;
  gap: .45rem;
}

.ed-psychology .psy-hero .psy-hero__cta {
  min-height: 44px;
  padding: .7rem .95rem;
  border: 1px solid var(--psy-accent);
  border-radius: 0;
  background: transparent;
  color: var(--psy-accent);
  transition: background-color .2s, color .2s;
}

.ed-psychology .psy-hero .psy-hero__cta:hover {
  background: var(--psy-accent);
  color: #fff;
}

.ed-psychology .psy-hero__duration {
  font-size: .82rem;
}

.psy-hero__links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 1.5rem;
}

.psy-hero .psy-hero__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--psy-accent);
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: .25em;
}

.psy-hero a:focus-visible {
  outline: 2px solid var(--psy-accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .psy-hero__portrait img {
    animation: psy-portrait-enter .5s ease-out both;
  }

  @keyframes psy-portrait-enter {
    from { opacity: .65; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 767px) {
  .psy-hero__links {
    flex-direction: column;
  }

  .ed-psychology .psy-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "portrait" "actions";
    min-height: 0;
    gap: .8rem;
    padding: 1rem clamp(1rem, 5vw, 2rem);
  }

  .ed-psychology .psy-hero h1 {
    font-size: clamp(2rem, 8vw, 3.75rem);
  }

  .ed-psychology .psy-hero__intro {
    font-size: .9rem;
  }

  .ed-psychology .psy-hero .psy-hero__portrait {
    width: min(100%, 30rem);
    height: auto;
    justify-self: start;
  }

  .psy-hero__portrait img {
    height: clamp(9rem, 25svh, 16rem);
    aspect-ratio: auto;
    object-position: center 24%;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .ed-psychology .psy-hero {
    gap: .55rem;
    padding-block: .65rem;
  }

  .psy-hero__portrait {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: .8rem;
  }

  .psy-hero__portrait img {
    height: 7rem;
  }

  .psy-hero__portrait figcaption {
    margin-top: 0;
  }

  .psy-hero__actions {
    gap: .2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-psychology .psy-hero .psy-hero__cta {
    transition: none;
  }
}
