fovea-portfolio { position: relative; isolation: isolate; display: block; overflow: hidden; background: #040404; color: #fff; }
fovea-portfolio.is-returning { animation: portfolio-return-in .8s cubic-bezier(.2,.72,.2,1) both; }
@keyframes portfolio-return-in { from { opacity: .45; filter: blur(3px); } to { opacity: 1; filter: blur(0); } }
fovea-portfolio::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, #040404 0%, rgb(4 4 4 / .72) 5%, transparent 18%, transparent 82%, rgb(4 4 4 / .72) 95%, #040404 100%), linear-gradient(180deg, #040404 0%, transparent 18%, transparent 82%, #040404 100%), linear-gradient(180deg, rgb(4 4 4 / .28), transparent 30%, transparent 70%, rgb(4 4 4 / .28)); }
.artists-section { padding: 48px var(--gutter) 0; }
.portfolio-heading { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.portfolio-heading h2 {
  max-width: 700px;
  margin: 0 auto;
  font: 600 clamp(34px, 4.6vw, 66px)/1.04 "Kumbh Sans", sans-serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.portfolio-heading p {
  max-width: 490px;
  margin: 24px auto 0;
  color: #aaa;
  font: 400 14px/1.8 "Encode Sans Semi Expanded", sans-serif;
  text-wrap: pretty;
}
.artists-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); max-width: 1020px; margin: auto; }
.artist-card { --card-accent: #d2b06f; position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 0; padding: 48px 30px 34px; text-align: center; background: linear-gradient(145deg, rgb(255 255 255 / .055), rgb(255 255 255 / .018) 58%, rgb(255 255 255 / .035)); border: 1px solid rgb(255 255 255 / .09); border-radius: 18px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); overflow: visible; transition: transform .55s cubic-bezier(.2,.7,.2,1), background .45s ease, border-color .45s ease; }
.artist-card::before { content: 'FÓVEA CEO'; position: absolute; top: 18px; left: 50%; translate: -50% 0; color: #888; font: 400 9px/1.4 'Encode Sans Semi Expanded', sans-serif; letter-spacing: .16em; }
.artists-grid { counter-reset: artist-card; }
.artist-card:hover { transform: translateY(-3px); background: linear-gradient(145deg, rgb(255 255 255 / .075), rgb(255 255 255 / .026) 58%, rgb(255 255 255 / .045)); border-color: rgb(255 255 255 / .15); }
.artist-card__portrait { position: relative; width: 148px; height: 148px; flex: 0 0 auto; margin: 16px auto 22px; overflow: hidden; background: #040404; border: 1px solid rgb(255 255 255 / .14); border-radius: 50%; }
.artist-card__portrait::after { content: none; }
.artist-card__portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; filter: saturate(.78); transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease; }
.artist-card[data-artist="joao"] .artist-card__portrait img { object-position:center top; transform:scale(1.6); transform-origin:76% 0%; }
.artist-card:hover .artist-card__portrait img { transform: scale(1.045); filter: saturate(1); }
.artist-card[data-artist="joao"]:hover .artist-card__portrait img { transform:scale(1.66); }
.artist-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: #040404; }
.artist-card__initials { font: 300 42px/1 'Scope One', serif; letter-spacing: -.06em; color: #d4d0c7; user-select: none; }
.artist-card__placeholder-label { display: block; margin: 7px 0 0; color: #888; font: 400 8px/1.5 'Kumbh Sans', sans-serif; letter-spacing: .20em; text-transform: uppercase; }
.artist-card__body { position: static; width: min(100%, 390px); padding: 0; }
.artist-card h3 { margin: 0; font: 600 clamp(19px, 2vw, 25px)/1.15 'Kumbh Sans', sans-serif; letter-spacing: -.035em; }
.artist-card__body p { max-width: 390px; min-height: 0; margin: 12px 0 18px; color: #aaa; font-size: 12px; line-height: 1.8; }
.artist-card__tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 14px; padding: 0; margin: 0; list-style: none; }
.artist-card__tags li { padding: 0; border: 0; background: transparent; border-radius: 0; color: #777; font: 400 9px/1.5 'Kumbh Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.selected-works { padding: clamp(120px, 14vw, 200px) 0 100px; scroll-margin-top: 55px; }
.selected-works .portfolio-heading { padding: 0 var(--gutter); margin-bottom: 50px; }
.selected-works .portfolio-heading h2 { max-width: 650px; }
.project-gallery { --card-width: clamp(240px, 26vw, 350px); --step: clamp(205px, 27vw, 365px); --angle: -15deg; }
.project-gallery__stage {
  position: relative; width: 100%; height: calc(var(--card-width) * 1.3333 + 40px);
  perspective: 1300px; overflow: clip; touch-action: pan-y pinch-zoom;
  cursor: grab; outline-offset: -4px; user-select: none;
}
.project-gallery__stage:active { cursor: grabbing; }
.project-card {
  position: absolute; top: 12px; left: 50%; width: var(--card-width); aspect-ratio: 3 / 4;
  border: 0; border-radius: 12px; overflow: hidden; background: #040404;
  transform: translateX(calc(-50% + var(--offset) * var(--step))) rotateY(calc(var(--direction) * var(--angle))) scale(calc(1 - min(var(--distance), 3) * .09));
  opacity: calc(1 - min(var(--distance), 3) * .23);
  transition: opacity .4s ease;
  will-change: transform;
}
.project-card.is-distant { opacity: 0; pointer-events: none; }
.project-card > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 45%, rgb(255 255 255 / .11), transparent 68%); transition: opacity .55s ease; }
.project-card.is-active:hover { box-shadow: 0 0 18px rgb(255 255 255 / .11), 0 0 34px rgb(214 183 112 / .12); }
.project-card.is-active:hover::after { opacity: 1; }
.project-card.is-active:hover > img { transform: scale(1.045); }
.project-card__caption { position: absolute; inset: auto 0 0; padding: 32px; text-align: left; background: transparent; }
.project-card h3 { margin: 0 0 10px; color: #fff; font: 600 clamp(20px, 1.8vw, 25px)/1.1 'Kumbh Sans', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.project-card__caption p { display: inline-block; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; color: #777; font: 400 10px/1.5 'Kumbh Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.project-card__caption .project-card__credit { display: block; width: fit-content; margin-top: 7px; padding: 0; font-size: 9px; }
.project-card__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; cursor: pointer; }
.project-card__link:focus-visible { outline-offset: -4px !important; }
.project-gallery__stage:focus-visible, .project-card__link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.project-gallery__stage:focus-visible { outline-offset: -4px; }
.gallery-hint, .portfolio-demo-note { text-align: center; color: #777; font: 400 10px/1.7 "Scope One", serif; }
.gallery-hint { margin: 22px 18px 0; }
.portfolio-demo-note { max-width: 450px; margin: 50px auto 0; padding: 0 25px; }
.portfolio-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 900px) {
  .project-gallery { --card-width: 290px; --step: 265px; --angle: -10deg; }
  .artist-card { min-height: 0; padding: 26px 18px; }
  .artist-card__portrait { width: 136px; height: 136px; margin: 16px auto 22px; }
  .artist-card__body p { min-height: 0; }
}
@media (max-width: 700px) {
  .artists-section { padding-top: 32px; }
  .portfolio-heading { margin-bottom: 36px; }
  .portfolio-heading p { font-size: 13px; margin-top: 20px; }
  .artists-grid { grid-template-columns: 1fr; gap: 22px; max-width: 420px; }
  .artist-card { min-height: 0; padding: 24px 14px; }
  .artist-card__initials { font-size: 24px; }
  .artist-card__body p { min-height: 0; }
  .selected-works { padding-top: 110px; padding-bottom: 70px; }
  .project-gallery { --card-width: min(70vw, 300px); --step: 76vw; --angle: -7deg; }
  .project-card__caption { padding: 22px 23px 24px; }
    }
@media (prefers-reduced-motion: reduce) {
  fovea-portfolio *, fovea-portfolio *::before, fovea-portfolio *::after { transition: none !important; animation: none !important; }
  .artist-card:hover, .project-card.is-active:hover > img, .artist-card:hover .artist-card__portrait img { transform: none; }
  .project-gallery { --angle: 0deg; }
}
