/* The portfolio opens with the typography of the homepage. */
.pastel-creation .portfolio-page-intro {
  max-width: none;
  padding-block: clamp(.75rem, 3vw, 3rem) clamp(1.75rem, 4vw, 4rem);
  text-align: center;
}

.pastel-creation .portfolio-page-intro > .eyebrow {
  margin-block: 0 clamp(.9rem, 2vw, 1.5rem);
  color: var(--violet);
}

.pastel-creation .portfolio-page-intro > h1 {
  max-width: min(100%, 72rem);
  margin-block: 0;
  margin-inline: auto;
  font-size: clamp(2.125rem, 5.7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.03;
  text-wrap: balance;
}

.pastel-creation .portfolio-page-intro > h1 strong {
  color: #554467;
  font-weight: inherit;
}

.pastel-creation .portfolio-page-intro > .portfolio-page-lead {
  max-width: 53ch;
  margin-block: clamp(1rem, 2.25vw, 1.65rem) 0;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.3rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.pastel-creation .portfolio-page-intro ~ .ec-film--portfolio .ec-portfolio-intro {
  min-height: 0;
  padding-block: clamp(1.5rem, 4vw, 3.25rem);
}

.pastel-creation .portfolio-page-intro ~ .ec-film--portfolio :is(#ec-projects, .ec-case),
.pastel-creation .portfolio-page-intro {
  scroll-margin-top: 7rem;
}

/* The cinematic embed keeps its motion and project media. Its controls use Pastel. */
.pastel-creation .pastel-prose :is(.ec-orbit-current-link,.ec-case-link,.etch-btn-primary,.etch-btn-purple,.etch-btn-glass) > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  background: var(--plum);
  color: var(--ivory);
  font-size: .875rem;
  line-height: 1.4;
  text-decoration: none;
}

.pastel-creation .pastel-prose :is(.ec-case-link,.etch-btn-glass) > .wp-block-button__link {
  background: var(--night);
}

.pastel-creation .pastel-prose :is(.ec-orbit-current-link,.ec-case-link,.etch-btn-primary,.etch-btn-purple,.etch-btn-glass) > .wp-block-button__link:hover {
  border-color: var(--control-border);
  background: var(--lilac);
  color: var(--plum);
}

.pastel-creation .pastel-prose .ec-project-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--mist);
  color: var(--ink);
  font-size: .875rem;
}

.pastel-creation .pastel-prose .ec-project-index a:hover,
.pastel-creation .ec-carousel-nav button:hover {
  border-color: var(--control-border);
  background: var(--lilac);
}

.pastel-creation .ec-carousel-nav button {
  border-color: var(--control-border);
  background: var(--ivory);
  color: var(--ink);
}

.pastel-creation .pastel-prose .ec-case-copy .ec-case-hook {
  color: var(--ink);
}

.pastel-creation:has(#motion-toggle[data-motion-ready]) .ec-film--embed .ec-embed-controls {
  display: none;
}

.pastel-creation .ethet-normalized-page:has(.ec-film--hero, .portfolio-page-intro) > .ethet-section {
  padding-inline: 0 !important;
}

.pastel-creation .ethet-normalized-page > .pastel-creation-review-section {
  display: block !important;
  min-height: 0 !important;
}

.pastel-creation .pastel-creation-review-section .reviews {
  width: 100%;
  padding-inline: 0;
  padding-block: clamp(20px, 4vw, 64px);
}

.pastel-creation .pastel-creation-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.pastel-creation .pastel-creation-review-actions > .wp-block-buttons {
  margin: 0 !important;
}

@media (max-width: 999px), (max-height: 749px) {
  .pastel-creation .ec-film--hero[data-ec-ready="true"] .ec-orbit-caption {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .65rem;
  }

  .pastel-creation .ec-film--hero .ec-orbit-caption .wp-block-buttons,
  .pastel-creation .ec-film--hero .ec-orbit-current-link {
    display: flex;
  }
}

@media (max-width: 700px) {
  .pastel-creation .ethet-normalized-page:has(.ec-film--hero, .portfolio-page-intro) > .ethet-section {
    min-height: 0 !important;
  }

  .pastel-creation .ec-film--portfolio .ec-project-index {
    justify-content: flex-start;
    text-align: left;
  }
}
