#nmp-projects-v5{
    --black:#080808;--paper:#f2f0eb;--pink:#efadca;--ink:#111;--muted:#73716e;
    position:relative;width:100%;max-width:100vw;height:100vh;height:100svh;min-height:680px;
    overflow:hidden;background:var(--black);color:#fff;font-family:Arial,Helvetica,sans-serif;isolation:isolate
  }
  #nmp-projects-v5,#nmp-projects-v5 *{box-sizing:border-box}
  #nmp-projects-v5 h1,#nmp-projects-v5 h2,#nmp-projects-v5 h3,#nmp-projects-v5 p,#nmp-projects-v5 figure{margin:0}
  #nmp-projects-v5 button,#nmp-projects-v5 input{font:inherit}
  #nmp-projects-v5 button{color:inherit}
  #nmp-projects-v5 a{color:inherit;text-decoration:none}
  #nmp-projects-v5 img{display:block;width:100%;height:100%}
  #nmp-projects-v5 .nmp-display{font-family:"Arial Black",Arial,sans-serif;font-weight:900;letter-spacing:-.075em;text-transform:uppercase}
  #nmp-projects-v5 .nmp-kicker{color:var(--pink);font-size:10px;font-weight:900;letter-spacing:.22em;line-height:1.45;text-transform:uppercase}
  #nmp-projects-v5 .nmp-viewport{width:100%;height:100%;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;overscroll-behavior-y:auto;scroll-behavior:smooth}
  #nmp-projects-v5 .nmp-viewport::-webkit-scrollbar{display:none}

  /* PORTADA + ÍNDICE: se mantiene la selección visual de clientes */
  #nmp-projects-v5 .nmp-hero{position:relative;height:190vh;min-height:1450px;background:radial-gradient(circle at 50% 48%,rgba(239,173,202,.08),transparent 44%),var(--black)}
  #nmp-projects-v5 .nmp-hero__stage{position:sticky;top:0;height:100vh;height:100svh;min-height:620px;overflow:hidden}
  #nmp-projects-v5 .nmp-hero__seo{position:absolute;z-index:7;left:5%;right:5%;top:6%;display:flex;align-items:center;gap:18px}
  #nmp-projects-v5 .nmp-hero__seo:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,var(--pink),transparent)}
  #nmp-projects-v5 .nmp-hero__title{position:absolute;z-index:3;left:50%;top:48%;font-size:clamp(82px,14vw,230px);line-height:.75;white-space:nowrap;opacity:var(--title-opacity,1);transform:translate(-50%,-50%) scale(var(--title-scale,1));transform-origin:center;will-change:transform,opacity}
  #nmp-projects-v5 .nmp-hero__scroll{position:absolute;z-index:6;left:50%;bottom:5%;color:#777;font-size:8px;font-weight:900;letter-spacing:.23em;text-transform:uppercase;opacity:calc(1 - var(--gallery-opacity,0));transform:translateX(-50%)}
  #nmp-projects-v5 .nmp-gallery{position:absolute;z-index:8;left:50%;top:50%;width:min(94vw,1460px);opacity:var(--gallery-opacity,0);transform:translate(-50%,calc(-50% + var(--gallery-y,54px))) scale(var(--gallery-scale,.94));pointer-events:var(--gallery-events,none);will-change:opacity,transform}
  #nmp-projects-v5 .nmp-gallery__intro{margin-bottom:17px;color:#8a8a8a;font-size:8px;font-weight:900;letter-spacing:.2em;text-align:center;text-transform:uppercase}
  #nmp-projects-v5 .nmp-client-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(7px,1vw,15px);align-items:start}
  #nmp-projects-v5 .nmp-client-card{min-width:0;width:100%;border:0;padding:0;background:transparent;text-align:left;cursor:pointer}
  #nmp-projects-v5 .nmp-client-card__media{position:relative;display:block;width:100%;aspect-ratio:2/3;overflow:hidden;background:#151515}
  #nmp-projects-v5 .nmp-client-card__media:after{content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.13);pointer-events:none}
  #nmp-projects-v5 .nmp-client-card img{object-fit:contain;object-position:center;filter:grayscale(1) brightness(.68);transform:scale(.94);transition:filter .35s ease,transform .65s cubic-bezier(.2,.8,.2,1)}
  #nmp-projects-v5 .nmp-client-card__name{display:block;margin-top:10px;color:#d8d8d8;font-size:8px;font-weight:900;letter-spacing:.14em;line-height:1.25;text-align:center;text-transform:uppercase;transition:color .25s ease}
  #nmp-projects-v5 .nmp-client-card:hover img,#nmp-projects-v5 .nmp-client-card:focus-visible img,#nmp-projects-v5 .nmp-client-card.is-active img{filter:none;transform:scale(1)}
  #nmp-projects-v5 .nmp-client-card:hover .nmp-client-card__name,#nmp-projects-v5 .nmp-client-card:focus-visible .nmp-client-card__name,#nmp-projects-v5 .nmp-client-card.is-active .nmp-client-card__name{color:#ffb8d7;text-shadow:0 0 16px rgba(255,184,215,.46)}
  #nmp-projects-v5 .nmp-active-brand{position:absolute;z-index:-1;left:50%;top:calc(100% + clamp(40px,5vh,76px));width:100vw;color:var(--pink);font-size:clamp(76px,11vw,182px);line-height:.72;text-align:center;white-space:nowrap;opacity:.13;transform:translateX(-50%);pointer-events:none}
  #nmp-projects-v5 .nmp-gallery__hint{margin-top:clamp(92px,13vh,146px);color:#777;font-size:7px;font-weight:900;letter-spacing:.2em;text-align:center;text-transform:uppercase}

  /* ESCENA DE PROYECTO: los elementos entran desde direcciones diferentes */
  #nmp-projects-v5 .nmp-case{position:relative;height:500vh;min-height:3400px;background:var(--case-bg,var(--paper));color:var(--case-ink,var(--ink))}
  #nmp-projects-v5 .nmp-case[hidden]{display:none}
  #nmp-projects-v5 .nmp-case__stage{position:sticky;top:0;height:100vh;height:100svh;min-height:620px;overflow:hidden;background:var(--case-bg,var(--paper))}
  #nmp-projects-v5 .nmp-case__top{position:absolute;z-index:30;left:clamp(18px,3vw,48px);right:clamp(18px,3vw,48px);top:clamp(18px,3vh,34px);display:flex;align-items:center;justify-content:space-between;gap:18px;color:var(--case-ink,var(--ink));font-size:8px;font-weight:900;letter-spacing:.18em;text-transform:uppercase}
  #nmp-projects-v5 .nmp-case__back{display:flex;align-items:center;gap:10px;border:0;padding:9px 0;background:transparent;cursor:pointer}
  #nmp-projects-v5 .nmp-case__back:before{content:"←";font-size:16px;line-height:1}
  #nmp-projects-v5 .nmp-case__counter{opacity:.58}

  #nmp-projects-v5 .nmp-intro,#nmp-projects-v5 .nmp-proof-scene{position:absolute;inset:0;overflow:hidden;will-change:transform,opacity}
  #nmp-projects-v5 .nmp-intro{transform:translate3d(calc(-100% * var(--case-shift,0)),0,0);opacity:calc(1 - .7 * var(--case-shift,0))}
  #nmp-projects-v5 .nmp-proof-scene{background:var(--proof-bg,#0a0a0a);color:var(--proof-ink,#fff);transform:translate3d(calc(100% - 100% * var(--case-shift,0)),0,0)}

  #nmp-projects-v5 .nmp-intro__image{position:absolute;left:clamp(18px,5vw,78px);top:12%;bottom:9%;width:min(38vw,560px);overflow:visible;background:transparent;opacity:var(--photo-in,0);transform:translate3d(calc(-24vw + 24vw * var(--photo-in,0)),calc(50px - 50px * var(--photo-in,0)),0) scale(calc(.92 + .08 * var(--photo-in,0)));will-change:transform,opacity}
  #nmp-projects-v5 .nmp-intro__image img{position:relative;z-index:2;width:auto;max-width:100%;height:100%;margin:auto;object-fit:contain;filter:saturate(.96) contrast(1.02)}
  #nmp-projects-v5 .nmp-intro__index{position:absolute;z-index:3;left:18px;top:17px;color:#fff;font-size:8px;font-weight:900;letter-spacing:.18em;text-shadow:0 2px 8px #000;text-transform:uppercase}

  #nmp-projects-v5 .nmp-intro__copy{position:absolute;z-index:4;left:46%;right:clamp(18px,4vw,72px);top:50%;transform:translateY(-50%)}
  #nmp-projects-v5 .nmp-case__title{width:100%;color:#d96f9e;font-size:clamp(46px,6.7vw,124px);line-height:.76;white-space:nowrap;opacity:var(--name-in,0);transform:translate3d(calc(28vw - 28vw * var(--name-in,0)),0,0);will-change:transform,opacity}
  #nmp-projects-v5 .nmp-case.is-opening .nmp-intro__image{animation:nmp-open-photo .9s cubic-bezier(.2,.8,.2,1) both}
  #nmp-projects-v5 .nmp-case.is-opening .nmp-case__title{animation:nmp-open-name .85s .06s cubic-bezier(.2,.8,.2,1) both}
  #nmp-projects-v5 .nmp-case.is-opening .nmp-case__meta,#nmp-projects-v5 .nmp-case.is-opening .nmp-copy-cards{animation:nmp-open-copy .75s .18s cubic-bezier(.2,.8,.2,1) both}
  @keyframes nmp-open-photo{from{opacity:0;transform:translate3d(-26vw,45px,0) scale(.92)}to{opacity:var(--photo-in,1);transform:translate3d(calc(-24vw + 24vw * var(--photo-in,1)),calc(50px - 50px * var(--photo-in,1)),0) scale(calc(.92 + .08 * var(--photo-in,1)))}}
  @keyframes nmp-open-name{from{opacity:0;transform:translate3d(24vw,0,0)}to{opacity:var(--name-in,1);transform:translate3d(calc(28vw - 28vw * var(--name-in,1)),0,0)}}
  @keyframes nmp-open-copy{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}
  #nmp-projects-v5 .nmp-case__meta{margin:22px 0 0;color:var(--accent,#a56980);font-size:9px;font-weight:900;letter-spacing:.18em;line-height:1.5;text-transform:uppercase;opacity:var(--name-in,0);transform:translateY(calc(18px - 18px * var(--name-in,0)))}
  #nmp-projects-v5 .nmp-copy-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:clamp(30px,5vh,58px)}
  #nmp-projects-v5 .nmp-copy-card{min-height:150px;padding:14px 12px 15px;border-top:1px solid color-mix(in srgb,var(--case-ink) 34%,transparent);opacity:var(--note-in,0);transform:translate3d(0,calc(55px - 55px * var(--note-in,0)),0)}
  #nmp-projects-v5 .nmp-copy-card:nth-child(2){opacity:var(--note2-in,0);transform:translate3d(0,calc(75px - 75px * var(--note2-in,0)),0)}
  #nmp-projects-v5 .nmp-copy-card:nth-child(3){opacity:var(--note3-in,0);transform:translate3d(0,calc(95px - 95px * var(--note3-in,0)),0)}
  #nmp-projects-v5 .nmp-copy-card h3{margin-bottom:10px;color:var(--accent,#a56980);font-size:8px;font-weight:900;letter-spacing:.17em;text-transform:uppercase}
  #nmp-projects-v5 .nmp-copy-card p{font-size:clamp(12px,1vw,15px);font-weight:650;line-height:1.45}

  /* SEGUNDA PARTE: carril editorial que viaja hacia la izquierda */
  #nmp-projects-v5 .nmp-proof__heading{position:absolute;z-index:12;left:clamp(18px,4vw,65px);right:clamp(18px,4vw,65px);top:10%;display:flex;align-items:end;justify-content:space-between;gap:24px;opacity:var(--proof-in,0);transform:translateY(calc(35px - 35px * var(--proof-in,0)))}
  #nmp-projects-v5 .nmp-proof__heading h3{max-width:880px;font-size:clamp(42px,6.5vw,112px);line-height:.78}
  #nmp-projects-v5 .nmp-proof__viewport{position:absolute;left:0;right:0;top:29%;bottom:7%;overflow:hidden}
  #nmp-projects-v5 .nmp-proof__track{display:flex;align-items:stretch;gap:clamp(18px,2.2vw,36px);height:100%;padding:0 8vw;will-change:transform}
  #nmp-projects-v5 .nmp-slide{position:relative;flex:0 0 min(72vw,1030px);height:100%;overflow:hidden;background:#171717;border:1px solid color-mix(in srgb,var(--proof-ink) 14%,transparent)}
  #nmp-projects-v5 .nmp-slide--narrow{flex-basis:min(34vw,520px)}
  #nmp-projects-v5 .nmp-slide--photo{flex:0 0 auto;height:100%;aspect-ratio:2/3;overflow:hidden;background:transparent;border:0}
  #nmp-projects-v5 .nmp-slide--photo>img{width:100%;max-width:none;height:100%;margin:0;object-fit:cover}
  #nmp-projects-v5 .nmp-slide>img{position:relative;z-index:2;object-fit:contain}
  #nmp-projects-v5 .nmp-slide__label{position:absolute;z-index:5;left:16px;bottom:14px;padding:8px 10px;background:rgba(8,8,8,.78);color:#fff;font-size:8px;font-weight:900;letter-spacing:.15em;text-transform:uppercase}
  #nmp-projects-v5 .nmp-proof__progress{position:absolute;z-index:14;left:8vw;right:8vw;bottom:3.5%;height:1px;background:color-mix(in srgb,var(--proof-ink) 18%,transparent)}
  #nmp-projects-v5 .nmp-proof__progress i{display:block;width:calc(100% * var(--track-p,0));height:100%;background:var(--accent,var(--pink))}

  /* Comparador compacto y funcional */
  #nmp-projects-v5 .nmp-compare-wrap{display:grid;place-items:center;overflow:visible;background:transparent;border:0}
  #nmp-projects-v5 .nmp-compare{--split:50%;position:relative;height:100%;aspect-ratio:700/1283;max-width:100%;overflow:hidden;background:#e4e0d8;cursor:ew-resize;touch-action:none;box-shadow:0 24px 70px rgba(0,0,0,.34)}
  #nmp-projects-v5 .nmp-compare img{position:absolute;inset:0;object-fit:contain;background:#e4e0d8}
  #nmp-projects-v5 .nmp-compare__before{z-index:2;clip-path:inset(0 calc(100% - var(--split)) 0 0)}
  #nmp-projects-v5 .nmp-compare__line{position:absolute;z-index:5;left:var(--split);top:0;bottom:0;width:2px;background:var(--pink);transform:translateX(-50%);pointer-events:none}
  #nmp-projects-v5 .nmp-compare__handle{position:absolute;z-index:6;left:var(--split);top:50%;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--pink);box-shadow:0 8px 28px rgba(0,0,0,.3);color:#111;font-size:12px;font-weight:900;transform:translate(-50%,-50%);pointer-events:none}
  #nmp-projects-v5 .nmp-compare__label{position:absolute;z-index:6;top:12px;padding:7px 9px;background:rgba(8,8,8,.82);color:#fff;font-size:7px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;pointer-events:none}
  #nmp-projects-v5 .nmp-compare__label--before{left:11px}
  #nmp-projects-v5 .nmp-compare__label--after{right:11px}
  #nmp-projects-v5 .nmp-compare input{position:absolute;z-index:9;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize}

  /* Gastroshows: vídeo real, limpio y sin interfaz social */
  #nmp-projects-v5 .nmp-video-card{display:grid;place-items:center;overflow:visible;background:transparent;border:0}
  #nmp-projects-v5 .nmp-video-card video{display:block;width:100%;height:100%;object-fit:contain;background:transparent}
  #nmp-projects-v5 .nmp-video-card--vertical{flex-basis:36vh}

  #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-proof__track,
  #nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-proof__track,
  #nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-proof__track{justify-content:center}

  /* Bloque estratégico y cierre recuperados */
  #nmp-projects-v5 .nmp-context{padding:clamp(90px,10vw,155px) 6vw;background:var(--pink);color:var(--black)}
  #nmp-projects-v5 .nmp-context__grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:clamp(55px,10vw,150px);width:min(1280px,100%);margin:auto;align-items:start}
  #nmp-projects-v5 .nmp-context .nmp-kicker{color:#5b3c49}
  #nmp-projects-v5 .nmp-context h2{margin-top:20px;font-size:clamp(54px,6.3vw,98px);line-height:.88}
  #nmp-projects-v5 .nmp-context__copy{font-size:clamp(16px,1.35vw,19px);font-weight:600;line-height:1.65}
  #nmp-projects-v5 .nmp-context__copy p+p{margin-top:20px}
  #nmp-projects-v5 .nmp-context__services{display:flex;flex-wrap:wrap;gap:8px;margin-top:34px}
  #nmp-projects-v5 .nmp-context__services span{border:1px solid var(--black);padding:12px 14px;font-size:8px;font-weight:900;letter-spacing:.15em;text-transform:uppercase}
  #nmp-projects-v5 .nmp-end{min-height:82vh;display:grid;place-items:center;padding:95px 5vw;background:var(--black);color:#fff;text-align:center}
  #nmp-projects-v5 .nmp-end h2{max-width:1100px;margin:22px auto 28px;font-size:clamp(58px,8vw,126px);line-height:.85}
  #nmp-projects-v5 .nmp-end h2 span{color:var(--pink)}
  #nmp-projects-v5 .nmp-end p:last-of-type{max-width:590px;margin:0 auto 30px;color:#bbb;font-size:16px;line-height:1.55}
  #nmp-projects-v5 .nmp-end a{display:inline-flex;padding:17px 27px;border:1px solid var(--pink);font-size:9px;font-weight:900;letter-spacing:.17em;text-transform:uppercase;transition:background .25s ease,color .25s ease}
  #nmp-projects-v5 .nmp-end a:hover{background:var(--pink);color:#111}

  @media(min-width:761px){
    #nmp-projects-v5 .nmp-case[data-project="begay"] .nmp-proof__heading h3{
      max-width:800px;
      font-size:clamp(42px,5.4vw,92px);
      line-height:.8;
      text-wrap:balance;
    }
    #nmp-projects-v5 .nmp-case[data-project="begay"] .nmp-proof__viewport{top:36%}
  }

  @media(max-width:760px){
    #nmp-projects-v5{min-height:640px}
    #nmp-projects-v5 .nmp-kicker{font-size:8px;letter-spacing:.18em}
    #nmp-projects-v5 .nmp-hero{height:auto;min-height:0}
    #nmp-projects-v5 .nmp-hero__stage{position:relative;height:auto;min-height:0;padding:58px 12px 68px;overflow:visible}
    #nmp-projects-v5 .nmp-hero__seo{position:relative;left:auto;right:auto;top:auto;gap:10px}
    #nmp-projects-v5 .nmp-hero__seo span{max-width:260px}
    #nmp-projects-v5 .nmp-hero__title{position:relative;left:auto;top:auto;width:100%;margin:72px 0 54px;font-size:clamp(48px,14.5vw,62px);line-height:.78;letter-spacing:-.065em;text-align:left;opacity:1!important;transform:none!important;white-space:nowrap}
    #nmp-projects-v5 .nmp-hero__scroll{display:none}
    #nmp-projects-v5 .nmp-gallery{position:relative;left:auto;top:auto;width:100%;opacity:1!important;transform:none!important;pointer-events:auto!important}
    #nmp-projects-v5 .nmp-gallery__intro{margin-bottom:22px;font-size:7px;line-height:1.5;text-align:left}
    #nmp-projects-v5 .nmp-client-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px 12px;counter-reset:nmp-project}
    #nmp-projects-v5 .nmp-client-card{counter-increment:nmp-project}
    #nmp-projects-v5 .nmp-client-card:last-child{grid-column:1/-1;width:calc(50% - 4px);justify-self:center}
    #nmp-projects-v5 .nmp-client-card__media{aspect-ratio:2/3;background:transparent}
    #nmp-projects-v5 .nmp-client-card__media:after{display:none}
    #nmp-projects-v5 .nmp-client-card img{transform:none}
    #nmp-projects-v5 .nmp-client-card__name{margin-top:10px;font-size:7.5px;letter-spacing:.11em;text-align:left}
    #nmp-projects-v5 .nmp-client-card__name:before{content:"0" counter(nmp-project) " · ";color:var(--pink)}
    #nmp-projects-v5 .nmp-active-brand,#nmp-projects-v5 .nmp-gallery__hint{display:none}

    #nmp-projects-v5 .nmp-case{height:auto;min-height:0;padding:0;background:var(--case-bg)}
    #nmp-projects-v5 .nmp-case__stage{position:relative;height:auto;min-height:0;overflow:visible;padding:0}
    #nmp-projects-v5 .nmp-case__top{position:sticky;z-index:50;top:0;left:auto;right:auto;min-height:52px;padding:5px 14px;background:color-mix(in srgb,var(--case-bg) 88%,transparent);font-size:7px;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
    #nmp-projects-v5 .nmp-case__back{min-height:42px;padding:0}
    #nmp-projects-v5 .nmp-intro,#nmp-projects-v5 .nmp-proof-scene{position:relative;inset:auto;overflow:hidden;opacity:1!important;transform:none!important}
    #nmp-projects-v5 .nmp-intro{display:flex;flex-direction:column;padding:18px 14px 72px}
    #nmp-projects-v5 .nmp-intro__image{position:relative;left:auto;top:auto;bottom:auto;width:100%;height:clamp(430px,62svh,590px);overflow:visible;opacity:1!important;transform:none!important}
    #nmp-projects-v5 .nmp-intro__copy{position:relative;left:auto;right:auto;top:auto;margin-top:34px;text-align:left;transform:none}
    #nmp-projects-v5 .nmp-case__title{font-size:clamp(32px,10.3vw,46px);line-height:.82;white-space:nowrap;overflow-wrap:normal;opacity:1!important;transform:none!important}
    #nmp-projects-v5 .nmp-case__meta{max-width:330px;margin:15px 0 0;font-size:7px;opacity:1!important;transform:none!important}
    #nmp-projects-v5 .nmp-copy-cards{grid-template-columns:1fr;gap:24px;margin-top:44px;text-align:left;counter-reset:nmp-info}
    #nmp-projects-v5 .nmp-copy-card,#nmp-projects-v5 .nmp-copy-card:nth-child(n){display:grid;grid-template-columns:32px 1fr;column-gap:10px;min-height:0;padding:16px 2px 0;opacity:1!important;transform:none!important;counter-increment:nmp-info}
    #nmp-projects-v5 .nmp-copy-card:before{content:"0" counter(nmp-info);grid-column:1;grid-row:1/3;color:var(--accent);font-size:8px;font-weight:900;letter-spacing:.12em}
    #nmp-projects-v5 .nmp-copy-card h3,#nmp-projects-v5 .nmp-copy-card p{grid-column:2}
    #nmp-projects-v5 .nmp-copy-card h3{font-size:7.5px}
    #nmp-projects-v5 .nmp-copy-card p{font-size:13.5px;line-height:1.55}
    #nmp-projects-v5 .nmp-case[data-project="gastroshows"] .nmp-intro__image{height:auto;min-height:0;margin-top:10px}
    #nmp-projects-v5 .nmp-case[data-project="gastroshows"] .nmp-intro__image img{width:100%;height:auto;max-height:none;object-fit:contain}

    #nmp-projects-v5 .nmp-proof-scene{padding:68px 0 76px;min-height:760px}
    #nmp-projects-v5 .nmp-proof__heading{position:relative;left:auto;right:auto;top:auto;display:block;padding:0 16px;text-align:center;opacity:1!important;transform:none!important}
    #nmp-projects-v5 .nmp-proof__heading h3{max-width:390px;margin:auto;font-size:clamp(34px,10.5vw,48px);line-height:.84;text-wrap:balance}
    #nmp-projects-v5 .nmp-proof__heading:after{content:"DESLIZA PARA RECORRER EL PROYECTO  →";display:block;margin-top:17px;color:color-mix(in srgb,var(--proof-ink) 58%,transparent);font-size:7px;font-weight:900;letter-spacing:.17em;line-height:1.45;text-align:center}
    #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-proof__heading:after,#nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-proof__heading:after,#nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-proof__heading:after{content:"DESLIZA SOBRE LA IMAGEN PARA COMPARAR"}
    #nmp-projects-v5 .nmp-proof__viewport{position:relative;left:auto;right:auto;top:auto;bottom:auto;height:clamp(520px,69svh,620px);margin-top:34px;overflow-x:auto;overflow-y:hidden;scroll-padding-inline:8vw;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;touch-action:pan-x;scrollbar-width:none;-webkit-overflow-scrolling:touch}
    #nmp-projects-v5 .nmp-proof__viewport::-webkit-scrollbar{display:none}
    #nmp-projects-v5 .nmp-proof__track{align-items:center;gap:12px;height:100%;padding:0 18vw 0 8vw;transform:none!important}
    #nmp-projects-v5 .nmp-slide{flex:0 0 84vw;height:92%;scroll-snap-align:start;scroll-snap-stop:always}
    #nmp-projects-v5 .nmp-slide--photo{flex:0 0 76vw;height:auto;aspect-ratio:2/3;display:grid;place-items:center;overflow:hidden;background:transparent}
    #nmp-projects-v5 .nmp-compare-wrap{flex-basis:88vw;height:94%}
    #nmp-projects-v5 .nmp-compare{height:92%;max-width:96%;touch-action:none}
    #nmp-projects-v5 .nmp-compare__handle{width:56px;height:56px}
    #nmp-projects-v5 .nmp-video-card:not(.nmp-video-card--vertical){flex-basis:92vw;height:auto;aspect-ratio:16/9;align-self:center}
    #nmp-projects-v5 .nmp-video-card--vertical{flex-basis:76vw;height:96%}
    #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-proof__track,#nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-proof__track,#nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-proof__track{justify-content:center;padding:0 6vw}
    #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-compare-wrap,#nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-compare-wrap,#nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-compare-wrap{flex-basis:78vw}
    #nmp-projects-v5 .nmp-slide__label{left:10px;bottom:10px;font-size:7px}
    #nmp-projects-v5 .nmp-proof__progress{display:none}

    #nmp-projects-v5 .nmp-context{padding:82px 18px}
    #nmp-projects-v5 .nmp-context__grid{grid-template-columns:1fr;gap:38px;text-align:center}
    #nmp-projects-v5 .nmp-context h2{font-size:clamp(40px,11vw,52px);line-height:.9}
    #nmp-projects-v5 .nmp-context__copy{font-size:14px;line-height:1.6}
    #nmp-projects-v5 .nmp-context__services{justify-content:center}
    #nmp-projects-v5 .nmp-end{min-height:650px;padding:76px 18px}
    #nmp-projects-v5 .nmp-end h2{font-size:clamp(42px,11.5vw,54px)}
    #nmp-projects-v5 .nmp-end p:last-of-type{font-size:13px}
  }
  @media(prefers-reduced-motion:reduce){
    #nmp-projects-v5 *,#nmp-projects-v5 *:before,#nmp-projects-v5 *:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}
  }

  /* Caso editorial para proyectos con transformación de feed. */
  @media(min-width:761px){
    #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-proof__heading,
    #nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-proof__heading,
    #nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-proof__heading{
      left:4vw;right:auto;top:50%;display:block;width:25vw;max-width:500px;
      transform:translateY(calc(-50% + 35px - 35px * var(--proof-in,0)));
    }
    #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-proof__heading h3,
    #nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-proof__heading h3,
    #nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-proof__heading h3{
      max-width:100%;font-size:clamp(48px,4.5vw,82px);line-height:.82;text-wrap:balance;
    }
    #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-proof__viewport,
    #nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-proof__viewport,
    #nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-proof__viewport{
      left:31vw;right:3vw;top:9%;bottom:7%;
    }
    #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-proof__track,
    #nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-proof__track,
    #nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-proof__track{
      justify-content:flex-start;padding:0;gap:0;
    }
    #nmp-projects-v5 .nmp-feed-story{
      flex:0 0 100%;display:grid;grid-template-columns:minmax(175px,.8fr) minmax(300px,410px) minmax(190px,.9fr);
      gap:clamp(24px,3vw,58px);align-items:center;height:100%;padding:3vh 0;overflow:visible;background:transparent;border:0;
    }
    #nmp-projects-v5 .nmp-feed-story .nmp-compare-wrap{position:relative;width:100%;height:100%}
  }
  #nmp-projects-v5 .nmp-feed-note{position:relative;color:var(--proof-ink);text-align:left}
  #nmp-projects-v5 .nmp-feed-note:before{content:"";display:block;width:46px;height:3px;margin-bottom:24px;background:var(--accent,var(--pink))}
  #nmp-projects-v5 .nmp-feed-note>span{display:block;margin-bottom:13px;color:var(--accent,var(--pink));font-size:8px;font-weight:900;letter-spacing:.2em;text-transform:uppercase}
  #nmp-projects-v5 .nmp-feed-note h4{margin:0;font-size:clamp(22px,1.65vw,32px);font-weight:900;line-height:.96;letter-spacing:-.045em;text-transform:uppercase;text-wrap:balance}
  #nmp-projects-v5 .nmp-feed-note p{margin:18px 0 0;color:color-mix(in srgb,var(--proof-ink) 72%,transparent);font-size:clamp(12px,.92vw,15px);font-weight:620;line-height:1.55}
  #nmp-projects-v5 .nmp-feed-note ul{display:flex;flex-wrap:wrap;gap:7px;margin:22px 0 0;padding:0;list-style:none}
  #nmp-projects-v5 .nmp-feed-note li{padding:7px 9px;border:1px solid color-mix(in srgb,var(--proof-ink) 35%,transparent);font-size:7px;font-weight:900;letter-spacing:.13em}

  @media(min-width:761px) and (max-width:1180px){
    #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-proof__heading,
    #nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-proof__heading,
    #nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-proof__heading{
      left:5vw;right:5vw;top:7%;width:auto;max-width:none;text-align:center;
      transform:translateY(calc(22px - 22px * var(--proof-in,0)));
    }
    #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-proof__heading h3,
    #nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-proof__heading h3,
    #nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-proof__heading h3{max-width:720px;margin:auto;font-size:clamp(42px,6.8vw,66px)}
    #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-proof__viewport,
    #nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-proof__viewport,
    #nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-proof__viewport{left:5vw;right:5vw;top:27%;bottom:6%}
    #nmp-projects-v5 .nmp-feed-story{grid-template-columns:minmax(120px,.72fr) minmax(220px,300px) minmax(130px,.8fr);gap:18px}
    #nmp-projects-v5 .nmp-feed-note h4{font-size:20px}
    #nmp-projects-v5 .nmp-feed-note p{font-size:11px;line-height:1.45}
  }

  @media(max-width:760px){
    #nmp-projects-v5[data-lang="ca"] .nmp-case[data-project="sangiovese"] .nmp-proof__heading:after,
    #nmp-projects-v5[data-lang="ca"] .nmp-case[data-project="larotonda"] .nmp-proof__heading:after,
    #nmp-projects-v5[data-lang="ca"] .nmp-case[data-project="citizen"] .nmp-proof__heading:after{content:"LLISCA SOBRE LA IMATGE PER COMPARAR"}
    #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-proof__viewport,
    #nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-proof__viewport,
    #nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-proof__viewport{
      height:auto;margin-top:30px;overflow:visible;touch-action:auto;
    }
    #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-proof__track,
    #nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-proof__track,
    #nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-proof__track{
      display:block;height:auto;padding:0 17px;
    }
    #nmp-projects-v5 .nmp-feed-story{
      display:grid;grid-template-columns:1fr;gap:0;width:100%;height:auto!important;padding:0;overflow:visible;background:transparent;border:0;scroll-snap-align:none;
    }
    #nmp-projects-v5 .nmp-feed-story .nmp-compare-wrap{position:relative;width:min(100%,390px);height:auto!important;margin:28px auto 32px;overflow:visible}
    #nmp-projects-v5 .nmp-feed-story .nmp-compare{width:100%;height:auto!important;aspect-ratio:700/1283;max-width:none}
    #nmp-projects-v5 .nmp-feed-note{padding:18px 2px 20px;border-top:1px solid color-mix(in srgb,var(--proof-ink) 22%,transparent)}
    #nmp-projects-v5 .nmp-feed-note:before{width:34px;height:2px;margin-bottom:17px}
    #nmp-projects-v5 .nmp-feed-note h4{font-size:clamp(24px,7.5vw,32px)}
    #nmp-projects-v5 .nmp-feed-note p{max-width:370px;margin-top:13px;font-size:13px;line-height:1.5}
    #nmp-projects-v5 .nmp-feed-note ul{margin-top:17px}
    #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-proof-scene,
    #nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-proof-scene,
    #nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-proof-scene{min-height:0;padding-bottom:84px}
  }

/* Titular y prueba ocupan columnas reales: nunca se pisan entre sí. */
@media(min-width:1181px){
  #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-proof__heading,
  #nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-proof__heading,
  #nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-proof__heading{
    left:4vw;
    top:50%;
    width:27vw;
    max-width:450px;
    transform:translateY(calc(-50% + 28px - 28px * var(--proof-in,0)));
  }
  #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-proof__heading h3,
  #nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-proof__heading h3,
  #nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-proof__heading h3{
    max-width:100%;
    font-size:clamp(39px,3.35vw,66px);
    line-height:.86;
    letter-spacing:-.065em;
    text-wrap:balance;
  }
  #nmp-projects-v5 .nmp-case[data-project="sangiovese"] .nmp-proof__viewport,
  #nmp-projects-v5 .nmp-case[data-project="larotonda"] .nmp-proof__viewport,
  #nmp-projects-v5 .nmp-case[data-project="citizen"] .nmp-proof__viewport{
    left:34vw;
    right:3.5vw;
    top:8%;
    bottom:7%;
  }
  #nmp-projects-v5 .nmp-feed-story{
    grid-template-columns:minmax(165px,.78fr) minmax(280px,390px) minmax(175px,.84fr);
    gap:clamp(22px,2.4vw,46px);
  }
  #nmp-projects-v5 .nmp-feed-note{z-index:3;min-width:0}
  #nmp-projects-v5 .nmp-feed-note h4{font-size:clamp(20px,1.45vw,29px);line-height:1}
  #nmp-projects-v5 .nmp-feed-note p{font-size:clamp(11px,.8vw,14px);line-height:1.5}
}
