/* Project collection: large openings, a compact index, real project imagery. */
.projects-opening{padding-block:64px 65px;display:grid;grid-template-columns:1.05fr 1fr;align-items:end;gap:clamp(40px,7vw,160px)}
.projects-opening h1{font-size:clamp(56px,5.4vw,112px);font-weight:500;letter-spacing:-.065em;line-height:1.02;margin-top:24px}
.projects-opening h1 span{color:#a7b1ff}
.projects-intro{max-width:580px;font-size:clamp(18px,1.25vw,25px);line-height:1.5;color:var(--muted);padding-bottom:8px}
.project-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid var(--line);padding-block:28px 35px}
.project-filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.project-filters[hidden]{display:none}
.project-filters button{position:relative;min-height:44px;border:1px solid #cfcfd5;border-radius:7px;padding:10px 17px;font-size:14px;line-height:1.3;font-weight:550;background:transparent;transition:background .2s,border-color .2s,color .2s,transform .2s}
.project-filters button:hover{background:#f4f5ff;border-color:#a7b1ff;transform:translateY(-2px)}
.project-filters button[aria-pressed=true]{background:#161616;border-color:#161616;color:#fff}
.project-filters button[aria-pressed=true]:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:9px;background:#a7b1ff;vertical-align:2px}
#project-count{font-size:14px;color:var(--muted);white-space:nowrap;margin-left:auto}
.project-index-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:54px 28px;align-items:start}
.project-tile{grid-column:span 4;min-width:0}
.project-tile[hidden],.projects-empty[hidden],.project-index-grid[hidden]{display:none}
.project-index-grid[data-selection=all] .project-tile:nth-child(1){grid-column:span 7}
.project-index-grid[data-selection=all] .project-tile:nth-child(2){grid-column:span 5}
.project-index-grid[data-selection=learning] .project-tile{grid-column:span 6}
.project-index-grid[data-selection=operations] .project-tile{grid-column:span 8}
.project-tile-link{display:block;border-radius:9px}
.project-tile-media{position:relative;isolation:isolate;overflow:hidden;border-radius:9px;background:#292b33;height:clamp(220px,16vw,310px)}
.project-index-grid[data-selection=all] .project-tile:nth-child(-n+2) .project-tile-media,.project-index-grid[data-selection=learning] .project-tile-media,.project-index-grid[data-selection=operations] .project-tile-media{height:clamp(290px,21vw,410px)}
.project-tile-media:after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,transparent 60%,#16161635);pointer-events:none}
.project-tile-media img{width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.7,.2,1),filter .8s}
.project-tile-arrow{position:absolute;z-index:1;right:18px;bottom:18px;display:grid;place-items:center;width:45px;height:45px;border:1px solid #ffffff70;background:#f4f5fff2;color:#161616;border-radius:50%;backdrop-filter:blur(12px);transition:background .25s,transform .35s}
.project-tile-arrow svg{width:21px;height:21px}
.project-tile-link:hover .project-tile-media img,.project-tile-link:focus-visible .project-tile-media img{transform:scale(1.045)}
.project-tile-link:hover .project-tile-arrow,.project-tile-link:focus-visible .project-tile-arrow{background:#a7b1ff;transform:rotate(45deg)}
.project-tile-copy{padding:21px 2px 0}
.project-tile-client{font-size:16px;line-height:1.4;font-weight:650}
.project-tile h2{font-size:clamp(25px,1.7vw,34px);line-height:1.2;letter-spacing:-.045em;max-width:660px;margin-top:13px}
.project-tile-area{font-size:13px;color:#6b6b73;margin-top:15px}
.projects-empty{position:relative;isolation:isolate;overflow:hidden;border:1px solid #a7b1ff;border-radius:10px;background:#f4f5ff;min-height:370px;display:flex;align-items:center;padding:clamp(30px,4vw,72px)}
.projects-empty-art{position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#f4f5ff 30%,#f4f5ffc9 55%,transparent),url('../campo-kpi-blu.webp') right center/65% 100% no-repeat}
.projects-empty-copy{max-width:650px}
.projects-empty h2{font-size:clamp(32px,2.5vw,48px);max-width:580px}
.projects-empty p{margin-top:20px;max-width:570px;font-size:18px;color:#555968;line-height:1.65}
.projects-empty .text-link{margin-top:29px;color:#161616}
.projects-empty-contact{display:inline-block;margin-top:20px;font-size:15px;text-decoration:underline;text-underline-offset:5px}
.project-contact{margin-top:100px;margin-bottom:90px}
.project-contact .contact-content h2{max-width:850px;margin-inline:auto}
.project-contact .line-cta{width:min(380px,100%)}
@media(max-width:1200px){.project-toolbar{align-items:flex-start}.project-filters{gap:8px}.project-filters button{font-size:13px;padding-inline:13px}.project-index-grid{gap:38px 24px}.project-tile h2{font-size:26px}}
@media(max-width:900px){.projects-opening{padding-block:45px;gap:35px}.projects-opening h1{font-size:72px}.projects-intro{font-size:18px}.project-toolbar{flex-wrap:wrap;gap:18px}.project-filters{flex:1 1 100%}#project-count{margin-left:0}.project-index-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-tile,.project-index-grid[data-selection] .project-tile:nth-child(n){grid-column:span 1}.project-tile-media,.project-index-grid[data-selection] .project-tile:nth-child(n) .project-tile-media{height:260px}.project-index-grid[data-selection=operations] .project-tile{max-width:600px;grid-column:1/-1}.project-tile h2{font-size:27px}.projects-empty-art{background-size:auto,cover;background-position:center}.project-contact{margin-top:75px}}
@media(max-width:600px){.projects-opening{grid-template-columns:1fr;padding-block:35px 38px;gap:28px}.projects-opening h1{font-size:64px;margin-top:20px}.projects-intro{max-width:440px;padding:0}.project-toolbar{padding-block:22px 25px}.project-filters{gap:8px}.project-filters button{font-size:12px;padding:10px 11px;min-height:43px}.project-filters button[aria-pressed=true]:before{width:5px;height:5px;margin-right:7px;vertical-align:1px}.project-index-grid{grid-template-columns:1fr;gap:32px}.project-tile-media,.project-index-grid[data-selection] .project-tile:nth-child(n) .project-tile-media{height:auto;aspect-ratio:1.65}.project-tile-copy{padding-top:18px}.project-tile h2{font-size:27px;margin-top:9px}.project-tile-client{font-size:15px}.project-tile-area{margin-top:12px}.project-tile-arrow{width:40px;height:40px;right:13px;bottom:13px}.projects-empty{min-height:400px;padding:28px 25px}.projects-empty-art{background:linear-gradient(100deg,#f4f5ffed,#f4f5ffa3),url('../campo-kpi-blu.webp') center/cover}.projects-empty p{font-size:17px}.projects-empty .text-link{font-size:15px}.project-contact{margin-block:65px}.project-contact .contact-content h2{font-size:34px}.project-contact .contact-content p br{display:none}}
@media(max-width:360px){.projects-opening h1{font-size:56px}.project-filters button{font-size:11px;padding-inline:9px}.project-tile h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){.project-filters button,.project-tile-media img,.project-tile-arrow{transition:none!important}}
