/* Continuous entrance and gentle scroll motion, using Roxane's real projects. */
body.page-ils-me-font-confiance { background: var(--cream); }
.portfolio-page { --portfolio-entry-x: clamp(24px,10vw,160px); --portfolio-side-gutter: clamp(20px,5vw,110px); overflow: clip; }
.portfolio-opening { position: relative; padding: clamp(56px,7.5vw,135px) 0 60px; min-height: calc(88svh - var(--header-offset)); display: flex; flex-direction: column; justify-content: center; gap: 50px; }
.portfolio-title,.portfolio-opening-bottom,.portfolio-mosaic>h2 { width: min(1440px,calc(100% - var(--portfolio-side-gutter) - var(--portfolio-side-gutter))); margin-inline: auto; }
.portfolio-title { font: 400 clamp(40px,8.8vw,164px)/1.1 Retro,Georgia,serif; letter-spacing: -.055em; text-align: left; }
.portfolio-title .portfolio-line { display: block; font: inherit; white-space: nowrap; }
.portfolio-title .portfolio-line:last-child { font-size: .9em; }
.portfolio-title { translate: 0 var(--portfolio-title-travel-y,0px); }
.portfolio-page:not([data-portfolio-entry=done]) .portfolio-line { animation: portfolio-line-arrive 1.8s cubic-bezier(.3,0,.2,1) both; }
.portfolio-page:not([data-portfolio-entry=done]) .portfolio-line:last-child { animation-name: portfolio-line-arrive-second; animation-delay: .18s; }
.portfolio-page:not([data-portfolio-entry=done]) .portfolio-opening-copy { animation: portfolio-copy-arrive 1.3s cubic-bezier(.3,0,.2,1) .4s both; }
.portfolio-title,.portfolio-title .portfolio-line,.portfolio-title em { color: var(--prune); }
.portfolio-title em { font: inherit; font-family: Groovy,Georgia,serif; }
.portfolio-opening-bottom { display: flex; align-items: end; justify-content: space-between; gap: 55px; }
.portfolio-opening-bottom p { max-width: 680px; margin-inline: 0; font-size: clamp(14px,1.2vw,18px); line-height: 1.75; text-align: var(--copy-alignment,justify); text-align-last: left; text-wrap: pretty; hyphens: var(--copy-hyphens,auto); }
.portfolio-opening-bottom { translate: 0 var(--portfolio-copy-travel,0px); }
.portfolio-opening-copy { width: 100%; }
.portfolio-motion-ready [data-portfolio-reveal]:not([data-portfolio-visible=true]) { opacity: 0; translate: 0 var(--portfolio-reveal-distance,18px); }
.portfolio-motion-ready [data-portfolio-visible=true] { animation: portfolio-section-arrive 1.2s cubic-bezier(.3,0,.2,1) both; }
.portfolio-motion-hidden :is(.portfolio-line,.portfolio-opening-copy,[data-portfolio-visible=true]) { animation-play-state: paused !important; }
@keyframes portfolio-line-arrive { from { opacity: 0; translate: calc(-1 * var(--portfolio-entry-x)) 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes portfolio-line-arrive-second { from { opacity: 0; translate: var(--portfolio-entry-x) 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes portfolio-copy-arrive { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
@keyframes portfolio-section-arrive { from { opacity: 0; translate: 0 var(--portfolio-reveal-distance,18px); } to { opacity: 1; translate: 0 0; } }

.portfolio-mosaic { padding: 30px 0 clamp(75px,8vw,145px); scroll-margin-top: calc(var(--header-offset) + 20px); }
.portfolio-mosaic>h2 { --portfolio-reveal-distance: 36px; margin-block: 0 clamp(35px,4vw,70px); font-size: clamp(35px,4.2vw,70px); text-align: left; }
.portfolio-mosaic>h2 em { font-family: Groovy,Georgia,serif; font-weight: 400; }
.mosaic-wall { width: calc(100% - clamp(28px,4vw,85px)); max-width: 2200px; margin: 0 auto; }
.mosaic-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; gap: clamp(12px,1.4vw,28px); margin-bottom: clamp(18px,2vw,40px); }
.mosaic-slot { min-width: 0; position: relative; }
.mosaic-card { display: block; width: 100%; aspect-ratio: 1.33; border-radius: clamp(18px,2vw,34px); outline-offset: 7px; transform-origin: center; }
.mosaic-face { position: relative; height: 100%; border-radius: inherit; overflow: hidden; background: var(--prune); isolation: isolate; }
.mosaic-image { position: absolute; inset: 0; overflow: hidden; }
.mosaic-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mosaic-image-pair { display: grid; grid-template-columns: 1fr 1fr; }
.mosaic-image-pair img { min-width: 0; object-position: center 40%; }
.mosaic-card[data-client="03"] .mosaic-image img { object-position: center top; }
.mosaic-face::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg,transparent 32%,#21051d30 53%,#21051de6 100%); pointer-events: none; }
.mosaic-copy { position: absolute; bottom: clamp(18px,1.7vw,30px); left: clamp(18px,1.7vw,30px); right: 42px; z-index: 2; color: var(--cream); }
.mosaic-discipline { display: block; font-size: 14px; line-height: 1.4; margin-bottom: 6px; color: var(--cream); }
.mosaic-copy h3 { font: 600 clamp(20px,1.7vw,30px)/1.14 DM,Arial,sans-serif; letter-spacing: -.035em; text-wrap: balance; }
.mosaic-arrow { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: #fff6bf; color: var(--prune); display: grid; place-items: center; z-index: 2; opacity: 0; transform: translate(-8px,8px); transition: opacity .25s,transform .4s cubic-bezier(.2,.8,.2,1); }
.mosaic-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.mosaic-card:hover .mosaic-arrow,.mosaic-card:focus-visible .mosaic-arrow { opacity: 1; transform: none; }
.mosaic-card:focus-visible { outline: 3px solid var(--prune); }
.mosaic-row:focus-within .mosaic-card { transform: none !important; clip-path: none !important; }

.portfolio-motion-ready .mosaic-card { transform: translate3d(0,var(--tile-y,0px),0); opacity: var(--tile-opacity,1); }

@media(min-width:1800px) { .portfolio-opening { gap: 65px; } }
@media(max-width:1000px) {
  .portfolio-opening { min-height: 660px; padding-block: 65px 55px; gap: 45px; }
  .portfolio-opening-bottom { gap: 35px; }
  .mosaic-row { gap: 16px; margin-bottom: 20px; }
  .mosaic-card { aspect-ratio: 1.1; }
  .mosaic-copy { left: 18px; right: 18px; bottom: 20px; }
}
@media screen and (max-width: 799px),
       screen and (max-width: 960px) and (pointer: coarse),
       screen and (max-width: 960px) and (max-height: 500px) {
  .portfolio-title .portfolio-line:last-child { font-size: inherit; }
}
@media(max-width:760px) {
  .mosaic-row { grid-template-columns: 1fr; }
  .mosaic-card { aspect-ratio: 1.33; }
}
@media(max-width:600px) {
  .portfolio-page { --portfolio-entry-x: clamp(36px,12vw,64px); --portfolio-side-gutter: 18px; }
  .portfolio-opening { min-height: 560px; padding: 65px 0 45px; gap: 40px; }
  .portfolio-title { font-size: min(12.3vw,53px); letter-spacing: -.06em; }
  .portfolio-opening-bottom { display: block; }
  .portfolio-opening-bottom p { font-size: 14px; max-width: 100%; }
  .portfolio-mosaic { padding-top: 20px; padding-bottom: 65px; }
  .portfolio-mosaic>h2 { font-size: 35px; margin-bottom: 30px; }
  .mosaic-wall { width: calc(100% - 24px); }
  .mosaic-row { gap: 12px; margin-bottom: 12px; }
  .mosaic-copy { left: 20px; right: 20px; bottom: 20px; }
  .mosaic-copy h3 { font-size: 24px; line-height: 1.15; }
  .mosaic-discipline { margin-bottom: 6px; }
  .mosaic-card { aspect-ratio: 1.2; border-radius: 18px; }
  .mosaic-arrow { opacity: 1; transform: none; width: 26px; height: 26px; right: 10px; top: 10px; }
  .mosaic-arrow svg { width: 15px; height: 15px; }
}
