/* Balanced portfolio typography and responsive controls */
.rh-portfolio-motion .rh-rotator-head h2 {
  max-width: 760px;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.rh-portfolio-motion .rh-rotator-head > div > p {
  max-width: 520px;
  font-size: clamp(15px, 1.3vw, 17px);
}

.rh-rotator figcaption h3 {
  max-width: 680px;
  font-size: clamp(32px, 4vw, 54px);
}

.rh-rotator-controls button {
  display: inline-grid;
  width: clamp(46px, 4vw, 52px);
  height: clamp(46px, 4vw, 52px);
  place-items: center;
  border-radius: 2px;
  touch-action: manipulation;
}

.project-pdf-link,
.team-cta,
.portfolio a {
  display: inline-flex;
  min-height: 46px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.rh-rotator-controls button:focus-visible,
.project-pdf-link:focus-visible,
.team-cta:focus-visible,
.portfolio a:focus-visible {
  outline: 3px solid #34e4ee;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .rh-portfolio-motion .rh-rotator-head h2 {
    max-width: 620px;
    font-size: clamp(36px, 7vw, 56px);
  }

  .rh-rotator-head > div {
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  .rh-portfolio-motion .rh-rotator-head h2 {
    font-size: clamp(32px, 9.5vw, 44px);
    line-height: 1.06;
  }

  .rh-portfolio-motion .rh-rotator-head > div > p {
    font-size: 16px;
    line-height: 1.65;
  }

  .rh-rotator-controls {
    gap: 14px;
  }

  .rh-rotator-controls button {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
  }

  .rh-rotator figcaption h3 {
    font-size: clamp(28px, 8.5vw, 40px);
  }

  .project-pdf-link,
  .team-cta,
  .portfolio a {
    width: 100%;
    min-height: 48px;
    padding: 14px 18px;
    font-size: 12px;
  }
}
