/* TiltedGridHero: a 16-facet cylinder for each portfolio banner. */
.portfolio-hero{position:relative;height:clamp(620px,calc(100svh - 100px),750px);min-height:620px;overflow:hidden;background:radial-gradient(ellipse at 50% 48%,#e0eaf2,var(--paper) 68%);border-bottom:1px solid var(--line);isolation:isolate}
.portfolio-hero-copy{position:absolute;z-index:2;left:var(--pad);right:var(--pad);top:45px;text-align:center;pointer-events:none}
.portfolio-hero-copy h1{font-size:clamp(2rem,4.7vw,4.7rem);line-height:1.06;max-width:950px;margin:0 auto;letter-spacing:-.05em}
.portfolio-hero-bottom{position:absolute;z-index:2;bottom:34px;left:24px;right:24px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:16px}
.portfolio-hero-bottom>p{font-size:14px;line-height:1.6;max-width:620px}
.portfolio-hero-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.portfolio-hero-note{font-size:10px;line-height:1.4;color:#6b808f}
.portfolio-orbit{position:absolute;inset:0;pointer-events:none;opacity:0;perspective:var(--orbit-camera,600px);perspective-origin:50% 56%;mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);transition:opacity .5s}
.portfolio-hero[data-orbit-ready=true] .portfolio-orbit{opacity:1}
.portfolio-orbit-tile{position:absolute;transform-style:preserve-3d;animation:portfolio-banner-orbit var(--orbit-duration,16s) linear var(--tile-delay,0s) infinite;animation-play-state:var(--orbit-play,paused)}
.portfolio-orbit-slice{position:absolute;top:0;overflow:hidden;background:#dbe5ed}
.portfolio-orbit-slice:first-child{border-radius:var(--radius-panel) 0 0 var(--radius-panel)}
.portfolio-orbit-slice:last-child{border-radius:0 var(--radius-panel) var(--radius-panel) 0}
.portfolio-orbit-slice img{position:absolute;top:0;max-width:none;object-fit:cover;pointer-events:none;user-select:none}
.portfolio-banner-fallback{position:absolute;top:calc(56% - 95px);left:0;right:0;display:flex;justify-content:center;gap:18px;height:190px;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
.portfolio-banner-fallback img{width:340px;max-width:none;height:100%;object-fit:cover;flex-shrink:0;border-radius:var(--radius-panel)}
.portfolio-hero[data-orbit-ready=true] .portfolio-banner-fallback{display:none}
@media(max-width:900px){.portfolio-hero{height:640px;min-height:640px}.portfolio-hero-copy{top:42px}.portfolio-hero-copy h1{font-size:clamp(2rem,5vw,3.8rem)}.portfolio-hero-bottom>p{font-size:13px}.portfolio-banner-fallback{height:150px;top:calc(56% - 75px)}.portfolio-banner-fallback img{width:260px}}
@media(max-width:450px){.portfolio-hero-copy{left:20px;right:20px}.portfolio-hero-copy h1{font-size:32px}.portfolio-hero-bottom{bottom:26px;gap:14px;left:20px;right:20px}.portfolio-hero-bottom>p{font-size:12px}.portfolio-hero .portfolio-hero-actions .rainbow-button{font-size:11px;padding:10px 13px}.portfolio-banner-fallback{height:110px;top:calc(56% - 55px)}.portfolio-banner-fallback img{width:220px}}
@media(prefers-reduced-motion:reduce){
 .portfolio-hero .portfolio-orbit-tile{animation:portfolio-banner-orbit var(--orbit-duration,16s) linear var(--tile-delay,0s) infinite!important;animation-play-state:paused!important}
 .portfolio-orbit{transition:none}
}
