/* RC12 — Mobile Premium
   Escopo exclusivo <= 900px. Desktop RC11 preservado integralmente. */
@media (max-width:900px){
  body.portfolio-projects-page{overflow-x:hidden;background:#fbfbfd}
  body.portfolio-projects-page .topbar{display:none}
  body.portfolio-projects-page .global-nav{position:sticky;top:0;z-index:120;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(31,24,72,.07)}
  body.portfolio-projects-page .global-nav-inner{min-height:64px}
  body.portfolio-projects-page .global-logo img{max-height:38px;width:auto}
  body.portfolio-projects-page .global-hamb{min-width:44px;min-height:44px;border-radius:13px}

  body.portfolio-projects-page .projects-hero{padding:28px 0 22px;background:linear-gradient(180deg,#fff 0%,#faf9ff 100%)}
  body.portfolio-projects-page .projects-hero .container{padding-inline:18px}
  body.portfolio-projects-page .projects-kicker{font-size:.72rem;letter-spacing:.09em;margin-bottom:12px}
  body.portfolio-projects-page .projects-hero h1{max-width:680px;margin:0;font-size:clamp(2rem,8.8vw,3.25rem);line-height:1.01;letter-spacing:-.045em;text-wrap:balance}
  body.portfolio-projects-page .projects-hero p{max-width:640px;margin:14px 0 0;font-size:.98rem;line-height:1.62;color:#606677}

  body.portfolio-projects-page .portfolio-filter-wrap{position:sticky;top:64px;z-index:90;padding:10px 0;background:rgba(251,251,253,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-block:1px solid rgba(31,24,72,.055)}
  body.portfolio-projects-page .portfolio-filter-wrap .container{padding-inline:14px}
  body.portfolio-projects-page .portfolio-filter-mobile-trigger{position:static;width:100%;min-height:58px;padding:8px 12px;border-radius:17px;border:1px solid rgba(109,60,255,.13);box-shadow:0 9px 28px rgba(31,24,72,.07);background:#fff}
  body.portfolio-projects-page .filter-trigger-icon{width:40px;height:40px;border-radius:12px}
  body.portfolio-projects-page .filter-trigger-copy{min-width:0;text-align:left}
  body.portfolio-projects-page .filter-trigger-copy small{font-size:.65rem;letter-spacing:.045em}
  body.portfolio-projects-page .filter-trigger-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.84rem;line-height:1.25}
  body.portfolio-projects-page .filter-trigger-count{min-width:30px;height:30px;padding:0 8px;border-radius:999px;font-size:.74rem}

  body.portfolio-projects-page .projects-list{padding:20px 0 34px}
  body.portfolio-projects-page .projects-list>.container{display:block!important;padding-inline:14px}
  body.portfolio-projects-page .project-card,
  body.portfolio-projects-page .project-card:nth-child(even){display:grid!important;grid-template-columns:1fr!important;gap:0!important;margin:0 0 22px!important;padding:0!important;border:1px solid rgba(31,24,72,.07)!important;border-radius:24px!important;background:#fff!important;box-shadow:0 14px 42px rgba(31,24,72,.075)!important;overflow:hidden!important}
  body.portfolio-projects-page .project-card[hidden]{display:none!important}
  body.portfolio-projects-page .project-card .project-media,
  body.portfolio-projects-page .project-card:nth-child(even) .project-media{order:1!important;min-width:0;padding:10px 10px 0!important;background:#fff}
  body.portfolio-projects-page .project-card .project-info,
  body.portfolio-projects-page .project-card:nth-child(even) .project-info{order:2!important;padding:20px 18px 22px!important;background:#fff}
  body.portfolio-projects-page .project-stage{height:clamp(290px,88vw,440px)!important;min-height:0!important;max-height:none!important;border-radius:17px!important;background:linear-gradient(145deg,#f7f6fb,#fff)!important;overflow:hidden}
  body.portfolio-projects-page .project-slide{padding:12px!important}
  body.portfolio-projects-page .project-slide img,
  body.portfolio-projects-page .project-slide video{object-fit:contain!important;object-position:center!important}
  body.portfolio-projects-page .project-media-nav{inset-inline:8px}
  body.portfolio-projects-page .project-media-nav button{width:44px;height:44px;border-radius:50%;box-shadow:0 8px 24px rgba(31,24,72,.13)}
  body.portfolio-projects-page .project-media-nav button:disabled{opacity:.25}
  body.portfolio-projects-page .rc5-zoom-trigger{width:42px;height:42px;right:10px;top:10px}
  body.portfolio-projects-page .project-thumbs{display:flex;gap:8px;margin-top:10px;padding:0 1px 2px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:none}
  body.portfolio-projects-page .project-thumbs::-webkit-scrollbar{display:none}
  body.portfolio-projects-page .project-thumb{flex:0 0 72px!important;height:62px!important;min-width:72px;scroll-snap-align:start;border-radius:12px!important;padding:4px!important}
  body.portfolio-projects-page .project-counter{padding:8px 2px 1px;font-size:.72rem;color:#747b8a}
  body.portfolio-projects-page .project-index{display:inline-flex;margin:0 0 9px;font-size:.67rem;letter-spacing:.085em;text-transform:uppercase}
  body.portfolio-projects-page .project-info h2{margin:0;font-size:clamp(1.55rem,7vw,2rem)!important;line-height:1.08!important;letter-spacing:-.035em;text-wrap:balance}
  body.portfolio-projects-page .project-info p{margin:12px 0 0;font-size:.94rem!important;line-height:1.65!important;color:#626979}
  body.portfolio-projects-page .project-meta{display:flex;gap:7px;margin-top:16px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  body.portfolio-projects-page .project-meta::-webkit-scrollbar{display:none}
  body.portfolio-projects-page .project-meta span{flex:0 0 auto;padding:7px 10px;border-radius:999px;font-size:.68rem;white-space:nowrap}
  body.portfolio-projects-page .project-cta{width:100%!important;min-height:52px;margin-top:18px!important;justify-content:center;border-radius:15px!important;font-size:.83rem!important}

  body.portfolio-projects-page .portfolio-final-cta{padding:0 0 44px}
  body.portfolio-projects-page .portfolio-final-cta .container{padding-inline:14px}
  body.portfolio-projects-page .portfolio-final-cta-card{display:block!important;padding:26px 20px!important;border-radius:24px!important;text-align:left!important}
  body.portfolio-projects-page .portfolio-final-cta-kicker{margin:0 0 12px!important;font-size:.68rem}
  body.portfolio-projects-page .portfolio-final-cta h2{font-size:clamp(1.75rem,8vw,2.35rem)!important;line-height:1.06!important;letter-spacing:-.04em}
  body.portfolio-projects-page .portfolio-final-cta p{margin-top:12px;font-size:.93rem!important;line-height:1.6!important}
  body.portfolio-projects-page .portfolio-final-cta-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin-top:22px}
  body.portfolio-projects-page .portfolio-final-cta-primary,
  body.portfolio-projects-page .portfolio-final-cta-secondary{min-height:52px!important;border-radius:15px!important;justify-content:center;font-size:.82rem!important}
  body.portfolio-projects-page .portfolio-final-cta-note{justify-content:flex-start!important;margin-top:3px;font-size:.69rem!important}

  body.portfolio-projects-page .filter-dialog-sheet{width:min(100%,560px);max-height:min(86svh,720px);margin:auto 0 0;border-radius:28px 28px 0 0;padding:10px 18px 18px}
  body.portfolio-projects-page .filter-dialog-header{padding:8px 0 16px}
  body.portfolio-projects-page .filter-dialog-header h2{font-size:1.45rem;line-height:1.1}
  body.portfolio-projects-page .filter-dialog-header button{width:44px;height:44px;border-radius:14px}
  body.portfolio-projects-page .filter-dialog-body{display:grid;gap:14px;overflow:auto;padding-bottom:12px}
  body.portfolio-projects-page .filter-field select{min-height:50px;border-radius:14px;font-size:.9rem}
  body.portfolio-projects-page .filter-dialog-footer{position:sticky;bottom:0;display:grid;grid-template-columns:.9fr 1.1fr;gap:10px;padding-top:14px;background:#fff}
  body.portfolio-projects-page .filter-dialog-footer button{min-height:50px;border-radius:14px}

  body.portfolio-projects-page .rc5-lightbox-head{padding:10px 12px}
  body.portfolio-projects-page .rc5-lightbox-image{max-width:96vw;max-height:76svh}
  body.portfolio-projects-page .rc5-lightbox-nav{width:44px;height:44px}
  body.portfolio-projects-page .rc5-lightbox-prev{left:8px}
  body.portfolio-projects-page .rc5-lightbox-next{right:8px}
  body.portfolio-projects-page .rc5-lightbox-controls{padding:10px;gap:6px}
}

@media (max-width:600px){
  body.portfolio-projects-page .projects-hero{padding:24px 0 18px}
  body.portfolio-projects-page .projects-hero .container{padding-inline:16px}
  body.portfolio-projects-page .projects-hero h1{font-size:clamp(1.95rem,10.2vw,2.75rem)}
  body.portfolio-projects-page .projects-hero p{font-size:.92rem;line-height:1.58}
  body.portfolio-projects-page .portfolio-filter-wrap{top:62px}
  body.portfolio-projects-page .projects-list>.container{padding-inline:10px}
  body.portfolio-projects-page .project-card{margin-bottom:18px!important;border-radius:21px!important}
  body.portfolio-projects-page .project-card .project-media{padding:8px 8px 0!important}
  body.portfolio-projects-page .project-stage{height:clamp(270px,92vw,390px)!important;border-radius:15px!important}
  body.portfolio-projects-page .project-slide{padding:9px!important}
  body.portfolio-projects-page .project-card .project-info{padding:18px 16px 20px!important}
  body.portfolio-projects-page .project-info h2{font-size:clamp(1.45rem,7.8vw,1.9rem)!important}
  body.portfolio-projects-page .project-info p{font-size:.91rem!important}
  body.portfolio-projects-page .project-thumb{flex-basis:66px!important;min-width:66px;height:58px!important}
  body.portfolio-projects-page .portfolio-final-cta .container{padding-inline:10px}
  body.portfolio-projects-page .portfolio-final-cta-card{padding:24px 18px!important;border-radius:21px!important}
}

@media (max-width:380px){
  body.portfolio-projects-page .projects-hero h1{font-size:1.92rem}
  body.portfolio-projects-page .project-stage{height:285px!important}
  body.portfolio-projects-page .filter-trigger-copy small{display:none}
  body.portfolio-projects-page .project-info h2{font-size:1.42rem!important}
}

@media (prefers-reduced-motion:reduce){
  body.portfolio-projects-page *{scroll-behavior:auto!important}
}
