/* Layout and visual treatment. Typography lives in brand.css. */

.portfolio-current-project {
  --project-highlight: #c4b6c8;
  --project-text: #eeeae1;
  background: #201c20;
  color: #eeeae1;
}
.portfolio-current-project .project-stage {
  background: inherit;
}
.portfolio-current-project .project-copy>p:not(.eyebrow) {
  color: #c6c1c5;
  max-width: 360px;
}
.portfolio-current-project .project-composition {
  height: auto;
  width: 100%;
  aspect-ratio: 1.48;
  max-height: 630px;
  padding-left: 5%;
  transform: translateY(calc(var(--p,0)*-20px));
}
.portfolio-current-frame {
  width: 100%;
  position: relative;
  overflow: hidden;
  transform: rotateY(calc(-7deg + var(--p,0)*9deg));
  transform-origin: center;
}
.portfolio-current-frame>a {
  display: block;
}
.portfolio-current-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8/5;
  object-fit: contain;
}
.portfolio-current-frame a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -4px;
}
.portfolio-leosupps {
  background: #131b22;
  --project-highlight: #98b2d0;
}
.portfolio-leosupps .project-stage {
  background: #131b22;
}
.portfolio-enenu {
  background: #28241d;
  --project-highlight: #d7c8af;
}
.portfolio-enenu .project-stage {
  background: #28241d;
}
.portfolio-current-project .chapter-word {
  white-space: nowrap;
}
.portfolio-current-gallery {
  background: #24211f;
}
.portfolio-current-gallery>.portfolio-gallery-visual {
  display: flex;
  position: absolute;
  left: 20px;
  right: 20px;
  top: 65px;
  z-index: 1;
  border: 1px solid #ffffff28;
  overflow: hidden;
  height: 185px;
  align-items: flex-start;
  justify-content: center;
  background: #171717;
}
.portfolio-current-gallery>.portfolio-gallery-visual img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}
.portfolio-current-gallery:after {
  background: linear-gradient(transparent 55%,#0008);
}
.portfolio-current-gallery .industry-number {
  right: 20px;
}
.portfolio-current-gallery .industry-project-link {
  margin-top: 12px;
}
.portfolio-current-collection .portfolio-collection-image {
  display: block;
  margin-bottom: 24px;
  overflow: hidden;
}
.portfolio-current-collection .portfolio-collection-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8/5;
  object-fit: contain;
}
.portfolio-current-collection>.eyebrow {
  display: block;
}
.portfolio-current-collection>.text-link {
  display: inline-block;
  margin-top: 22px;
  margin-right: 20px;
}
.portfolio-disclosure {
  opacity: .8;
  margin-top: 20px !important;
}
.editorial-image:has(img[src*="-current-"]) img {
  height: auto !important;
  aspect-ratio: 8/5;
  object-fit: contain !important;
}
.no-motion .portfolio-current-frame,.no-motion .portfolio-current-project .project-composition {
  transform: none !important;
}
.portfolio-current-frame img,.portfolio-current-collection .portfolio-collection-image img,.editorial-image:has(img[src*="-current-"]) img {
  aspect-ratio: auto;
}

@media (max-width:760px) {
.portfolio-current-project .project-stage {
  height: auto;
  min-height: 900px;
  padding-bottom: 70px;
}
.portfolio-current-project .project-stage-inner {
  display: flex;
  flex-direction: column;
  height: auto;
}
.portfolio-current-project .project-copy {
  width: 100%;
  max-width: none;
  padding: 90px 0 0;
  transform: none;
  padding-top: 32px;
}
.portfolio-current-project .project-copy h2 {
  max-width: 100%;
}
.portfolio-current-project .project-copy h2 em {
  display: block;
  margin-left: 0;
}
.portfolio-current-project .project-copy h3 {
  max-width: 100%;
}
.portfolio-current-project .project-copy>p:not(.eyebrow) {
  max-width: 100%;
}
.portfolio-current-project .project-composition {
  margin: 30px 0 0;
  padding: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1.48;
  flex-shrink: 0;
}
.portfolio-current-project .portfolio-current-frame {
  transform: translateY(calc(var(--p,0)*-7px));
}
.portfolio-current-project .features {
  display: block;
  margin-top: 20px;
}
.portfolio-current-project .chapter-bottom {
  gap: 15px;
}
.portfolio-current-frame .browser-bar {
  height: 20px;
  padding-inline: 8px;
}
.portfolio-current-gallery>.portfolio-gallery-visual {
  top: 60px;
}
.portfolio-current-project .project-copy h2 br {
  display: initial;
}
}

@media (prefers-reduced-motion:reduce) {
.portfolio-current-frame,.portfolio-current-project .project-composition {
  transform: none !important;
}
}
